Repository: mahout Updated Branches: refs/heads/branch-0.14.0 020a18752 -> 5ca36a458
MAHOUT-2037 Release Plugin Project: http://git-wip-us.apache.org/repos/asf/mahout/repo Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/3ee84f9c Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/3ee84f9c Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/3ee84f9c Branch: refs/heads/branch-0.14.0 Commit: 3ee84f9c1dec2c559050e371362aeaf8f02ebbba Parents: 020a187 Author: Trevor a.k.a @rawkintrevo <[email protected]> Authored: Tue Jun 5 08:25:57 2018 -0500 Committer: Trevor a.k.a @rawkintrevo <[email protected]> Committed: Tue Jun 5 08:25:57 2018 -0500 ---------------------------------------------------------------------- pom.xml | 23 +++++++++++++++++++++++ website/developers/how-to-release.md | 1 + 2 files changed, 24 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mahout/blob/3ee84f9c/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index e9ab797..82f906d 100644 --- a/pom.xml +++ b/pom.xml @@ -672,6 +672,29 @@ </pluginManagement> </build> + + <profiles> + <profile> + <id>apache-release</id> + <properties> + <skipTests>false</skipTests> + </properties> + <build> + <plugins> + <!--maven source--> + <!--maven jar--> + <!--maven assembly--> + <plugin> + <artifactId>maven-release-plugin</artifactId> + <configuration> + <releaseProfiles>apache-release</releaseProfiles> + <preparationGoals>clean install</preparationGoals> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> <!--<defaultGoal>install</defaultGoal>--> <!--<pluginManagement>--> <!--<plugins>--> http://git-wip-us.apache.org/repos/asf/mahout/blob/3ee84f9c/website/developers/how-to-release.md ---------------------------------------------------------------------- diff --git a/website/developers/how-to-release.md b/website/developers/how-to-release.md index 685fe72..5aedac9 100644 --- a/website/developers/how-to-release.md +++ b/website/developers/how-to-release.md @@ -90,6 +90,7 @@ warnings) * *Clarify which env var is better or choose one* Set environment variable `MAVEN_OPTS` to `-Xmx1024m` to ensure the tests can run: `export JAVA_OPTIONS="-Xmx1g"` * If you are outside the US, then svn.apache.org may not resolve to the main US-based Subversion servers. (Compare the IP address you get for svn.apache.org with svn.us.apache.org to see if they are different.) This will cause problems during the release since it will create a revision and then immediately access, but, there is a replication lag of perhaps a minute to the non-US servers. To temporarily force using the US-based server, edit your equivalent of /etc/hosts and map the IP address of svn.us.apache.org to svn.apache.org. * Create the release candidate: `mvn -Pmahout-release,apache-release release:prepare release:perform` +`mvn -Papache-release release:perform` * If you have problems authenticating to svn.apache.org, try adding to the command line `-Dusername=USERNAME -Dpassword=PASSWORD` * If there is an issue first try doing: `mvn -Dmahout-release,apache-release release:rollback` followed by `mvn -Dmahout-release,apache-release,hadoop2 release:clean` as this will likely save you time and do the right thing. You may also have to rollback the version numbers in the POM files. If you want to skip test cases while rebuilding, use `mvn -DpreparationGoals="clean compile" release:prepare release:perform` * Review the artifacts, etc. on the Apache Repository (using Sonatype's Nexus application) site: https://repository.apache.org/. You will need to login using your ASF SVN credentials and then browse to the staging area.
