Dear Maven Developers, I had some troubles with Maven Release plugin in combination with Maven SCM Provider gitexe plugin as an dependency.
I found the following Stackoverflow Question which helped me to get the known behavior back. http://stackoverflow.com/questions/15166781/mvn-releaseprepare-not-committing-changes-to-pom-xml But this could not the solution to downgrade the maven-scm-provider-gitexe plugin to version 1.8.1, is there any information of an behavior change for newer version as 1.8.1? So if I use maven-scm-provider-gitexe version 1.9.4 or better I I don't provide this dependency like before in my pom.xml I have to configure the behavior to get the know behavior from 1.8.1 back. the Known behavior is: -> pom.xml: <version>1.0-SNAPSHOT</version> mvn clean release:clean release:prepare -> pom.xml: <version>1.0</version> -> git tag is created for version 1.0 (tag name: hello-1.0) (pom.xml version: 1.0) -> pom.xml: <version>1.1-SNAPSHOT</version> -> git push with next developing version number. the New behavior is: -> pom.xml: <version>1.0-SNAPSHOT</version> mvn clean release:clean release:prepare -> git tag is created for version 1.0 (tag name: hello-1.0) (pom.xml version: 1.0-SNAPSHOT) -> pom.xml: <version>1.1-SNAPSHOT</version> no git push with next developing version number. I have commit the changed pom.xml for next developing iteration manually via git add & git commit & git push. I don't get also an version number for release. The created Tag includes a pom.xml file with an SNAPSHOT suffixed version number. I attach to this mail an log of "mvn release:prepare". I have also an public repository where the behavior can be seen forked or clone to test it self. https://github.com/tobiashochguertel/hello Does someone know something about this behavior change? Kind regards, Tobias Hochgürtel -- Tobias Hochgürtel Tobias Hochgürtel Alt-Stralau 15 10245 Berlin Tel. 03029 0493-39 Fax 03026 9488-22 E-Mail: [email protected]
0 hochguertelto@workstation-win:/cygdrive/x/hello $ mvn release:prepare [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building hello the Restful Web Application 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-release-plugin:2.3.2:prepare (default-cli) @ hello --- [INFO] Verifying that there are no local modifications... [INFO] ignoring changes on: **\pom.xml.next, **\release.properties, **\pom.xml.branch, **\pom.xml.tag, **\pom.xml.backup, **\pom.xml.releaseBackup [INFO] Executing: cmd.exe /X /C "git status" [INFO] Working directory: X:\hello [INFO] Checking dependencies and plugins for snapshots ... What is the release version for "hello the Restful Web Application"? (biz.hochguertel.javaeetutorial.jaxrs:hello) 1.0: : What is SCM release tag or label for "hello the Restful Web Application"? (biz.hochguertel.javaeetutorial.jaxrs:hello) hello-1.0: : What is the new development version for "hello the Restful Web Application"? (biz.hochguertel.javaeetutorial.jaxrs:hello) 1.1-SNAPSHOT: : [INFO] Transforming 'hello the Restful Web Application'... [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... [INFO] [INFO] [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Building hello the Restful Web Application 1.0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hello --- [INFO] [INFO] [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hello --- [INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] [INFO] Copying 0 resource [INFO] [INFO] [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hello --- [INFO] [INFO] Changes detected - recompiling the module! [INFO] [INFO] Compiling 2 source files to X:\hello\target\classes [INFO] [INFO] [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hello --- [INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] [INFO] skip non existing resourceDirectory X:\hello\src\test\resources [INFO] [INFO] [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ hello --- [INFO] [INFO] Changes detected - recompiling the module! [INFO] [INFO] Compiling 1 source file to X:\hello\target\test-classes [INFO] [INFO] [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ hello --- [INFO] [INFO] Surefire report directory: X:\hello\target\surefire-reports [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running biz.hochguertel.javaeetutorial.jaxrs.HelloWorldTest [INFO] Sep 01, 2015 9:36:28 PM org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory$GrizzlyTestContainer <init> [INFO] INFORMATION: Creating GrizzlyTestContainer configured at the base URI http://localhost:9998/ [INFO] Sep 01, 2015 9:36:29 PM org.glassfish.grizzly.http.server.NetworkListener start [INFO] INFORMATION: Started listener bound to [localhost:9998] [INFO] Sep 01, 2015 9:36:29 PM org.glassfish.grizzly.http.server.HttpServer start [INFO] INFORMATION: [HttpServer] Started. [INFO] Sep 01, 2015 9:36:29 PM org.glassfish.grizzly.http.server.NetworkListener shutdownNow [INFO] INFORMATION: Stopped listener bound to [localhost:9998] [INFO] Sep 01, 2015 9:36:29 PM org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory$GrizzlyTestContainer <init> [INFO] INFORMATION: Creating GrizzlyTestContainer configured at the base URI http://localhost:9998/ [INFO] Sep 01, 2015 9:36:29 PM org.glassfish.grizzly.http.server.NetworkListener start [INFO] INFORMATION: Started listener bound to [localhost:9998] [INFO] Sep 01, 2015 9:36:29 PM org.glassfish.grizzly.http.server.HttpServer start [INFO] INFORMATION: [HttpServer-1] Started. [INFO] Sep 01, 2015 9:36:29 PM org.glassfish.grizzly.http.server.NetworkListener shutdownNow [INFO] INFORMATION: Stopped listener bound to [localhost:9998] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.37 sec [INFO] [INFO] Results : [INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] [INFO] [INFO] --- maven-war-plugin:2.3:war (default-war) @ hello --- [INFO] [INFO] Packaging webapp [INFO] [INFO] Assembling webapp [hello] in [X:\hello\target\hello] [INFO] [INFO] Processing war project [INFO] [INFO] Copying webapp resources [X:\hello\src\main\webapp] [INFO] [INFO] Webapp assembled in [95 msecs] [INFO] [INFO] Building war: X:\hello\target\hello.war [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 5.018 s [INFO] [INFO] Finished at: 2015-09-01T21:36:30+01:00 [INFO] [INFO] Final Memory: 22M/283M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Checking in modified POMs... [INFO] Executing: cmd.exe /X /C "git add -- pom.xml" [INFO] Working directory: X:\hello [INFO] Executing: cmd.exe /X /C "git status" [INFO] Working directory: X:\hello [INFO] Tagging release with the label hello-1.0... [INFO] Executing: cmd.exe /X /C "git tag -F D:\Applications\cygwin64\tmp\maven-scm-1468885197.commit hello-1.0" [INFO] Working directory: X:\hello [INFO] Executing: cmd.exe /X /C "git push [email protected]:tobiashochguertel/hello.git hello-1.0" [INFO] Working directory: X:\hello [INFO] Executing: cmd.exe /X /C "git ls-files" [INFO] Working directory: X:\hello [INFO] Transforming 'hello the Restful Web Application'... [INFO] Not removing release POMs [INFO] Checking in modified POMs... [INFO] Executing: cmd.exe /X /C "git add -- pom.xml" [INFO] Working directory: X:\hello [INFO] Executing: cmd.exe /X /C "git status" [INFO] Working directory: X:\hello [INFO] Release preparation complete. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.122 s [INFO] Finished at: 2015-09-01T21:36:34+01:00 [INFO] Final Memory: 13M/276M [INFO] ------------------------------------------------------------------------ 0 hochguertelto@workstation-win:/cygdrive/x/hello $
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
