oath icon indicating copy to clipboard operation
oath copied to clipboard

Can't build

Open ulymarins opened this issue 8 years ago • 2 comments

Hello, I'm not able to build using mvn clean verify. Any thoughts? Stacktrace below:

uly@uly-Inspiron-3647:~/workspace/external/oath$ mvn clean verify
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] OATH Project
[INFO] OATH OTP
[INFO] OATH OTP Key Provisioning
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OATH Project 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oath-parent ---
[INFO] 
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) > generate-sources @ oath-parent >>>
[INFO] 
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) < generate-sources @ oath-parent <<<
[INFO] 
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ oath-parent ---
[INFO] 
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ oath-parent ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OATH OTP 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ oath-otp ---
[INFO] Deleting /home/uly/workspace/external/oath/oath-otp/target
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OATH Project ....................................... SUCCESS [  1.366 s]
[INFO] OATH OTP ........................................... FAILURE [  1.099 s]
[INFO] OATH OTP Key Provisioning .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.634 s
[INFO] Finished at: 2016-12-08T13:28:18-02:00
[INFO] Final Memory: 15M/216M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project oath-otp: Failed to clean project: Failed to delete /home/uly/workspace/external/oath/oath-otp/target/test-classes/com/lochbridge/oath/otp/TestTOTPBuilder.class -> [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 <goals> -rf :oath-otp


ulymarins avatar Dec 08 '16 15:12 ulymarins

That's weird it worked for me. Can you share your full debug log?

gaviral avatar Dec 08 '16 23:12 gaviral

it's not the bug of the project your tagret folder can not be deleted(probably, it is locked by some other process) this issue can be closed

SaltOfTheFlame avatar Sep 09 '17 07:09 SaltOfTheFlame