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

NoSuchFileException: target/wildfly-swarm-archive/modules

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: None
    • Labels:
      None

      Description

      Hi,

      I have this very simple JAX-RS sample built with JBoss Forge that works fine with Swarm Alpha1. I've just updated to Alpha2 and I have NoSuchFileException (see below) when doing a mvn clean install on my project (and the fatjar is not created).

      The JBoss Forge addon adds the following to the pom.xml. Has anything changed ?

         
      <dependency>
            <groupId>org.wildfly.swarm</groupId>
            <artifactId>wildfly-swarm-jaxrs</artifactId>
            <version>${version.wildfly-swarm}</version>
            <scope>provided</scope>
          </dependency>
      ...
            <plugin>
              <groupId>org.wildfly.swarm</groupId>
              <artifactId>wildfly-swarm-plugin</artifactId>
              <version>${version.wildfly-swarm}</version>
              <executions>
                <execution>
                  <phase>package</phase>
                  <goals>
                    <goal>create</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
      

      Exception :

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.174 s
      [INFO] Finished at: 2015-06-05T16:04:04+02:00
      [INFO] Final Memory: 22M/215M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.wildfly.swarm:wildfly-swarm-plugin:1.0.0.Alpha2:create (default) on project swarm: Failed to analyze module XML for /Users/antoniombp/Documents/Code/Temp/CDI/swarm/target/wildfly-swarm-archive/modules -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wildfly.swarm:wildfly-swarm-plugin:1.0.0.Alpha2:create (default) on project swarm: Failed to analyze module XML for /Users/antoniombp/Documents/Code/Temp/CDI/swarm/target/wildfly-swarm-archive/modules
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:483)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoFailureException: Failed to analyze module XML for /Users/antoniombp/Documents/Code/Temp/CDI/swarm/target/wildfly-swarm-archive/modules
              at org.wildfly.swarm.plugin.CreateMojo.analyzeModuleXmls(CreateMojo.java:224)
              at org.wildfly.swarm.plugin.CreateMojo.addMavenRepository(CreateMojo.java:156)
              at org.wildfly.swarm.plugin.CreateMojo.execute(CreateMojo.java:115)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
              ... 20 more
      Caused by: java.nio.file.NoSuchFileException: /Users/antoniombp/Documents/Code/Temp/CDI/swarm/target/wildfly-swarm-archive/modules
              at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
              at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
              at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
              at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
              at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
              at java.nio.file.Files.readAttributes(Files.java:1737)
              at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
              at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
              at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
              at java.nio.file.Files.walkFileTree(Files.java:2662)
              at java.nio.file.Files.walkFileTree(Files.java:2742)
              at org.wildfly.swarm.plugin.CreateMojo.analyzeModuleXmls(CreateMojo.java:214)
              ... 24 more
      

      `

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                agoncal Antonio Goncalves
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: