maven-release-plugin

Using maven release plugin autoVersionSubmodules to increment Major version

前提是你 提交于 2019-11-28 11:15:19
I'm using the maven release plugin on hudson with autoVersionSubmodules set to true to automatically increment the development version in the poms. I'm wondering if there is a way to make the plugin increment the major version rather than minor version. Currently when I'm at version 1.1.0-snapshot the next version is set to 1.1.1-snapshot but ideally I would like it to change to 1.2.0-snapshot. Any idea on how to achieve this? Thanks. The maven release plugin prompts you for the values of the release version to tag and also for the next development version. You can define these to avoid

Maven release:perform failure

会有一股神秘感。 提交于 2019-11-28 06:10:23
问题 I am getting error when I am applying release:perform . It is unable to uploading the artifacts into nexus repository . In my SVN 3 directory :- Branch , trunk and tag. When I am applying release:prepare it executes successfully and create a tag with removing the snapshot from pom.xml. And change the trunk/pom.xml to next version with snapshot. Before prepare Trunk/pom.xml version 2.0-SNAPSHOT After prepare Trunk/pom.xml version 2.1-SNAPSHOT After prepare tags/pom.xml version 2.0 But, when I

How to deploy SNAPSHOT with sources and JavaDoc?

这一生的挚爱 提交于 2019-11-28 03:10:56
I want to deploy sources and javadocs with my snapshots. This means that I want to automize the following command: mvn clean source:jar javadoc:jar deploy Just to execute: mvn clean deploy I don't want to have javadoc/sources generation executed during the install phase (i.e. local builds). I know that source/javadoc plugins can be synchronized with the execution of the release plugin but I can't figure out how to wire it to the snapshots releases. sfussenegger <build> <plugins> <plugin> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <phase>deploy

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

徘徊边缘 提交于 2019-11-27 18:35:55
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 this tag has been created, he logs on our Jenkins server, and starts a Release build. This build will

How can I get maven-release-plugin to skip my tests?

时光毁灭记忆、已成空白 提交于 2019-11-27 16:43:13
How can I get the maven-release-plugin to run without triggering the tests? I have tried -Dmaven.test.skip=true and -DskipTests and -DpreparationGoals=clean ...yet none work. Yes, I know I shouldn't release if the tests don't pass, but I don't have control over making my coworkers write reliable tests. bmargulies -Darguments="-DskipTests" is what you want, or explicitly configuring the forked executions in the pom. Engineer Dollery -Darguments="..." passes arguments to the forked maven process, but it is important to realise that there are two different switches being used here. The

maven 3: Accessing version of “root” corporate POM

╄→гoц情女王★ 提交于 2019-11-27 15:19:18
Using Maven 3.0.4. I am tasked with providing a corporate parent POM for our organization. My team will provide support for questions or issues developers have when using this POM. Often they will attach a build log to a support ticket. So, I want my corporate POM to echo the version of the corporate parent to the console with any build. I'm using the antrun plugin for this. <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>echo-build-environment</id> <phase>validate</phase> <goals><goal>run</goal></goals> <configuration>

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved

时光怂恿深爱的人放手 提交于 2019-11-27 13:35:57
I have install maven in my machine. I have properly set the class-path and maven home folder. Every time I execute mvn clean install , it gives me exception. I have also tried to delete the .m2 folder but the same result. mvn -version output Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19:57:37+08:00) Maven home: C:\maven-3 Java version: 1.7.0_45, vendor: Oracle Corporation Java home: D:\jdk170_45\jre Default locale: en_US, platform encoding: MS950 OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" log for mvn -X clean install Apache Maven 3.3.3

Maven - Error Releasing Code to GitHub (Hangs After Push)

十年热恋 提交于 2019-11-27 11:43:16
I'm attempting to run the mvn release:prepare goal and it's hanging after the push. Any idea what I could be doing wrong? [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 8 seconds [INFO] [INFO] Finished at: Tue Jul 13 23:54:59 PDT 2010 [INFO] [INFO] Final Memory: 55M/294M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Checking in modified POMs... [INFO] Executing: cmd

Maven release plugin fails : source artifacts getting deployed twice

时光总嘲笑我的痴心妄想 提交于 2019-11-27 10:55:16
We are using the maven release plugin on hudson and trying to automate the release process. The release:prepare works fine. When we try to do the release:perform , it fails because it tries to upload a source artifact twice to the repository. Things that I tried, removing the profile which does include the maven source plugin from the super pom ( did not work) specifying the goals on hudson for release as -P!attach-source release:prepare release:perform. Which I thought will exclude the source plugin from getting executed. (did not work). tried specifying the plugin phase to some non existent

How to deploy SNAPSHOT with sources and JavaDoc?

此生再无相见时 提交于 2019-11-27 09:20:33
问题 I want to deploy sources and javadocs with my snapshots. This means that I want to automize the following command: mvn clean source:jar javadoc:jar deploy Just to execute: mvn clean deploy I don't want to have javadoc/sources generation executed during the install phase (i.e. local builds). I know that source/javadoc plugins can be synchronized with the execution of the release plugin but I can't figure out how to wire it to the snapshots releases. 回答1: <build> <plugins> <plugin> <artifactId