maven


Maven release from a branch by jenkins


I have to perform a maven release from branch with Jenkis and tag the RELEASE.At the same time, i need to update the version (new SNAPSHOT) on trunk.
For Example:
/trunk contains Module_1.0.0-SNAPSHOT
/branches/Module_1.0.0-SNAPSHOT
After Perform Maven Release on /branches/Module_1.0.0-SNAPSHOT
/trunk contains Module_1.0.1-SNAPSHOT
/tag/Module_1.0.0-RELEASE
Setting maven-release-plugin and scm (url, connection, developerConnection), /tag/Module_1.0.0-RELEASE and new version on branch go right way.
But, even with developerConnection pointing to trunk doesn't udpate the version on trunk.
How could I achieve that?
thank's in advance.
If you run the Maven release plugin on your branch (/branches/Module_1.0.0-SNAPSHOT), it will:
Update the version number on this branch (1.0.0-SNAPSHOT --> 1.0.0)
Apply a tag on this branch (tag/1.0.0 or something like that)
Move your branch to 1.0.1-SNAPSHOT
Even if you set the developerConnection property, the Maven release plugin will not update the version number of your trunk branch.
If you want to increase the version number on the trunk, you have to release from the trunk (or release from the branch + merge your branch to your trunk).

Related Links

How do I exclude java files from a jar in maven-jar-plugin?
Running Tomcat Server with an artifact created by Maven into IntelliJ 13
AxisServlet ClassCastException when deploying Axis2 on Tomcat via Maven
Configuring Maven to use Central Repository if Nexus is unreachable
Hg : join many repositories into a single one
Artifact has not been packaged yet - maven-dependency-plugin
how to make a automation testing framework
Maven module dependency and resources
Permission denied error
Apache Maven Error : Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom: 2.5 to central
Replace tokens from one file to another using Ant script
How to run all the test files and trigger test using maven-surefire plugin
Execute a separate Java process in the classpath of a module
How to trigger distribution module when rebuilding sub module in Maven?
java.nio.file.InvalidPathException: Illegal char <:> at index 4: http://central.maven.org/maven2/org/jboss/weld/servlet/weld-servlet/2.1.2.Final
Openshift deploy with additional Maven command line options

Categories

HOME
cakephp
ibm-bluemix
bluetooth
oracle11g
fluentd
hp-exstream
onedrive
octobercms
webstorm
youtube-dl
google-docs
rsync
gps
azure-media-services
session-variables
nano-server
kentor-authservices
google-cloud-spanner
php-7.1
remote-access
django-simple-history
telephony
seaborn
oxyplot
samoa
scichart
swingx
predix
format-specifiers
firebase-crash-reporting
crosstab
shopware
saas
atlassian-crucible
primitive
google-cloud-nl
nat
typed.js
pim
commit
textmate
ghost4j
catalog
streamsets
hilbert-curve
az-application-insights
leading-zero
temporary-files
awt
sql-server-agent
nxlog
avconv
osx-mavericks
rails-routing
nstextview
elgg
lift-json
nsarray
hittest
google-feed-api
measures
lttng
master-slave
make-install
apachebench
freelancer.com-api
python-3.2
retina
muse
ios9.1
event-bubbling
web-controls
c3
javafx-webengine
kgdb
mechanize-ruby
viadeo
html4
plasma
spring-validator
lcs
bluepill
first-responder
manchester-syntax
datawindow
armcc
buildr
gnu-prolog
coercion
calling-convention
propagation
html-input
vc90
avatar
text-coloring
data-acquisition

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App