Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-3890

No primary artifact to install when using Quarkus 1.10.0.Final + uberJar

XMLWordPrintable

    • 3
    • False
    • False
    • Undefined
    • ---
    • ---
    • 2020 Week 46-48 (from Nov 9)

      as reported by tradisso

      There is a problem on Nexus which is checking artifacts before closing the repository.
      This is the error message (https://repository.jboss.org/nexus/#stagingRepositories in Activity tab of the opened repo)

      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/jobs-service/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/explainability-service-messaging/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/trusty-ui/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/integration-tests-jobs-service-quarkus/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/explainability-service-rest/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/trusty-service/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/integration-tests-trusty-service-quarkus/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/task-console/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/data-index-service-mongodb/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/management-console/1.0.0.Final'
      failureMessage  Missing: no main jar artifact found in folder '/org/kie/kogito/data-index-service-infinispan/1.0.0.Final'
      

      this is apparently due to a change from Quarkus 1.10.0.CR1 introduced in Quarkus 1.10.0.Final – it does not install the main artifact anymore when the project is configured as a uberJar. The original main artifact is present but renamed to '*.jar.original'. This did not occur in CR1

      In fact, this info message is printed in all instances where an uberJar is used in kogito-apps:

      [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ jobs-service ---
      [INFO] No primary artifact to install, installing attached artifacts instead.
      [INFO] Installing /home/evacchi/Devel/redhat/pr/submarine/kogito-apps/jobs-service/pom.xml to /home/evacchi/.m2/repository/org/kie/kogito/jobs-service/1.0.0-SNAPSHOT/jobs-service-1.0.0-SNAPSHOT.pom
      [INFO] Installing /home/evacchi/Devel/redhat/pr/submarine/kogito-apps/jobs-service/target/jobs-service-1.0.0-SNAPSHOT-runner.jar to /home/evacchi/.m2/repository/org/kie/kogito/jobs-service/1.0.0-SNAPSHOT/jobs-service-1.0.0-SNAPSHOT-runner.jar
      [INFO] Installing /home/evacchi/Devel/redhat/pr/submarine/kogito-apps/jobs-service/target/jobs-service-1.0.0-SNAPSHOT-tests.jar to /home/evacchi/.m2/repository/org/kie/kogito/jobs-service/1.0.0-SNAPSHOT/jobs-service-1.0.0-SNAPSHOT-tests.jar
      [INFO] Installing /home/evacchi/Devel/redhat/pr/submarine/kogito-apps/jobs-service/target/jobs-service-1.0.0-SNAPSHOT-sources.jar to /home/evacchi/.m2/repository/org/kie/kogito/jobs-service/1.0.0-SNAPSHOT/jobs-service-1.0.0-SNAPSHOT-sources.jar
      [INFO] Installing /home/evacchi/Devel/redhat/pr/submarine/kogito-apps/jobs-service/target/jobs-service-1.0.0-SNAPSHOT-test-sources.jar to /home/evacchi/.m2/repository/org/kie/kogito/jobs-service/1.0.0-SNAPSHOT/jobs-service-1.0.0-SNAPSHOT-test-sources.jar
      

      workaround: force install the '.jar.original' file through an extra maven plugin

              evacchi Edoardo Vacchi (Inactive)
              evacchi Edoardo Vacchi (Inactive)
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: