maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r810642 - in /maven/plugins/trunk/maven-gpg-plugin: ./ src/it/ src/it/.gnupg/ src/it/sign-release/
Date Wed, 02 Sep 2009 18:15:03 GMT
Author: bentmann
Date: Wed Sep  2 18:15:03 2009
New Revision: 810642

URL: http://svn.apache.org/viewvc?rev=810642&view=rev
Log:
o Added basic IT

Added:
    maven/plugins/trunk/maven-gpg-plugin/src/it/
    maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/
    maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/README.txt   (with props)
    maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/pubring.bak   (with props)
    maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/pubring.gpg   (with props)
    maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/random_seed   (with props)
    maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/secring.gpg   (with props)
    maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/trustdb.gpg   (with props)
    maven/plugins/trunk/maven-gpg-plugin/src/it/settings.xml   (with props)
    maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/
    maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/pom.xml   (with props)
    maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/verify.bsh   (with props)
Modified:
    maven/plugins/trunk/maven-gpg-plugin/pom.xml

Modified: maven/plugins/trunk/maven-gpg-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/pom.xml?rev=810642&r1=810641&r2=810642&view=diff
==============================================================================
--- maven/plugins/trunk/maven-gpg-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-gpg-plugin/pom.xml Wed Sep  2 18:15:03 2009
@@ -106,20 +106,32 @@
       <build>
         <plugins>
           <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-antrun-plugin</artifactId>
+            <artifactId>maven-invoker-plugin</artifactId>
+            <version>1.3</version>
+            <configuration>
+              <debug>true</debug>
+              <projectsDirectory>src/it</projectsDirectory>
+              <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+              <pomIncludes>
+                <pomInclude>*/pom.xml</pomInclude>
+              </pomIncludes>
+              <preBuildHookScript>setup</preBuildHookScript>
+              <postBuildHookScript>verify</postBuildHookScript>
+              <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+              <settingsFile>src/it/settings.xml</settingsFile>
+              <goals>
+                <goal>clean</goal>
+                <goal>install</goal>
+              </goals>
+              <filterProperties>
+                <gpgHomeDir>${basedir}/src/it/.gnupg</gpgHomeDir>
+              </filterProperties>
+            </configuration>
             <executions>
               <execution>
                 <id>integration-test</id>
-                <phase>integration-test</phase>
-                <configuration>
-                  <tasks>
-                    <echo/><echo/><echo/><echo/><echo/>
-                    <echo level="warning">NO INTEGRATION TESTS DEFINED</echo>
-                    <echo/><echo/><echo/><echo/><echo/>
-                  </tasks>
-                </configuration>
                 <goals>
+                  <goal>install</goal>
                   <goal>run</goal>
                 </goals>
               </execution>

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/README.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/README.txt?rev=810642&view=auto
==============================================================================
--- maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/README.txt (added)
+++ maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/README.txt Wed Sep  2 18:15:03 2009
@@ -0,0 +1,4 @@
+This provides a key with uid
+  Maven GPG Plugin (TESTING KEY) <dev@maven.apache.org>
+and the passphrase
+  TEST

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/README.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/pubring.bak
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/pubring.bak?rev=810642&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/pubring.bak
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/pubring.gpg
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/pubring.gpg?rev=810642&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/pubring.gpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/random_seed
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/random_seed?rev=810642&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/random_seed
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/secring.gpg
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/secring.gpg?rev=810642&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/secring.gpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/trustdb.gpg
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/trustdb.gpg?rev=810642&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/.gnupg/trustdb.gpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/settings.xml?rev=810642&view=auto
==============================================================================
--- maven/plugins/trunk/maven-gpg-plugin/src/it/settings.xml (added)
+++ maven/plugins/trunk/maven-gpg-plugin/src/it/settings.xml Wed Sep  2 18:15:03 2009
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<settings>
+  <profiles>
+    <profile>
+      <id>it-repo</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <repositories>
+        <repository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+</settings>

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/settings.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/settings.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/pom.xml?rev=810642&view=auto
==============================================================================
--- maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/pom.xml (added)
+++ maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/pom.xml Wed Sep  2 18:15:03 2009
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.gpg.sr</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <description>
+    Tests the installation of a simple release JAR with an attached artifact and its signatures.
+  </description>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-gpg-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <homedir>@gpgHomeDir@</homedir>
+          <passphrase>TEST</passphrase>
+        </configuration>
+        <executions>
+          <execution>
+            <id>sign-artifacts</id>
+            <goals>
+              <goal>sign</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-install-plugin</artifactId>
+        <version>2.2</version>
+        <configuration>
+          <updateReleaseInfo>true</updateReleaseInfo>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>2.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <version>2.0.4</version>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.3.1</version>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/verify.bsh?rev=810642&view=auto
==============================================================================
--- maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/verify.bsh (added)
+++ maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/verify.bsh Wed Sep  2 18:15:03
2009
@@ -0,0 +1,25 @@
+import java.io.*;
+
+File artifactDir = new File( localRepositoryPath, "org/apache/maven/its/gpg/sr/test/1.0"
);
+
+String[] expectedFiles = {
+    "test-1.0.pom",
+    "test-1.0.pom.asc",
+    "test-1.0.jar",
+    "test-1.0.jar.asc",
+    "test-1.0-sources.jar.asc",
+};
+
+for ( String expectedFile : expectedFiles )
+{
+    File file = new File( artifactDir, expectedFile );
+
+    System.out.println( "Checking for existence of " + file );
+
+    if ( !file.isFile() )
+    {
+        throw new Exception( "Missing file " + file );
+    }
+}
+
+return true;

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/verify.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-gpg-plugin/src/it/sign-release/verify.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



Mime
View raw message