You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/05/16 13:22:16 UTC

svn commit: r944802 - /jakarta/bsf/branches/bsf3.x/pom.xml

Author: sebb
Date: Sun May 16 11:22:15 2010
New Revision: 944802

URL: http://svn.apache.org/viewvc?rev=944802&view=rev
Log:
Add our own release profile, because apache-release generates additional unwanted output
Add test-deploy profile for convenience
Rhino is a test dependency

Modified:
    jakarta/bsf/branches/bsf3.x/pom.xml

Modified: jakarta/bsf/branches/bsf3.x/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/bsf/branches/bsf3.x/pom.xml?rev=944802&r1=944801&r2=944802&view=diff
==============================================================================
--- jakarta/bsf/branches/bsf3.x/pom.xml (original)
+++ jakarta/bsf/branches/bsf3.x/pom.xml Sun May 16 11:22:15 2010
@@ -278,7 +278,7 @@
                      <groupId>rhino</groupId>
                      <artifactId>js</artifactId>
                      <version>1.6R5</version>
-                     <scope>runtime</scope>
+                     <scope>test</scope>
                  </dependency>
             </dependencies>
         </profile>
@@ -331,9 +331,85 @@
                      <groupId>rhino</groupId>
                      <artifactId>js</artifactId>
                      <version>1.6R5</version>
-                     <scope>runtime</scope>
+                     <scope>test</scope>
                  </dependency>
             </dependencies>
       </profile>
+    <!-- The apache-release profile is not suitable (it creates extra artifacts) so provide our own -->
+    <profile>
+      <id>release</id>
+      <build>
+        <plugins>
+          <!-- We want to sign the artifact, the POM, and all attached artifacts -->
+          <plugin>
+            <artifactId>maven-gpg-plugin</artifactId>
+            <configuration>
+              <passphrase>${gpg.passphrase}</passphrase>
+            </configuration>
+            <executions>
+              <execution>
+                <id>sign-artifacts</id>
+                <phase>verify</phase>
+                <goals>
+                  <goal>sign</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <artifactId>maven-install-plugin</artifactId>
+            <configuration>
+              <createChecksum>true</createChecksum>
+            </configuration>
+          </plugin>
+          <plugin>
+            <artifactId>maven-source-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>create-source-jar</id>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+                <phase>package</phase>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <artifactId>maven-release-plugin</artifactId>
+            <configuration>
+              <!-- Pass these arguments to the deploy plugin. -->
+              <arguments>-Prelease</arguments>
+            </configuration>
+          </plugin>
+          <plugin>
+            <artifactId>maven-javadoc-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>create-javadoc-jar</id>
+                <goals>
+                  <goal>javadoc</goal>
+                  <goal>jar</goal>
+                </goals>
+                <phase>package</phase>
+              </execution>
+            </executions>
+            <configuration>
+              <source>${maven.compile.source}</source>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <!-- 
+     | Profile to allow testing of deploy phase
+     | e.g.
+     | mvn deploy -Ptest-deploy -Prelease -Dgpg.skip
+     -->
+    <profile>
+      <id>test-deploy</id>
+      <properties>
+        <altDeploymentRepository>id::default::file:target/deploy</altDeploymentRepository>
+      </properties>
+    </profile>
  </profiles>
 </project>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org