Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-2819

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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 6.4.0
    • None
    • Apache Archiva 2.2.1 Standalone (as an internal remote maven repo)

    • 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> ~~~

      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
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Resolved:
              Archived: