maven-release-plugin

merging changes from a maven release branch yields conflicts due to changed versions in poms

丶灬走出姿态 提交于 2020-01-01 00:29:33
问题 following standard practice, I have an svn trunk for feature development, and a forked-off branch for building releases. The branch has been created using the maven release plugin, which is also used for creating releases. As it happens, the occasional bug will be fixed on the branch, and those changes need to be merged back into the trunk. To not miss any changes, I'd like to be able to simply merge the complete branch back into the trunk. Now my problem is that I get numerous conflicts in

How do I pass javac multiple command-line arguments, some of which include colon, without breaking Maven release plugin?

人盡茶涼 提交于 2019-12-30 09:44:24
问题 I want to make my Maven build fail when I forget to declare serialVersionUIDs in a Serializable class. With javac , that's easy: $ javac -Xlint:serial -Werror Source.java Directly translating that to Maven doesn't work: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <compilerArgument>-Xlint:serial -Werror</compilerArgument> </configuration> </plugin> The compilerArgument is quoted, so javac receives

Deploying assembly package with maven-release-plugin

不羁岁月 提交于 2019-12-29 14:15:33
问题 We use Hudson and the maven-release-plugin to do the release builds. Now I have a project which contains an assembly that puts together all needed components and then packages them into a .tar.gz package with the desired directory structure. Now I'm trying to get the release-plugin to deploy this package to our Maven repository during the release:perform goal, but only the standard stuff (sources, javadoc, POM) are deployed. I've already bound the assembly goal to the maven package phase, and

How to configure a single Jenkins job to make the release process from trunk or branches?

ⅰ亾dé卋堺 提交于 2019-12-28 05:10:29
问题 I am currently enhancing the release process of our projects on Jenkins (1.430). Current release jobs Today, for one specific project, we have one job dedicated to the Release process. The complete procedure is the following: The developer who is in charge of the release changes manually the version of all the pom.xml files (in fact using mvn versions:set -DnewVersion=2.0 ) to get rid of the -SNAPSHOT . Then, he creates a tag in SVN (http://my-svn-repo/project/tags/V_2_0 for example). Once

Maven release goals binding

我的未来我决定 提交于 2019-12-25 04:56:21
问题 I'd like to write a redmine plugin to update the version of some projects when they are released. To avoid manual steps, I'd like to bind to some of the release plugin execution goals. Typically, I need to create a new version when the version number is chosen, close the previous version before the new version is chosen, and so forth... Now, I understand that the release phases are not part of the typical lifecycle, but I suspect that they can be "hooked" the same way as the other phases

Getting bad substitution error when bumping up version using maven versions plugin in Jenkins pipeline

不羁岁月 提交于 2019-12-24 11:37:26
问题 I get a bad substitution error when I run this command in my jenkins pipeline sh 'mvn build-helper:parse-version versions:set \ -DnewVersion=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}-SNAPSHOT \ -DgenerateBackupPoms=false \ -DprocessAllModules \ -DgenerateBackupPoms=false' This is the error message in this case - [code] Running shell script /apps/jenkins/latest/workspace/ess-holani_master

How to setup the Maven release plugin with git

十年热恋 提交于 2019-12-23 07:47:51
问题 The last few days, i have tried to configure the Maven Release Plugin for a release with git. I have setup a test project for it and I have tried so much configurations that i don't know how to display them all to you... In every case the maven release plugin use only the branch im on. If i start the MRP on master branch it create the tag on it and if im on develop branch it creates every thing there. My actual pom looks like this: <project> ... <scm> <connection>scm:git:file://D:\Dev

How to automate a job in Jenkins?

自古美人都是妖i 提交于 2019-12-23 06:35:45
问题 I am using Maven Release Plugin for automate the build & release process.Its working fine but one problem I am facing. I have created a job, which is checking trunk in every 15 minutes, if any changes found it starts the build & release process.And its working fine. But , small problem is when the release:prepare is executing , it is creating the tag and auto increment the trunk/pom.xml version (with SNAPSHOT) to next release version-SNAPSHOT. Suppose my current build version is 2.0-SNAPSHOT.

Maven Issue - The goal you specified requires a project to execute but there is no POM in this directory

杀马特。学长 韩版系。学妹 提交于 2019-12-23 05:16:41
问题 I am using maven release plugin 2.2.1 . In my case release:clean and release:prepare is executing successfully . But when I am trying to execute release:perform it show the following error. EXIMR-IM-187:rabbit_trunk manojkumarbardhan$ mvn release:perform [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Curo Fabric Component for RabbitMQ 2.0.20-SNAPSHOT [INFO] -------------------------------------------------

Maven Release Plugin with Svn:Externals and a multi-module project

可紊 提交于 2019-12-21 12:44:44
问题 Given the following sample multi-module project: aggr/pom.xml (Version 1.0-SNAPSHOT) aggr/parent/pom.xml (Version 2.0-SNAPSHOT) aggr/app/pom.xml (Version 3.0-SNAPSHOT) aggr/comp1/pom.xml (Version 4.0-SNAPSHOT) where parent is the parent of any other pom and app has a dependency of comp1. Releasing via release:prepare/perform just works fine as long as the aggr folder has the same structure within the svn repository (repository/trunk/aggr/parent.pom, ...). Now when I want to use the same