]> source.dussan.org Git - javassist.git/commitdiff
added final changes needed to allow installation to Sonatype repo
authoradinn <adinn@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 20 Jul 2010 16:43:48 +0000 (16:43 +0000)
committeradinn <adinn@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 20 Jul 2010 16:43:48 +0000 (16:43 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@560 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

pom.xml

diff --git a/pom.xml b/pom.xml
index 7071888768a37bccac53a4c23c134b921ea3761b..3ebfde0505019ce584b7090ec07618d4f9ba39de 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         </executions>
         <inherited>true</inherited>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>2.7</version>
+       <configuration>
+         <attach>true</attach>
+       </configuration>
+      </plugin>
     </plugins>
   </build>
-  <!--profiles>
+  <profiles>
+    <!-- profile for releasing to sonatype repo
+        exercise with mvn -PcentralRelease
+      -->
+    <profile>
+      <id>centralRelease</id>
+      <!-- obviously we need to use the Sonatype staging repo for upload -->
+      <repositories>
+       <repository>
+         <id>sonatype-releases-repository</id>
+         <name>Sonatype Releases Repository</name>
+         <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
+       </repository>
+      </repositories>
+      <!-- we need to be able to sign the jars we install -->
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-gpg-plugin</artifactId>
+            <configuration>
+              <passphrase>${gpg.passphrase}</passphrase>
+              <useAgent>${gpg.useAgent}</useAgent>
+            </configuration>
+            <executions>
+              <execution>
+                <id>sign-artifacts</id>
+                <phase>verify</phase>
+                <goals>
+                  <goal>sign</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <!-- profiles to add tools jar containing com.sun.jdi code
+        needed by sample code
+        -->
     <profile>
       <id>jdk14</id>
       <activation>
         </dependency>
       </dependencies>
     </profile>
-  </profiles-->
+  </profiles>
   <dependencies>
     <dependency>
       <groupId>junit</groupId>