You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/11/04 02:31:06 UTC

svn commit: r1405484 - in /incubator/mesos/branches/0.10.0/src/java: MESOS-MAVEN-README mesos.pom.in

Author: benh
Date: Sun Nov  4 01:31:05 2012
New Revision: 1405484

URL: http://svn.apache.org/viewvc?rev=1405484&view=rev
Log:
Remove commented out portions of POM, which I had left in to document
the alternative possibilities for how to build the jar, etc.

Modified:
    incubator/mesos/branches/0.10.0/src/java/MESOS-MAVEN-README
    incubator/mesos/branches/0.10.0/src/java/mesos.pom.in

Modified: incubator/mesos/branches/0.10.0/src/java/MESOS-MAVEN-README
URL: http://svn.apache.org/viewvc/incubator/mesos/branches/0.10.0/src/java/MESOS-MAVEN-README?rev=1405484&r1=1405483&r2=1405484&view=diff
==============================================================================
--- incubator/mesos/branches/0.10.0/src/java/MESOS-MAVEN-README (original)
+++ incubator/mesos/branches/0.10.0/src/java/MESOS-MAVEN-README Sun Nov  4 01:31:05 2012
@@ -6,14 +6,29 @@ Mesos committers can deploy the Mesos ja
 (repository.apache.org) using the steps below. Once it is published there,
 it will be copied into Maven Central.
 
+NOTE: Publishing artifacts to Maven as described below requires the Mesos Java
+classes to be built in src/java/classes. The easiest way to do this is to run
+make src/mesos-0.9.0.jar. Maven will actually build a new jar itself (as
+opposed to just including the jar that the make build system builds in src) at
+src/java/target/mesos-0.9.0-incubating.jar. In addition, Maven will create a
+jar containing the Java source files (src/java/target/mesos-0.9.0-sources.jar)
+and the Javadoc (src/java/target/mesos-0.9.0-javadoc.jar), and all three of
+these files, as well as an .md5 and .sha1 for each of the jars, and finally an
+additional *.asc signature file for each of the above files (all in
+src/java/target).
+
 We don't have to vote on the jars for a release once we have voted on the
 release itself. Use http://www.apache.org/dev/publishing-maven-artifacts.html
-as a guiding document when publishing new jars. Snapshots can also be published
-via repository.apache.org, though we haven't published any of those yet as of
-the time this README was written.
-
-To create and publish to a new Staging Repository in Nexus running at
-repository.apache.org:
+as a guiding document when publishing new jars, though notice that this
+document is targeted at projects that use Maven as their primary build system
+and thus have voting included in their Maven relese flow.
+
+Snapshots can also be published via repository.apache.org, though we haven't
+published any of those yet as of the time this README was written.
+
+The first step to releasing new version of the Mesos jar is to create and
+publish to a new Staging Repository in Nexus running at repository.apache.org.
+Instructions to do so:
 
 1) Make sure you have necessary credentials with Apache Nexus repository for
    the Mesos group (org.apache.mesos).
@@ -28,7 +43,7 @@ repository.apache.org:
    also ask you to enter your password for gpg signing 3-4 times (once per
    file that is getting signed).
 
-If you get a 401 error when you try to deploy the artifacts, read through 
+If you get a 401 error when you try to deploy the artifacts, read through
 http://www.sonatype.com/people/2010/11/what-to-do-when-nexus-returns-401/
 
 The above steps will create a temporary staging repository, the purpose of

Modified: incubator/mesos/branches/0.10.0/src/java/mesos.pom.in
URL: http://svn.apache.org/viewvc/incubator/mesos/branches/0.10.0/src/java/mesos.pom.in?rev=1405484&r1=1405483&r2=1405484&view=diff
==============================================================================
--- incubator/mesos/branches/0.10.0/src/java/mesos.pom.in (original)
+++ incubator/mesos/branches/0.10.0/src/java/mesos.pom.in Sun Nov  4 01:31:05 2012
@@ -61,18 +61,8 @@
   <build>
     <sourceDirectory>${basedir}/src</sourceDirectory>
     <resources>
-<!--
-      <resource>
-        <directory>${basedir}/..</directory>
-        <targetPath>${project.build.directory}</targetPath>
-        <includes>
-          <include>mesos-0.9.0.jar</include>
-        </includes>
-      </resource>
--->
       <resource>
         <directory>${basedir}/classes</directory>
-        <!--<targetPath>${project.build.directory}</targetPath>-->
       </resource>
     </resources>
     <plugins>
@@ -94,55 +84,14 @@
           <skip>true</skip>
         </configuration>
       </plugin>
-      <!-- Build the jar for from the classes that the make build system
+      <!-- Build the jar from the classes that the Make build system
            compiled for us from source -->
       <plugin>
         <artifactId>maven-jar-plugin</artifactId>
         <configuration>
           <finalName>${project.name}-${project.version}</finalName>
         </configuration>
-        <!-- Uncomment to skip packaging a jar ourselves,
-             and instead use the one built by make -->
-        <!-- Uses trickery found at http://stackoverflow.com/a/4853816 -->
-<!--
-        <executions>
-          <execution>
-            <id>default-jar</id>
-            <phase>never</phase>
-            <configuration>
-              <finalName>unwanted</finalName>
-              <classifier>unwanted</classifier>
-            </configuration>
-          </execution>
-        </executions>
--->
-      </plugin>
-      <!-- Attach the prebuilt mesos jar to this build -->
-<!--
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>build-helper-maven-plugin</artifactId>
-        <version>1.7</version>
-        <executions>
-          <execution>
-            <id>attach-artifacts</id>
-            <phase>package</phase>
-            <goals>
-              <goal>attach-artifact</goal>
-            </goals>
-            <configuration>
-              <artifacts>
-                <artifact>
-                  <file>${basedir}/../mesos-0.9.0.jar</file>
-                  <type>jar</type>
-                  <classifier>${project.classifier}</classifier>
-                </artifact>
-              </artifacts>
-            </configuration>
-          </execution>
-        </executions>
       </plugin>
--->
       <!-- Build and attach javadoc -->
       <plugin>
         <artifactId>maven-javadoc-plugin</artifactId>