maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r640687 - in /maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype: ./ src/ src/main/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/META-INF/maven/ src/main/resources/archetype-resources/ src/main/resou...
Date Tue, 25 Mar 2008 03:49:41 GMT
Author: jdcasey
Date: Mon Mar 24 20:49:39 2008
New Revision: 640687

URL: http://svn.apache.org/viewvc?rev=640687&view=rev
Log:
Adding the beginnings of an archetype that we can use to generate new integration tests for
the assembly plugin.

Added:
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/pom.xml   (with props)
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
  (with props)
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype.xml
  (with props)
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/goals.txt
  (with props)
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/pom.xml
  (with props)
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/java/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.java
  (with props)
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xml
  (with props)
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.java
  (with props)
    maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/verify.bsh

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/pom.xml?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/pom.xml (added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/pom.xml Mon Mar 24
20:49:39 2008
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.archetypes</groupId>
+  <artifactId>assembly-plugin-it-archetype</artifactId>
+  <packaging>maven-archetype</packaging>
+  <name>Maven Assembly Plugin Integration Test Archetype</name>
+  <version>1.0-SNAPSHOT</version>
+  <build>
+    <extensions>
+      <extension>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>archetype-packaging</artifactId>
+        <version>2.0-alpha-2</version>
+      </extension>
+    </extensions>
+    <plugins>
+      <plugin>
+        <artifactId>maven-archetype-plugin</artifactId>
+        <version>2.0-alpha-2</version>
+        <extensions>true</extensions>
+      </plugin>
+    </plugins>
+  </build>
+  <distributionManagement>
+    <repository>
+      <id>integration.test.repo</id>
+      <url>${test.remote.repo.url}</url>
+    </repository>
+  </distributionManagement>
+</project>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
(added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
Mon Mar 24 20:49:39 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-descriptor name="assembly-integration-test">
+  <fileSets>
+    <fileSet filtered="true" packaged="true" encoding="UTF-8">
+      <directory>src/main/java</directory>
+      <includes>
+        <include>**/*.java</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" packaged="true" encoding="UTF-8">
+      <directory>src/test/java</directory>
+      <includes>
+        <include>**/*.java</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/assembly</directory>
+      <includes>
+        <include>**/*.xml</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory></directory>
+      <includes>
+        <include>goals.txt</include>
+      </includes>
+    </fileSet>
+    <fileSet encoding="UTF-8">
+      <directory></directory>
+      <includes>
+        <include>verify.bsh</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</archetype-descriptor>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype.xml?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype.xml
(added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype.xml
Mon Mar 24 20:49:39 2008
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype>
+  <id>assembly-integration-test</id>
+  <sources>
+    <source>src/main/java/App.java</source>
+  </sources>
+  <testSources>
+    <source>src/java/AppTest.java</source>
+  </testSources>
+  <resources>
+    <resource>goals.txt</resource>
+    <resource>src/assemble/bin.xml</resource>
+    <resource>verify.bsh</resource>
+  </resources>
+</archetype>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/goals.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/goals.txt?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/goals.txt
(added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/goals.txt
Mon Mar 24 20:49:39 2008
@@ -0,0 +1,3 @@
+# Specify the goals to be run here, one per line. Lines beginning with a hash '#' will be
ignored.
+clean
+package

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/goals.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/goals.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/pom.xml?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/pom.xml
(added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/pom.xml
Mon Mar 24 20:49:39 2008
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.maven.plugin.assembly.test</groupId>
+    <artifactId>it-project-parent</artifactId>
+    <version>1</version>
+  </parent>
+  
+  <artifactId>${artifactId}</artifactId>
+  <packaging>jar</packaging>
+  
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>testing</version>
+        <configuration>
+          <descriptors>
+            <descriptor>src/main/assembly/bin.xml</descriptor>
+          </descriptors>
+        </configuration>
+        <executions>
+          <execution>
+            <id>single-assembly</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.java?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.java
(added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.java
Mon Mar 24 20:49:39 2008
@@ -0,0 +1,38 @@
+package ${package};
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit ${package} for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the ${package} case
+     *
+     * @param ${package}Name name of the ${package} case
+     */
+    public AppTest( String ${package}Name )
+    {
+        super( ${package}Name );
+    }
+
+    /**
+     * @return the suite of ${package}s being ${package}ed
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void ${package}App()
+    {
+        assertTrue( true );
+    }
+}

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xml?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xml
(added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xml
Mon Mar 24 20:49:39 2008
@@ -0,0 +1,15 @@
+<assembly>
+  <id>bin</id>
+  <formats>
+    <format>dir</format>
+  </formats>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <dependencySets>
+    <dependencySet>
+      <scope>${test}</scope>
+      <outputDirectory>lib</outputDirectory>
+      <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+      <unpack>false</unpack>
+    </dependencySet>
+  </dependencySets>
+</assembly>

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.java?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.java
(added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.java
Mon Mar 24 20:49:39 2008
@@ -0,0 +1,13 @@
+package ${package};
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/verify.bsh?rev=640687&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/verify.bsh
(added)
+++ maven/plugins/trunk/maven-assembly-plugin/integration-test-archetype/src/main/resources/archetype-resources/verify.bsh
Mon Mar 24 20:49:39 2008
@@ -0,0 +1,7 @@
+import java.io.File;
+
+/*
+ This is where you verify the results of the assembly build. You may need to check the existence
of a file,
+ or even peek within a jar file to determine whether the assembly did the right thing.
+ */
+return new File( basedir, "target/${artifactId}-${version}-bin.dir/lib/junit.jar" ).exists();



Mime
View raw message