Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-652

Error 400 while deploying kjar to Apache Archiva as remote maven repository

XMLWordPrintable

    • Hide

      1. setup Archiva 2.2.1 Standalone (unzip, adjust listen port(if needed), start server, create user)

      https://archiva.apache.org/docs/2.2.1/quick-start.html
      https://archiva.apache.org/docs/2.2.1/adminguide/users.html

      2. configure server information in settings.xml which is used by project(kjar).
      e.g.
      ~~~
      <server>
      <id>archiva-internal</id>
      <username>admin</username>
      <password>redhat01</password>
      <configuration>
      <wagonProvider>httpclient</wagonProvider>
      <httpConfiguration>
      <all>
      <usePreemptive>true</usePreemptive>
      </all>
      </httpConfiguration>
      </configuration>
      </server>
      ...
      <repositories>
      <repository>
      <id>archiva-internal</id>
      <url>http://localhost:8090/repository/internal/</url>
      <releases>
      <enabled>true</enabled>
      <updatePolicy>always</updatePolicy>
      </releases>
      <snapshots>
      <enabled>true</enabled>
      <updatePolicy>always</updatePolicy>
      </snapshots>
      </repository>
      ..
      ~~~

      3. start BRMS and create project, configure Archiva repository as distributionManagement in pom.xml and build it

      e.g.
      ~~
      <distributionManagement>
      <repository>
      <id>archiva-internal</id>
      <url>http://localhost:8090/repository/internal/</url>
      </repository>
      <snapshotRepository>
      <id>archiva-snapshots</id>
      <url>http://localhost:8090/repository/snapshots/</url>
      </snapshotRepository>
      </distributionManagement>
      ~~~

      Show
      1. setup Archiva 2.2.1 Standalone (unzip, adjust listen port(if needed), start server, create user) https://archiva.apache.org/docs/2.2.1/quick-start.html https://archiva.apache.org/docs/2.2.1/adminguide/users.html 2. configure server information in settings.xml which is used by project(kjar). e.g. ~~~ <server> <id>archiva-internal</id> <username>admin</username> <password>redhat01</password> <configuration> <wagonProvider>httpclient</wagonProvider> <httpConfiguration> <all> <usePreemptive>true</usePreemptive> </all> </httpConfiguration> </configuration> </server> ... <repositories> <repository> <id>archiva-internal</id> <url> http://localhost:8090/repository/internal/ </url> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> .. ~~~ 3. start BRMS and create project, configure Archiva repository as distributionManagement in pom.xml and build it e.g. ~~ <distributionManagement> <repository> <id>archiva-internal</id> <url> http://localhost:8090/repository/internal/ </url> </repository> <snapshotRepository> <id>archiva-snapshots</id> <url> http://localhost:8090/repository/snapshots/ </url> </snapshotRepository> </distributionManagement> ~~~
    • NEW
    • NEW

      When deploying a kjar to Apache Archiva maven repository, deploy kjar fails with HTTP status 400( Bad Request) even though subsequent upload of pom.xml succeeds.

              Unassigned Unassigned
              rhn-support-hmiura Hiroko Miura
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: