[ https://jira.codehaus.org/browse/MRELEASE-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MRELEASE-733: ------------------------------------ Description: My project is under source control in clearcase UCM. When I update the {{maven-release-plugin}} from {{2.0}} to {{2.2.2}} my release fails. With version {{2.0}} everything works fine. The configuration of the release plugin is like this: {code:xml} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.2.2</version> <configuration> <workingDirectory>${release.root}/</workingDirectory> </configuration> </plugin> {code} I need to set the {{workingDirectory}} because in clearcase you can not perform the checkout of the tag inside the view. So in my jenkins I'll set release.root=${WORKSPACE}\checkout SCM looks like this {code:xml} <scm> <connection>scm:clearcase||load \Orbis_Reports|\Orbis_Project_Vob|MavenDeploymentEvaluation</connection> <developerConnection>scm:clearcase||load \Orbis_Reports|\Orbis_Project_Vob|MavenDeploymentEvaluation</developerConnection> </scm> {code} The project is very simple, i.e. one single pom.xml {noformat} [INFO] Invoking perform goals in directory D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports [INFO] Executing goals 'deploy'... [DEBUG] Using ${maven.home} of: 'c:\dev\tools\apache-maven-3.0.3'. [WARNING] Base directory is a file. Using base directory as POM location. [DEBUG] Specified POM file is not named 'pom.xml'. Using the '-f' command-line option to accommodate non-standard filename... [DEBUG] Executing: cmd.exe /X /C "C:\dev\tools\apache-maven-3.0.3\bin\mvn.bat -B -X -D maven.repo.local=D:\m2 -f Orbis_Reports -s D:\Profiles\axiaz\.m2\settings.xml -D performRelease=true -P staging,orbis.developer deploy" [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3:10.172s [INFO] Finished at: Thu Jan 26 22:50:07 CET 2012 [INFO] Final Memory: 4M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on project test-reports: Error executing Maven. Working directory "D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports\Orbis_Reports" does not exist! -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on project test-reports: Error executing Maven. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing Maven. at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:136) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Error executing Maven. at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:89) at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:97) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:346) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:293) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:272) at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:132) ... 21 more Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Error executing Maven. at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:395) at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:417) at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:81) ... 26 more Caused by: org.codehaus.plexus.util.cli.CommandLineException: Working directory "D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports\Orbis_Reports" does not exist! at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:644) at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:118) at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:93) at org.apache.maven.shared.invoker.DefaultInvoker.executeCommandLine(DefaultInvoker.java:149) at org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.java:102) at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:391) ... 28 more {noformat} was: My project is under source control in clearcase UCM. When I update the maven-release-plugin from 2.0 to 2.2.2 my release fails. With version 2.0 everything works fine. The configuration of the release plugin is like this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.2.2</version> <configuration> <workingDirectory>${release.root}/</workingDirectory> </configuration> </plugin> I need to set the workingDirectory because in clearcase you can not perform the checkout of the tag inside the view. So in my jenkins I'll set release.root=${WORKSPACE}\checkout SCM looks like this <scm> <connection>scm:clearcase||load \Orbis_Reports|\Orbis_Project_Vob|MavenDeploymentEvaluation</connection> <developerConnection>scm:clearcase||load \Orbis_Reports|\Orbis_Project_Vob|MavenDeploymentEvaluation</developerConnection> </scm> The project is very simple, i.e. one single pom.xml [INFO] Invoking perform goals in directory D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports [INFO] Executing goals 'deploy'... [DEBUG] Using ${maven.home} of: 'c:\dev\tools\apache-maven-3.0.3'. [WARNING] Base directory is a file. Using base directory as POM location. [DEBUG] Specified POM file is not named 'pom.xml'. Using the '-f' command-line option to accommodate non-standard filename... [DEBUG] Executing: cmd.exe /X /C "C:\dev\tools\apache-maven-3.0.3\bin\mvn.bat -B -X -D maven.repo.local=D:\m2 -f Orbis_Reports -s D:\Profiles\axiaz\.m2\settings.xml -D performRelease=true -P staging,orbis.developer deploy" [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3:10.172s [INFO] Finished at: Thu Jan 26 22:50:07 CET 2012 [INFO] Final Memory: 4M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on project test-reports: Error executing Maven. Working directory "D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports\Orbis_Reports" does not exist! -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on project test-reports: Error executing Maven. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing Maven. at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:136) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Error executing Maven. at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:89) at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:97) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:346) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:293) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:272) at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:132) ... 21 more Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Error executing Maven. at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:395) at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:417) at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:81) ... 26 more Caused by: org.codehaus.plexus.util.cli.CommandLineException: Working directory "D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports\Orbis_Reports" does not exist! at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:644) at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:118) at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:93) at org.apache.maven.shared.invoker.DefaultInvoker.executeCommandLine(DefaultInvoker.java:149) at org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.java:102) at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:391) ... 28 more > Can't release when specifying a workingDirectory - Base directory is a file. > Using base directory as POM location. > ------------------------------------------------------------------------------------------------------------------- > > Key: MRELEASE-733 > URL: https://jira.codehaus.org/browse/MRELEASE-733 > Project: Maven 2.x Release Plugin > Issue Type: Bug > Components: perform > Affects Versions: 2.2.2 > Environment: Java 1.6.0 > Maven 3.0.3 > Windows XP > Reporter: Max Schaefer > > My project is under source control in clearcase UCM. > When I update the {{maven-release-plugin}} from {{2.0}} to {{2.2.2}} my > release fails. With version {{2.0}} everything works fine. > The configuration of the release plugin is like this: > {code:xml} > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-release-plugin</artifactId> > <version>2.2.2</version> > <configuration> > <workingDirectory>${release.root}/</workingDirectory> > </configuration> > </plugin> > {code} > I need to set the {{workingDirectory}} because in clearcase you can not > perform the checkout of the tag inside the view. So in my jenkins I'll set > release.root=${WORKSPACE}\checkout > SCM looks like this > {code:xml} > <scm> > <connection>scm:clearcase||load > \Orbis_Reports|\Orbis_Project_Vob|MavenDeploymentEvaluation</connection> > <developerConnection>scm:clearcase||load > \Orbis_Reports|\Orbis_Project_Vob|MavenDeploymentEvaluation</developerConnection> > </scm> > {code} > The project is very simple, i.e. one single pom.xml > {noformat} > [INFO] Invoking perform goals in directory > D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports > [INFO] Executing goals 'deploy'... > [DEBUG] Using ${maven.home} of: 'c:\dev\tools\apache-maven-3.0.3'. > [WARNING] Base directory is a file. Using base directory as POM location. > [DEBUG] Specified POM file is not named 'pom.xml'. Using the '-f' > command-line option to accommodate non-standard filename... > [DEBUG] Executing: cmd.exe /X /C "C:\dev\tools\apache-maven-3.0.3\bin\mvn.bat > -B -X -D maven.repo.local=D:\m2 -f Orbis_Reports -s > D:\Profiles\axiaz\.m2\settings.xml -D performRelease=true -P > staging,orbis.developer deploy" > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 3:10.172s > [INFO] Finished at: Thu Jan 26 22:50:07 CET 2012 > [INFO] Final Memory: 4M/15M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on > project test-reports: Error executing Maven. Working directory > "D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports\Orbis_Reports" > does not exist! -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform > (default-cli) on project test-reports: Error executing Maven. > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) > 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:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing > Maven. > at > org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:136) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Error > executing Maven. > at > org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:89) > at > org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:97) > at > org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:346) > at > org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:293) > at > org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:272) > at > org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:132) > ... 21 more > Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Error > executing Maven. > at > org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:395) > at > org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:417) > at > org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:81) > ... 26 more > Caused by: org.codehaus.plexus.util.cli.CommandLineException: Working > directory > "D:\Views\hudson_slave\workspace\TestMax\test-reports-1.0.14-SNAPSHOT\Orbis_Reports\Orbis_Reports" > does not exist! > at > org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:644) > at > org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:118) > at > org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:93) > at > org.apache.maven.shared.invoker.DefaultInvoker.executeCommandLine(DefaultInvoker.java:149) > at > org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.java:102) > at > org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:391) > ... 28 more > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira