Hi all, I have a problem when I am trying to run the task release:perform.
the command I try to execute is: mvn release:clean release:prepare release:perform -DscmCommentPrefix="MyJira-203: Release Apps 2.1.1 - Test 2" -P deployRelease,weblogic -DpomFileName=/repository/maven_release/apps/pom.xml -B -X -e I have tried pointing out our parent pom file (see above). The thing is that this one is not in the root folder of the project. The root pom.xml is a folder called apps, this is because we have a lot of other thing that belongs to the release also checked in to the repository. Under the folder apps I have all the other artifact folders and source codes. It goes through release:clean release:prepare without a problem, but when it comes to release:perform I get this exception: [INFO] Release preparation complete. [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-release-plugin:2.0-beta-8:perform' --> [DEBUG] (s) basedir = C:\repository\system_maven_release\system [DEBUG] (f) javaHome = C:\Program Files\jdk160_05\jre [DEBUG] (f) mavenExecutorId = invoker [DEBUG] (f) mavenHome = C:\dev_tools\apache-maven-2.2.1 [DEBUG] (f) pomFileName = /repository/system_maven_release/system/pom.xml [DEBUG] (f) project = MavenProject: com.mycompany:myapp-masterpom:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\pom.xml [DEBUG] (f) reactorProjects = [MavenProject: com.mycompany:myapp-masterpom:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\pom.xml, MavenProject: c om.mycompany:lifecycle:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\lifecycle\pom.xml, MavenProject: com.mycompany:hivemind_registry: 2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\hivemind_registry\pom.xml, MavenProject: com.mycompany:myapp_integration_hivemind:2.1.10-SNAPSHOT @ C :\repository\system_maven_release\system\myapp_integration_hivemind\pom.xml, MavenProject: com.mycompany:ics_architecture:2.1.10-SNAPSHOT @ C:\repository\system_m aven_release\system\ics_architecture\pom.xml, MavenProject: com.mycompany:ics_portal:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\ics_portal\pom.x ml, MavenProject: com.mycompany:myapp_core:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\myapp_core\pom.xml, MavenProject: com.mycompany :myapp_application:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\myapp_application\pom.xml, MavenProject: com.mycompany:myapp_admin:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\myapp_admin\pom.xml, MavenProject: com.mycompany:myapp_hivemind:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\igl oo\myapp_hivemind\pom.xml, MavenProject: com.mycompany:myapp_ws_common_adapter:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\myapp_ws_common_adapter\ pom.xml, MavenProject: com.mycompany:myapp_ws_edgeware_client:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\myapp_ws_edgeware_client\pom.xml, MavenP roject: com.mycompany:tcat_java:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\tcat_java\pom.xml, MavenProject: com.mycompany:myapp_admi n_tool_war:2.1.10-SNAPSHOT @ C:\repository\system_maven_release\system\myapp_admin_tool\pom.xml, MavenProject: com.mycompany:myapp_integration_tool_war:2.1.10-SNA PSHOT @ C:\repository\system_maven_release\system\myapp_integration_tool\pom.xml, MavenProject: com.mycompany:myapp_war:2.1.10-SNAPSHOT @ C:\repository\system_mave n_release\system\myapp_production\pom.xml] [DEBUG] (f) scmCommentPrefix = system-203: Test 4 [DEBUG] (f) settings = org.apache.maven.settings.setti...@6326e5 [DEBUG] (f) useReleaseProfile = true [DEBUG] (f) workingDirectory = C:\repository\system_maven_release\system\target\checkout [DEBUG] -- end configuration -- [INFO] [release:perform {execution: default-cli}] [INFO] Checking out the project to perform the release ... [INFO] Removing C:\repository\system_maven_release\system\target\checkout [INFO] EXECUTING: cmd.exe /X /C "hg clone -r myapp-masterpom-2.1.10 file:///repository/system_maven_release C:\repository\system_maven_release\system\target\checkout" [DEBUG] requesting all changes [DEBUG] adding changesets [DEBUG] adding manifests [DEBUG] adding file changes [DEBUG] added 429 changesets with 24741 changes to 22414 files [DEBUG] updating working directory [DEBUG] 2377 files updated, 0 files merged, 0 files removed, 0 files unresolved [INFO] EXECUTING: cmd.exe /X /C "hg locate" ... [INFO] Executing goals 'deploy site-deploy'... [DEBUG] Using ${maven.home} of: 'C:\dev_tools\apache-maven-2.2.1'. [DEBUG] Executing: cmd.exe /X /C "C:\dev_tools\apache-maven-2.2.1\bin\mvn.bat -B -X -D maven.repo.local=C:\.m2 -D performRelease=true -P deployRelease,weblogic,weblogic deploy site-deploy" [INFO] + Error stacktraces are turned on. [INFO] Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) [INFO] Java version: 1.6.0_05 [INFO] Java home: C:\Program Files\jdk160_05\jre [INFO] Default locale: sv_SE, platform encoding: Cp1252 [INFO] OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" [INFO] [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\jabe21\.m2\plugin-registry.xml' [INFO] [DEBUG] Building Maven global-level plugin registry from: 'C:\dev_tools\apache-maven-2.2.1\conf\plugin-registry.xml' [INFO] [INFO] Scanning for projects... [INFO] [WARNING] [INFO] Profile with id: 'deployRelease' has not been activated. [INFO] [INFO] [DEBUG] Wagons could not be registered as the extension container was never created [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Building Maven Default Project [INFO] [INFO] task-segment: [deploy, site-deploy] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:12 for project: null:maven-resources-plugin:maven-plugin:2.3 from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:9 for project: org.apache.maven.plugins:maven-plugins:pom:12 from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project: org.apache.maven:maven-parent:pom:9 from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8 for project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project: org.apache.maven:maven-parent:pom:5 from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire:pom:2.4.3 for project: org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:7 for project: org.apache.maven.surefire:surefire:pom:2.4.3 from the repository. [INFO] [DEBUG] Adding managed dependencies for org.apache.maven.plugins:maven-surefire-plugin [INFO] [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4.3 [INFO] [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4.3 [INFO] [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.1 [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:10 for project: null:maven-jar-plugin:maven-plugin:2.2 from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11 for project: null:maven-deploy-plugin:maven-plugin:2.4 from the repository. [INFO] [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for project: org.apache.maven.plugins:maven-plugins:pom:11 from the repository. [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [ERROR] BUILD ERROR [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [DEBUG] Trace [INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) [INFO] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) [INFO] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) [INFO] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) [INFO] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) [INFO] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) [INFO] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) [INFO] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) [INFO] at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) [INFO] at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [INFO] at java.lang.reflect.Method.invoke(Method.java:597) [INFO] at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) [INFO] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) [INFO] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) [INFO] at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not usi ng one. [INFO] at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:414) [INFO] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) [INFO] ... 17 more [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 1 second [INFO] [INFO] Finished at: Tue Feb 02 11:01:57 CET 2010 [INFO] [INFO] Final Memory: 9M/508M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Maven execution failed, exit code: '1' [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:133) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:89) at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:334) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:282) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:262) at org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:129) ... 19 more Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Maven execution failed, exit code: '1' at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:375) at org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:393) at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:81) ... 24 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18 minutes 47 seconds [INFO] Finished at: Tue Feb 02 11:01:58 CET 2010 [INFO] Final Memory: 16M/508M [INFO] ------------------------------------------------------------------------ in my parent pom I have defined this: <scm> <connection>scm:hg:file:///repository/system_maven_release</connection> <developerConnection>scm:hg:file:///repository/system_maven_release</developerConnection> </scm> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> </plugin> </plugins> <build> ... <profile> <id>deployRelease</id> <activation> <property> <name>deployProfile</name> <value>release</value> </property> </activation> <properties> <snapshotDir>${basedir}/tmpdir</snapshotDir> </properties> <distributionManagement> <repository> <id>apps-release</id> <name>apps-release</name> <url>http://myserver:8081/nexus/content/repositories/apps-release</url> </repository> <snapshotRepository> <id>apps-snapshot</id> <name>apps-snapshot</name> <url>file://${snapshotDir}</url> </snapshotRepository> <site> <id>iptv-release</id> <url>scp://myserver/mypath/apps/repository/release</url> </site> </distributionManagement> </profile> ... Hope that anyone out there can see what I have done wrong and point that out. Thanks in advance, Jacob -- View this message in context: http://old.nabble.com/Problem-with-mvn-release%3Aperform-and-Mercurial-tp27418206p27418206.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org