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

run goal chokes on zip dependency

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 2017.2.0
    • Fix Version/s: 2017.3.2
    • Component/s: plugins
    • Labels:
      None

      Description

      As soon as you add a zip dependency to your swarm project, the run goal of the maven plugin fails with following exception:

      2017-02-23 17:28:46,397 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Swarm 2017.2.0 (WildFly Core 2.2.1.CR1) started in 1720ms - Started 108 of 118 services (21 services are lazy, passive or on-demand)
      2017-02-23 17:28:46,546 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
      2017-02-23 17:28:46,546 ERROR [stderr] (main)                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2017-02-23 17:28:46,546 ERROR [stderr] (main)                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2017-02-23 17:28:46,546 ERROR [stderr] (main)                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2017-02-23 17:28:46,546 ERROR [stderr] (main)                at java.lang.reflect.Method.invoke(Method.java:498)
      2017-02-23 17:28:46,547 ERROR [stderr] (main)                at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
      2017-02-23 17:28:46,547 ERROR [stderr] (main)                at org.wildfly.swarm.bootstrap.MainInvoker.main(MainInvoker.java:70)
      2017-02-23 17:28:46,547 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: Failed to resolve archive dependencies
      2017-02-23 17:28:46,547 ERROR [stderr] (main)                at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:206)
      2017-02-23 17:28:46,547 ERROR [stderr] (main)                at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:99)
      2017-02-23 17:28:46,548 ERROR [stderr] (main)                at org.wildfly.swarm.Swarm.deploy(Swarm.java:407)
      2017-02-23 17:28:46,548 ERROR [stderr] (main)                at org.wildfly.swarm.Swarm.main(Swarm.java:546)
      2017-02-23 17:28:46,548 ERROR [stderr] (main)                ... 6 more
      2017-02-23 17:28:46,548 ERROR [stderr] (main) Caused by: java.lang.IllegalArgumentException: Given file is not a directory /home/someuser/.m2/repository/someartifact/1.0.1702161146-1dc3414/someartifact-1.0.1702161146-1dc3414.zip
      2017-02-23 17:28:46,548 ERROR [stderr] (main)                at org.jboss.shrinkwrap.impl.base.importer.ExplodedImporterImpl.importDirectory(ExplodedImporterImpl.java:108)
      2017-02-23 17:28:46,548 ERROR [stderr] (main)                at org.jboss.shrinkwrap.impl.base.importer.ExplodedImporterImpl.importDirectory(ExplodedImporterImpl.java:85)
      2017-02-23 17:28:46,548 ERROR [stderr] (main)                at org.jboss.shrinkwrap.impl.base.importer.ExplodedImporterImpl.importDirectory(ExplodedImporterImpl.java:74)
      2017-02-23 17:28:46,549 ERROR [stderr] (main)                at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:196)
      2017-02-23 17:28:46,549 ERROR [stderr] (main)                ... 9 more
      

      This does not happen when configuring <useUberJar>true</useUberJar> or starting the jar yourself via java -jar ....

      Both 2017.2.0 and the current 2017.3.0-SNAPSHOT are affected. 2017.1.1 is not affected.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  famod Falko Modler
                  Reporter:
                  famod Falko Modler
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: