maven-release-plugin

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

独自空忆成欢 提交于 2019-12-04 06:40:41
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 project but with svn:externals, the release-plugin doesn't work stating that comp1: Can't release project

Best Repository Management for Maven

自闭症网瘾萝莉.ら 提交于 2019-12-04 06:26:05
I am working on Automated Build using maven and Jenkins. I am looking for best open source Repository Management for Maven. So that I can have an integaration between Maven and jenkins via respository manager. You have at least three choices that I know of Nexus Artifactory Apache Archiva I have used all the three and each has pros and cons. I would go with Nexus since it is backed by Sonatype who are also involved in maven development. I liked the Artifactory User Interface though Both Nexus and Artifactory have supported professional editions as well. These are linked from the maven site as

How to release Maven multi-module project with inter-project dependencies?

安稳与你 提交于 2019-12-04 06:07:48
Lets say we have 3 layers project. DB, Business, Web and aggregating pom. Project |-DB | |-pom.xml |-Business | |-pom.xml |-pom.xml All modules are ment to be released and branched together, so Aggregator pom is configured to assign the same version to all submodules. We have the following versions: DB-0.1-SNAPSHOT Business-0.1-SNAPSHOT which depends on DB-0.1-SNAPSHOT Web-0.1-SNAPSHOT which depends on Business-0.1-SNAPSHOT When doing release:prepare , all versions updated to 0.1, but prepare fails because there is no DB-0.1 in dependency yet. One solution is to create different projects for

Using maven-release-plugin with GitHub “You can't push to git://github.com/…”

≡放荡痞女 提交于 2019-12-04 03:37:51
Recently having switched source code repository for a project to GitHub from SourceForge I need to update the maven release process to match. I followed this link for configuring the "scm" section of the pom. The GitHub repository is shown here . Everything else is as it was when using SVN (for publishing to https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-4.MavenRepositories ). So then I invoke mvn clean release:clean release:prepare release:perform and the output is as follows [INFO] --- maven-release-plugin:2.1

Push to local Azure DevOps Git from Build Pipeline

自作多情 提交于 2019-12-04 01:20:57
问题 Short version Can someone tell me how to set up a "Command Line Script" task within an Azure DevOps build pipeline that pushes changes to a local Git repository (in fact, the Git repository on which the pipeline is based)? No matter what I try, my script always times out after printing Pushing commits to git . Longer version We are migrating existing Java/Maven projects from a Jenkins build server to an Azure DevOps build environment, and I am trying to set up a build pipeline that mimics the

Maven release: next development version in batch mode

 ̄綄美尐妖づ 提交于 2019-12-04 01:06:34
I have configured a Jenkins job to release my maven project automatically. This is done by using the following: mvn --batch-mode clean release:prepare release:perform In batch mode the release version and the development version will be determined automatically. This is exactly what I want. The problem is that I want to increase the 2nd number of the version instead of the 3rd one. So when I release version 1.2.0, the next development version must be 1.3.0-SNAPSHOT. Not 1.2.1-SNAPSHOT. Adding a commandline parameter is not an option, because that forces me to constantly edit the build job. Any

How to customise the tag format of the Maven release plugin?

南楼画角 提交于 2019-12-04 00:44:47
In our SVN repo, we store tags like this: trunk project_a project_b branches project_a branch_x branch_y project_b tags project_a 1.0 1.1 project_b 1.0 When I run the Maven release plugin's " prepare " goal on project A, by default it creates the tag as "tags/project_a-x.x", which does not match my tag naming scheme above. I am thus depending upon whoever does the release (i.e. a fallible human) to spot this and change the tag to "tags/project_a/x.x". How can I tell the release plugin to use the correct format by default? The "prepare" goal has a " tag " configuration option that claims to do

Override Maven plugin configuration defined in the pom pluginManagement from the command line

血红的双手。 提交于 2019-12-03 22:57:06
The POM that my project inherits contains some <pluginManagement> for the release plugin that specifies some additional arguments . My question is: Is there a way to override the arguments parameter from the command line in this case? The parent POM has this: <pluginManagement> <plugin> <artifactId>maven-release-plugin</artifactId> <configuration> <arguments>-Prelease</arguments> </configuration> </plugin> </pluginManagement> Due to that the command line argument doesn't work: mvn release:prepare -Darguments="-Pmock -Prelease" The -Darguments="-Pmock -Prelease" part has no effect. When

When should mvn release be used in the project lifecycle?

烂漫一生 提交于 2019-12-03 16:27:37
To clarify the question : I am looking for established best-practices or a pro/con analysis of known practices by project lifecycle I mean : deploy to pre-integration, integration, QA, preprod and prod environment. For some context: Our project deploys to integration and QA every week, currenlty we create a new release for each integration deployment, but this doesn't feel right. It leads to updating all the poms every week breaking dev level dependencies, forcing every dev to do a refresh of their eclipse configurations. We have large workspaces and eclipse doesn't handle the refreshes so

how to make maven release plugin skip tests?

吃可爱长大的小学妹 提交于 2019-12-03 14:49:11
问题 I'm running mvn release:prepare -Darguments="-Dmaven.test.skip=true -DskipTests" on the master checkout of Spotify's docker-client. But I can't get maven's release plugin to skip the tests. Why doesn't maven in this case respect the CLI flags? I'm also curious what causes the release plugin to execute the surefire-plugin. There's no surefire-plugin specified in pom.xml . mvn --version Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T12:29:23-05:00) Maven home: /usr