BIMserver
BIMserver copied to clipboard
Failing to build.
Describe the bug Building of BIMserver fails when building pluginbase.
To Reproduce
Steps to reproduce the behavior:
From root of the project, mvn clean install
Expected behavior It should build successfully.
Log
PS P:\BIMserver> mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Build [pom]
[INFO] Bdb [jar]
[INFO] PluginBase [jar]
[INFO] Shared [jar]
[INFO] BimServerClientLib [jar]
[INFO] BimServer [jar]
[INFO] BimServerWar [war]
[INFO] BimServerJar [jar]
[INFO]
[INFO] ----------------------< org.opensourcebim:parent >----------------------
[INFO] Building Build 1.5.183-SNAPSHOT [1/8]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ parent ---
[INFO] Installing P:\BIMserver\pom.xml to C:\Users\Marios\.m2\repository\org\opensourcebim\parent\1.5.183-SNAPSHOT\parent-1.5.183-SNAPSHOT.pom
[INFO]
[INFO] -----------------------< org.opensourcebim:bdb >------------------------
[INFO] Building Bdb 1.5.183-SNAPSHOT [2/8]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bdb ---
[INFO] Deleting P:\BIMserver\Bdb\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bdb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory P:\BIMserver\Bdb\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ bdb ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ bdb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory P:\BIMserver\Bdb\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ bdb ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ bdb ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ bdb ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: P:\BIMserver\Bdb\target\bdb-1.5.183-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ bdb ---
[INFO] Installing P:\BIMserver\Bdb\target\bdb-1.5.183-SNAPSHOT.jar to C:\Users\Marios\.m2\repository\org\opensourcebim\bdb\1.5.183-SNAPSHOT\bdb-1.5.183-SNAPSHOT.jar
[INFO] Installing P:\BIMserver\Bdb\pom.xml to C:\Users\Marios\.m2\repository\org\opensourcebim\bdb\1.5.183-SNAPSHOT\bdb-1.5.183-SNAPSHOT.pom
[INFO]
[INFO] --------------------< org.opensourcebim:pluginbase >--------------------
[INFO] Building PluginBase 1.5.183-SNAPSHOT [3/8]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pluginbase ---
[INFO] Deleting P:\BIMserver\PluginBase\target
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:add-source (add-source) @ pluginbase ---
[INFO] Source directory: P:\BIMserver\PluginBase\generated added.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ pluginbase ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4385 resources
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Build 1.5.183-SNAPSHOT:
[INFO]
[INFO] Build .............................................. SUCCESS [ 0.159 s]
[INFO] Bdb ................................................ SUCCESS [ 0.395 s]
[INFO] PluginBase ......................................... FAILURE [ 4.939 s]
[INFO] Shared ............................................. SKIPPED
[INFO] BimServerClientLib ................................. SKIPPED
[INFO] BimServer .......................................... SKIPPED
[INFO] BimServerWar ....................................... SKIPPED
[INFO] BimServerJar ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.576 s
[INFO] Finished at: 2022-06-17T11:08:06+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources) on project pluginbase: Failed to copy full contents from P:\BIMserver\PluginBase\generated\org\bimserver\models\ifc4\IfcStructuralSurfaceMember.java to P:\BIMserver\PluginBase\target\classes\org\bimserver\models\ifc4\IfcStructuralSurfaceMember.java -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :pluginbase
Can't reproduce this. Is it failing every tíme for the same resource (org\bimserver\models\ifc4\IfcStructuralSurfaceMember.java)?
This appears to be a permission or locking issue in the build environment, not a BIMserver issue.