I have never used mvn release before and I am struggling trying to get it to work. When I do "mvn release:prepare" it succeeds and seems to do the right things. However, when I do "mvn release:perform" it fails with
P:\Maven\corporate-pom\trunk>mvn release:perform [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Kodak Corporate POM 0.0.4-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-release-plugin:2.3.2:perform (default-cli) @ kodak --- [INFO] Checking out the project to perform the release ... [INFO] info [INFO] Command completed in 307ms [INFO] login [INFO] Command completed in 197ms [INFO] 'login' not necessary, no password set for this user. [INFO] client -o Eric_Kolotyluk_ekolotyluk-3500 [INFO] Command completed in 200ms [INFO] where P:\Maven\corporate-pom\trunk\pom.xml [INFO] Command completed in 192ms [INFO] login [INFO] Command completed in 200ms [INFO] 'login' not necessary, no password set for this user. [INFO] login -s [INFO] Command completed in 201ms [INFO] 'login' not necessary, no password set for this user. [INFO] info [INFO] Command completed in 197ms [INFO] login [INFO] Command completed in 202ms [INFO] 'login' not necessary, no password set for this user. [INFO] client -o Eric_Kolotyluk_ekolotyluk-3500 [INFO] Command completed in 203ms [INFO] where P:\Maven\corporate-pom\trunk\pom.xml [INFO] Command completed in 200ms [INFO] Checkout working directory: P:\Maven\corporate-pom\trunk\target\checkout [INFO] sync -f //depot/Maven/corporate-pom/trunk/[email protected] [INFO] Command completed in 450ms [INFO] [//depot/Maven/corporate-pom/trunk/pom.xml#12 updated P:\Maven\corporate-pom\trunk\pom.xml:updated] [INFO] Executing goals 'deploy'... [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance. [INFO] [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD FAILURE [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 0.082s [INFO] [INFO] Finished at: Fri Aug 17 13:09:29 PDT 2012 [INFO] [INFO] Final Memory: 4M/368M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (P:\Maven\corporate-pom\trunk\target\checkout). Please verify you invoked Maven from the correct directory. -> [Help 1] [INFO] [ERROR] [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [INFO] [ERROR] [INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles: [INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.041s [INFO] Finished at: Fri Aug 17 13:09:29 PDT 2012 [INFO] Final Memory: 10M/368M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:perform (default-cli) on project kodak: Maven execution failed, exit code: '1' -> [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 "mvn release:prepare" creates the directory P:\Maven\corporate-pom\trunk\target\checkout but it is empty. Am I supposed to do "mvn release:perform" from the same directory I do "mvn release:prepare" ? Am I missing something obvious somewhere? Cheers, Eric
