maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r709679 - in /maven/core-integration-testing/trunk/core-it-suite/src/test: java/org/apache/maven/it/MavenIT0061Test.java resources/it0061/artifact.jar resources/it0061/pom.xml resources/it0061/src/
Date Sat, 01 Nov 2008 11:44:01 GMT
Author: bentmann
Date: Sat Nov  1 04:44:00 2008
New Revision: 709679

URL: http://svn.apache.org/viewvc?rev=709679&view=rev
Log:
o Decoupled it0061 from production plugins

Added:
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/artifact.jar
  (with props)
Removed:
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/src/
Modified:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0061Test.java
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/pom.xml

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0061Test.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0061Test.java?rev=709679&r1=709678&r2=709679&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0061Test.java
(original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0061Test.java
Sat Nov  1 04:44:00 2008
@@ -37,13 +37,15 @@
         throws Exception
     {
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0061" );
+
         Verifier verifier = new Verifier( testDir.getAbsolutePath() );
-        verifier.executeGoal( "deploy" );
+        verifier.setAutoclean( false );
+        verifier.deleteDirectory( "target" );
+        verifier.executeGoal( "validate" );
         verifier.assertFilePresent( "target/test-repo/org.apache.maven.its.it0061/jars/maven-it-it0061-1.0.jar"
);
         verifier.assertFilePresent( "target/test-repo/org.apache.maven.its.it0061/poms/maven-it-it0061-1.0.pom"
);
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();
-
     }
-}
 
+}

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/artifact.jar
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/artifact.jar?rev=709679&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/artifact.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/pom.xml?rev=709679&r1=709678&r2=709679&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/pom.xml (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0061/pom.xml Sat
Nov  1 04:44:00 2008
@@ -1,13 +1,38 @@
+<?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>
   <modelVersion>4.0.0</modelVersion>
-  <name>Maven Integration Test :: it0061</name> 
+
   <groupId>org.apache.maven.its.it0061</groupId>
   <artifactId>maven-it-it0061</artifactId>
-  <description>Verify that deployment of artifacts to a legacy-layout repository
-        results in a groupId directory of 'the.full.group.id' instead of
-        'the/full/group/id'.</description>
-  <packaging>jar</packaging>
   <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: it0061</name> 
+  <description>
+    Verify that deployment of artifacts to a legacy-layout repository
+    results in a groupId directory of 'the.full.group.id' instead of
+    'the/full/group/id'.
+  </description>
 
   <distributionManagement>
     <repository>
@@ -17,13 +42,27 @@
     </repository>
   </distributionManagement>
 
-  <dependencies>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <type>jar</type>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.its.plugins</groupId>
+        <artifactId>maven-it-plugin-artifact</artifactId>
+        <version>2.1-SNAPSHOT</version>
+        <configuration>
+          <mainFile>artifact.jar</mainFile>
+        </configuration>
+        <executions>
+          <execution>
+            <id>deploy</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>set</goal>
+              <goal>attach-pom</goal>
+              <goal>deploy</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>



Mime
View raw message