Mvn build notes

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1086032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-03-27 20:37:41 +00:00
parent 70379d17b3
commit 1e005639e2
1 changed files with 27 additions and 4 deletions

View File

@ -10,11 +10,34 @@
<title>Building HBase</title> <title>Building HBase</title>
<section xml:id="mvn_repo"> <section xml:id="mvn_repo">
<title>Adding an HBase release to Apache's Maven Repository</title> <title>Adding an HBase release to Apache's Maven Repository</title>
<para>Follow the instructions at <link xlink:href="http://www.apache.org/dev/publishing-maven-artifacts.html">Publishing Maven Artifacts</link>. <para>Follow the instructions at
<link xlink:href="http://www.apache.org/dev/publishing-maven-artifacts.html">Publishing Maven Artifacts</link>.
The 'trick' to making it all work is answering the questions put to you by the mvn release plugin properly, The 'trick' to making it all work is answering the questions put to you by the mvn release plugin properly,
making sure it is using the actual branch, making sure it is using the actual branch AND before doing the <command>mvn release:perform</command> step,
and finally, before doing the mvn release:perform, VERY IMPORTANT, hand edit the release.properties file that was put under <varname>${HBASE_HOME}</varname>
VERY IMPORTANT, hand edit the release.properties file that was put under HBASE_HOME by the previous step, release:perform. You need to edit it to make it point at right locations in SVN. by the previous step, <command>release:perform</command>. You need to edit it to make it point at
right locations in SVN.
</para>
<para>If you see run into the below, its because you need to edit version in the pom.xml and add
<code>-SNAPSHOT</code> to the version (and commit).
<computeroutput>[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] ------------------------------------------------------------------------
[INFO] Building HBase
[INFO] task-segment: [release:prepare] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [release:prepare {execution: default-cli}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] You don't have a SNAPSHOT project in the reactor projects list.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Sat Mar 26 18:11:07 PDT 2011
[INFO] Final Memory: 35M/423M
[INFO] -----------------------------------------------------------------------</computeroutput>
</para> </para>
</section> </section>