org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-clean-plug in:2.5:clean (default-clean) on project com.sap.core: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_Devel opment_Branch_jtest\workspace\bundles\com.sap.core\target\generated-sources\annotations

Jenkins JIRA | Jeff Humphry | 4 years ago
  1. 0

    Running Maven build project pulled from GitHub. It's failing on the third project trying to clean. Can't delete some files. Attached is the console output log [^ConsoleText.txt] When I build using Maven at the command line, I get the same result, with some additional information; some of the folders seem to be created by Jenkins with higher security: Using   {{mvn clean install -e}} \\ \\ {noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project com.sap. core: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_Development_Branch_jtest\workspace\bundles\com.sap.co re\target\generated-sources\annotations -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-clean-plug in:2.5:clean (default-clean) on project com.sap.core: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_Devel opment_Branch_jtest\workspace\bundles\com.sap.core\target\generated-sources\annotations at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) ... Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_ Development_Branch_jtest\workspace\bundles\com.sap.core\target\generated-sources\annotations at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:215) ... Caused by: java.io.IOException: Failed to delete D:\Jenkins\jobs\CQ_Development_Branch_jtest\workspace\bundles\com.sap.c ore\target\generated-sources\annotations at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:249) ... {noformat} I attached the full console output [^ConsoleText_M2.txt] If I try to go and manually delete the files, I get a prompt that I need administrator privileges to delete: !AdminPriv.jpg|width=500! Tried the following: * Run the service under account that is administrator on the machine * Set compatibility mode on jenkins.exe to run with administrative privileges * Set the "Wipe out workspace before build" option * Add mvn clean as a pre-step * Disable all virus-scanning on the server All give same result. A couple other oddities: * Adding the -e switch to the goals in the Jenkins configuration doesn't seem to work. * The Jenkins output doesn't have any information about the file delete IO error.

    Jenkins JIRA | 4 years ago | Jeff Humphry
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-clean-plug in:2.5:clean (default-clean) on project com.sap.core: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_Devel opment_Branch_jtest\workspace\bundles\com.sap.core\target\generated-sources\annotations
  2. 0

    MojoException while running update or create

    GitHub | 3 years ago | hakan42
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.versioneye:versioneye-maven-plugin:2.1.0-SNAPSHOT:update (default-cli) on project xing-sync: Oh no! Something went wrong. Get in touch with the VersionEye guys and give them feedback.You find them on Twitter at https//twitter.com/VersionEye.
  3. 0

    jaxb2-maven-plugin fails on Jenkins

    Stack Overflow | 4 years ago
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.5:xjc (default) on project xxx: unrecognized parameter -
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Integrating Karma JavaScript testing with Maven

    Stack Overflow | 4 years ago | John Doe
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.kelveden:maven-karma-plugin:1.0:start (default) on project web: There was an error executing Karma.
  6. 0

    Build failure with Exec Maven plugin running a thor script

    Stack Overflow | 3 years ago | anssias
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default) on project imsprocess: Command execution failed.

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.maven.lifecycle.LifecycleExecutionException

      Failed to execute goal org.apache.maven.plugins:maven-clean-plug in:2.5:clean (default-clean) on project com.sap.core: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_Devel opment_Branch_jtest\workspace\bundles\com.sap.core\target\generated-sources\annotations

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute()
    2. Maven Core
      MojoExecutor.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
      1 frame