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

Maven repo contents created in "maven offline" mode cause build failures after going online

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Build mechanism
    • None
    • Hide

      1. Go offline by turning off all internet connectivity
      2. go to ~/.m2 and remove (or just rename) the repository folder, so you are in the state with clean local maven repo)
      3. Deploy kie-wb war into EAP 7.1 and start the server using
      ./standalone.sh -Dkie.maven.offline.force=true
      4. In projects perspective create a new project with a data object, build and deploy it.
      5. Stop the server with workbench
      6. Turn ON your internet connection
      7. Start the workbench again - this time WITHOUT using -Dkie.maven.offline.force=true
      8. Open the project created in step 4 and click build / deploy

      Expected result:
      Projetc is built and deployed successfully

      Actual result:
      Build fails with error
      maven pom.xml found, but unable to read org.appformer.maven.integration.embedder.MavenEmbedderException: Failed to read artifact descriptor for org.kie:kie-internal:jar:7.14.0-SNAPSHOT

      At the same time there is a flurry of errors in server.log (attached)

      Most likely this is caused by what workbench deploys to the maven repo. See list of artifacts deployed to maven repo when offline and when repeating the same steps as above WITHOUT using kie.maven.offline.

      Show
      1. Go offline by turning off all internet connectivity 2. go to ~/.m2 and remove (or just rename) the repository folder, so you are in the state with clean local maven repo) 3. Deploy kie-wb war into EAP 7.1 and start the server using ./standalone.sh -Dkie.maven.offline.force=true 4. In projects perspective create a new project with a data object, build and deploy it. 5. Stop the server with workbench 6. Turn ON your internet connection 7. Start the workbench again - this time WITHOUT using -Dkie.maven.offline.force=true 8. Open the project created in step 4 and click build / deploy Expected result: Projetc is built and deployed successfully Actual result: Build fails with error maven pom.xml found, but unable to read org.appformer.maven.integration.embedder.MavenEmbedderException: Failed to read artifact descriptor for org.kie:kie-internal:jar:7.14.0-SNAPSHOT At the same time there is a flurry of errors in server.log (attached) Most likely this is caused by what workbench deploys to the maven repo. See list of artifacts deployed to maven repo when offline and when repeating the same steps as above WITHOUT using kie.maven.offline.
    • NEW
    • NEW

      Using repository created by workbench when in -Dkie.maven.offline.force=true mode can't be used to build projects when you are online.

            abakos@redhat.com Alexandre Bakos
            jhrcek Jan Hrcek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: