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

Building simple example fails under Windows 7 x64 (file locked by another process)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 2016.9
    • 2016.10.0
    • core, plugins
    • None
    • 2016.11
    • Hide

      Build the simplest Wildfly Swarm war under Windows 7 x64, using Maven 3.3.9 and JDK 1.8.0_102

      Show
      Build the simplest Wildfly Swarm war under Windows 7 x64, using Maven 3.3.9 and JDK 1.8.0_102

    Description

      Even trying to build the most simple demo application:

      and using the mvn commands:

      `mvn clean wildfly-swarm:run`; or just
      `mvn wildfly-swarm:run`

      fails at the war building step with the error message:

      ```
      [INFO] — maven-war-plugin:2.2:war (default-war) @ restful-endpoint —
      [INFO] Packaging webapp
      [INFO] Assembling webapp [restful-endpoint] in [d:\eclipse-workspace-nkg\wildfly-swarm-test\target\restful-endpoint]
      [INFO] Processing war project
      [INFO] Webapp assembled in [9 msecs]
      [INFO] Building war: d:\eclipse-workspace-nkg\wildfly-swarm-test\target\restful-endpoint.war
      [INFO]
      [INFO] — wildfly-swarm-plugin:2016.9:package (default) @ restful-endpoint —
      [INFO] Scanning for needed WildFly Swarm fractions with mode: when_missing
      [INFO] Detected fractions: container:2016.9
      [INFO] Adding fractions: container:2016.9
      [INFO] Repackaging .war: d:\eclipse-workspace-nkg\wildfly-swarm-test\target\restful-endpoint.war
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.393 s
      [INFO] Finished at: 2016-09-12T10:46:48+02:00
      [INFO] Final Memory: 18M/243M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.wildfly.swarm:wildfly-swarm-plugin:2016.9:package (default) on project restful-endpoint: Unable to create -swarm.jar: d:\eclipse-workspace-nkg\wildfly-swarm-test\target\restful-endpoint.war -> d:\eclipse-workspace-nkg\wildfly-swarm-test\target\restful-endpoint.war.original: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird. -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      ```

      which means that the process cannot access the file because it is locked by another process. I've never had this issue with any other Maven applications/builds.

      Under Ubuntu 16.04, the same demo application builds just fine.

      EDIT:
      Using `mvn clean package` works and successfully creates the jar file.

      Attachments

        Issue Links

          Activity

            People

              kfinniga@redhat.com Ken Finnigan (Inactive)
              kburjack Kai Burjack (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: