You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2008/03/03 21:36:54 UTC

svn commit: r633266 - in /maven/plugins/trunk/maven-dependency-plugin: pom.xml src/it/ src/it/filterunpack/ src/it/filterunpack/build.log src/it/filterunpack/goals.txt src/it/filterunpack/pom.xml src/it/filterunpack/validate.groovy

Author: brianf
Date: Mon Mar  3 12:36:37 2008
New Revision: 633266

URL: http://svn.apache.org/viewvc?rev=633266&view=rev
Log:
added shitty plugin for a new IT to check the filtering during unpack

Added:
    maven/plugins/trunk/maven-dependency-plugin/src/it/
    maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/build.log
    maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/goals.txt
    maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/pom.xml
    maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/validate.groovy
Modified:
    maven/plugins/trunk/maven-dependency-plugin/pom.xml

Modified: maven/plugins/trunk/maven-dependency-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/pom.xml?rev=633266&r1=633265&r2=633266&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-dependency-plugin/pom.xml Mon Mar  3 12:36:37 2008
@@ -80,6 +80,23 @@
   <build>
     <plugins>
       <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>shitty-maven-plugin</artifactId>
+        <version>1.0-alpha-2-SNAPSHOT</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>clean</goal>
+              <goal>install</goal>
+              <goal>test</goal>
+            </goals>
+            <configuration>
+              <parallel>false</parallel>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <artifactId>maven-enforcer-plugin</artifactId>
         <executions>
           <execution>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Mar  3 12:36:37 2008
@@ -0,0 +1 @@
+target

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/build.log
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/build.log?rev=633266&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/build.log (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/build.log Mon Mar  3 12:36:37 2008
@@ -0,0 +1,42 @@
+OUT: -------------------------------------------------------------------------------
+OUT: TEST BUILD: D:\svn\Maven\maven-plugins\maven-dependency-plugin\src\it\filterunpack\pom.xml
+OUT: Goals: package
+OUT: -------------------------------------------------------------------------------
+OUT: + Error stacktraces are turned on.
+OUT: [INFO] Scanning for projects...
+OUT: [INFO] ------------------------------------------------------------------------
+OUT: [INFO] Building Unnamed - dependency:dependency:jar:testing
+OUT: [INFO]    task-segment: [package]
+OUT: [INFO] ------------------------------------------------------------------------
+OUT: [INFO] [dependency:unpack-dependencies {execution: default}]
+OUT: [INFO] Unpacking d:\mavenRepo\junit\junit\3.8.1\junit-3.8.1.jarto
+OUT:  D:\svn\Maven\maven-plugins\maven-dependency-plugin\src\it\filterunpack\target\dependency
+OUT: with Includes **/MANIFEST.MF and excludes:null
+OUT: [INFO] [resources:resources]
+OUT: [INFO] Using default encoding to copy filtered resources.
+OUT: [INFO] Resource directory does not exist: D:\svn\Maven\maven-plugins\maven-dependency-plugin\src\it\filterunpack\src\main\resources
+OUT: [INFO] [compiler:compile]
+OUT: [INFO] No sources to compile
+OUT: [INFO] [resources:testResources]
+OUT: [INFO] Using default encoding to copy filtered resources.
+OUT: [INFO] Resource directory does not exist: D:\svn\Maven\maven-plugins\maven-dependency-plugin\src\it\filterunpack\src\test\resources
+OUT: [INFO] [compiler:testCompile]
+OUT: [INFO] No sources to compile
+OUT: [INFO] [surefire:test]
+OUT: [INFO] No tests to run.
+OUT: [INFO] [jar:jar]
+OUT: [WARNING] JAR will be empty - no content was marked for inclusion!
+OUT: [INFO] Building jar: D:\svn\Maven\maven-plugins\maven-dependency-plugin\src\it\filterunpack\target\dependency-testing.jar
+OUT: [INFO] ------------------------------------------------------------------------
+OUT: [INFO] BUILD SUCCESSFUL
+OUT: [INFO] ------------------------------------------------------------------------
+OUT: [INFO] Total time: 4 seconds
+OUT: [INFO] Finished at: Mon Mar 03 15:35:04 EST 2008
+OUT: [INFO] Final Memory: 11M/23M
+OUT: [INFO] ------------------------------------------------------------------------
+OUT: -------------------------------------------------------------------------------
+OUT: -------------------------------------------------------------------------------
+OUT: SCRIPT (validate): D:\svn\Maven\maven-plugins\maven-dependency-plugin\src\it\filterunpack\validate.groovy
+OUT: -------------------------------------------------------------------------------
+OUT: SUCCESS
+OUT: -------------------------------------------------------------------------------

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/goals.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/goals.txt?rev=633266&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/goals.txt (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/goals.txt Mon Mar  3 12:36:37 2008
@@ -0,0 +1 @@
+package
\ No newline at end of file

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/pom.xml?rev=633266&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/pom.xml Mon Mar  3 12:36:37 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>dependency</groupId>
+    <artifactId>dependency</artifactId>
+    <packaging>jar</packaging>
+    <version>testing</version>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>testing</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>unpack-dependencies</goal>
+                        </goals>
+                        <configuration>
+                          <includes>**/MANIFEST.MF</includes>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
\ No newline at end of file

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/validate.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/validate.groovy?rev=633266&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/validate.groovy (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/filterunpack/validate.groovy Mon Mar  3 12:36:37 2008
@@ -0,0 +1,21 @@
+expected = ['/META-INF/MANIFEST.MF']
+
+for (item in expected)
+{
+    def file = new File(basedir, 'target/dependency' + item)
+    if (!file.exists())
+    {
+       throw new RuntimeException("Missing "+file.name);
+    }
+}
+
+notExpected = ['/stylesheet.css']
+
+for (item in notExpected)
+{
+    def file = new File(basedir, 'target/dependency' + item)    
+    if (file.exists())
+    {
+       throw new RuntimeException("This file shouldn't be here: "+file.name);
+    }
+}