Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-962

Uberjar does not handle dependencies with classifier

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.12.1
    • Fix Version/s: 2017.1.1
    • Component/s: None
    • Labels:
      None

      Description

      While trying to start wildfly swarm with dependency with classifier it fails with:

      2016-12-23 15:28:47,541 ERROR [stderr] (main) java.lang.reflect.InvocationTargetException
      2016-12-23 15:28:47,542 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2016-12-23 15:28:47,542 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2016-12-23 15:28:47,542 ERROR [stderr] (main) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2016-12-23 15:28:47,542 ERROR [stderr] (main) 	at java.lang.reflect.Method.invoke(Method.java:483)
      2016-12-23 15:28:47,542 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:37)
      2016-12-23 15:28:47,542 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.run(Main.java:44)
      2016-12-23 15:28:47,543 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.main(Main.java:35)
      2016-12-23 15:28:47,543 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: Failed to resolve archive dependencies
      2016-12-23 15:28:47,543 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:193)
      2016-12-23 15:28:47,543 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.deploy(Swarm.java:492)
      2016-12-23 15:28:47,543 ERROR [stderr] (main) 	at org.kie.server.swarm.bpm.KieServerMain.main(KieServerMain.java:44)
      2016-12-23 15:28:47,543 ERROR [stderr] (main) 	... 7 more
      2016-12-23 15:28:47,543 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: WFSWARM0013: Artifact 'org.sonatype.sisu:sisu-guice:jar:no_aop:3.2.3' not found.
      2016-12-23 15:28:47,544 ERROR [stderr] (main) 	at org.wildfly.swarm.internal.ArtifactManager.artifact(ArtifactManager.java:59)
      2016-12-23 15:28:47,544 ERROR [stderr] (main) 	at org.wildfly.swarm.internal.ArtifactManager.artifact(ArtifactManager.java:52)
      2016-12-23 15:28:47,544 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:181)
      2016-12-23 15:28:47,544 ERROR [stderr] (main) 	... 9 more
      2016-12-23 15:28:47,544 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
      2016-12-23 15:28:47,545 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2016-12-23 15:28:47,545 ERROR [stderr] (main) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2016-12-23 15:28:47,545 ERROR [stderr] (main) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2016-12-23 15:28:47,545 ERROR [stderr] (main) 	at java.lang.reflect.Method.invoke(Method.java:483)
      2016-12-23 15:28:47,545 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:37)
      2016-12-23 15:28:47,546 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.run(Main.java:44)
      2016-12-23 15:28:47,546 ERROR [stderr] (main) 	at org.wildfly.swarm.bootstrap.Main.main(Main.java:35)
      2016-12-23 15:28:47,546 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: Failed to resolve archive dependencies
      2016-12-23 15:28:47,546 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:193)
      2016-12-23 15:28:47,546 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.deploy(Swarm.java:492)
      2016-12-23 15:28:47,546 ERROR [stderr] (main) 	at org.kie.server.swarm.bpm.KieServerMain.main(KieServerMain.java:44)
      2016-12-23 15:28:47,546 ERROR [stderr] (main) 	... 7 more
      2016-12-23 15:28:47,547 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: WFSWARM0013: Artifact 'org.sonatype.sisu:sisu-guice:jar:no_aop:3.2.3' not found.
      2016-12-23 15:28:47,547 ERROR [stderr] (main) 	at org.wildfly.swarm.internal.ArtifactManager.artifact(ArtifactManager.java:59)
      2016-12-23 15:28:47,547 ERROR [stderr] (main) 	at org.wildfly.swarm.internal.ArtifactManager.artifact(ArtifactManager.java:52)
      2016-12-23 15:28:47,547 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:181)
      2016-12-23 15:28:47,547 ERROR [stderr] (main) 	... 9 more
      

      although the same project does work fine when started via: mvn wildfly-swarm:run

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                swiderski.maciej Maciej Swiderski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: