Hi folks, I have used the release plugin fro a millions of releases. And suddenly it stopped working as expected.
I am doing: $> mvn release:prepare $> mvn release:perform And usually I see commits of the kind: [maven-release-plugin] prepare release v3.2.2 When i did an minor upgrade today, I didn't see such commits. In fact, my pom was updated to the correct version, but this update was not committed. My release tag contains 3.2.3-SNAPSHOT as version, while the tag itself has the right name. I checked my source code, but between this release and the last only the Struts version has changed (it's a security release). That's why I am confused. I have reinstalled MacPorts recently, but that's the only thing which has changed and I can't imagine a connection. My output doesn't show any error. Previously i have used release plugin version 2.3.1, but when the error appeared I upgraded to 2.4. --- maven-release-plugin:2.4:prepare (default-cli) @ webapp --- [INFO] Verifying that there are no local modifications... [INFO] ignoring changes on: **/pom.xml.backup, **/release.properties, **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git status --porcelain [INFO] Working directory: /Users/cg/project.git/webapp [INFO] Ignoring SNAPSHOT depenedencies and plugins ... What is the release version for "webapp"? (de.grobmeier.tab:webapp) 3.2.3: : What is SCM release tag or label for "webapp"? (de.grobmeier.tab:webapp) v3.2.3: : What is the new development version for "webapp"? (de.grobmeier.tab:webapp) 3.2.4-SNAPSHOT: : [INFO] Transforming 'webapp'... [INFO] Not generating release POMs [INFO] Executing goals 'clean verify'... [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance. [INFO] [INFO] Scanning for projects... I am not sure if the output "Not generating release POMs" has anything to do with it? I have never used the generate-with-pom goal. After this my test run and I see my webapp build. Then: [INFO] Checking in modified POMs... [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git add -- pom.xml [INFO] Working directory: /Users/cg/project.git/webapp [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git status --porcelain [INFO] Working directory: /Users/cg/project.git/webapp [INFO] Tagging release with the label v3.2.3... [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git tag -F /var/folders/87/crypticnumber/T/maven-scm-1111111.commit v3.2.3 [INFO] Working directory: /Users/cg/project.git/webapp [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git push git@host:user/project.git v3.2.3 [INFO] Working directory: /Users/cg/project.git/webapp [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git ls-files [INFO] Working directory: /Users/cg/project.git/webapp [INFO] Transforming 'webapp'... [INFO] Not removing release POMs [INFO] Checking in modified POMs... [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git add -- pom.xml [INFO] Working directory: /Users/cg/project.git/webapp [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git status --porcelain [INFO] Working directory: /Users/cg/project.git/webapp [INFO] Release preparation complete. >From the output, I would have thought everything went well. But as mentioned, it's not the case. Any ideas are much welcome. It doesn't feel well that way. Thanks! Christian --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
