You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/09/02 16:43:50 UTC

svn commit: r810529 - in /maven/plugins/trunk/maven-dependency-plugin/src/it: analyze-dep-mgt/ analyze/ analyze/src/ analyze/src/main/ analyze/src/main/java/ build-classpath/ copy-dependencies/ copy/ go-offline/ purge-local-repository/ resolve-plugins/...

Author: bentmann
Date: Wed Sep  2 14:43:48 2009
New Revision: 810529

URL: http://svn.apache.org/viewvc?rev=810529&view=rev
Log:
o Added some basic ITs

Added:
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/java/
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/java/Main.java   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/validate.bsh   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/
    maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/test.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/validate.bsh   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy/
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/validate.bsh   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy/validate.bsh   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/
    maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/test.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/
    maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/setup.bsh   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/test.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/validate.bsh   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/
    maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/
    maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/test.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/test.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/sources/
    maven/plugins/trunk/maven-dependency-plugin/src/it/sources/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/sources/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/sources/test.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/tree/
    maven/plugins/trunk/maven-dependency-plugin/src/it/tree/expected.txt   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/tree/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/tree/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/tree/test.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/tree/validate.bsh   (with props)

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:analyze-dep-mgt

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,56 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:analyze-dep-mgt
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <version>3.8.2</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0.6</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze-dep-mgt/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = clean ${project.groupId}:${project.artifactId}:${project.version}:analyze

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,46 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:analyze
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0.6</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/java/Main.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/java/Main.java?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/java/Main.java (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/java/Main.java Wed Sep  2 14:43:48 2009
@@ -0,0 +1,3 @@
+public class Main
+{
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/java/Main.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/src/main/java/Main.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/validate.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/validate.bsh?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/validate.bsh (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/validate.bsh Wed Sep  2 14:43:48 2009
@@ -0,0 +1,10 @@
+import java.io.*;
+
+File classFile = new File( basedir, "target/classes/Main.class" );
+
+if ( !classFile.isFile() )
+{
+    throw new Exception( "Build was not forked, class missing " + classFile );
+}
+
+return true;

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/validate.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/analyze/validate.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:build-classpath

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,47 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:build-classpath
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0.6</version>
+    </dependency>
+  </dependencies>
+
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/test.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/test.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/test.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1,4 @@
+mdep.outputFile = target/classpath.txt
+mdep.fileSeparator = /
+mdep.pathSeparator = :
+mdep.prefix = PREFIX
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/validate.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/validate.bsh?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/validate.bsh (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/validate.bsh Wed Sep  2 14:43:48 2009
@@ -0,0 +1,36 @@
+import java.io.*;
+import java.util.*;
+
+import org.codehaus.plexus.util.*;
+
+String classpath = FileUtils.fileRead( new File( basedir, "target/classpath.txt" ) );
+
+classpath = StringUtils.replace( classpath, "PREFIX/", "" );
+
+List actual = Arrays.asList( classpath.split( ":" ) );
+
+List expected = new ArrayList();
+expected.add( "classworlds-1.1-alpha-2.jar" );
+expected.add( "junit-3.8.1.jar" );
+expected.add( "maven-artifact-2.0.6.jar" );
+expected.add( "maven-artifact-manager-2.0.6.jar" );
+expected.add( "maven-model-2.0.6.jar" );
+expected.add( "maven-plugin-registry-2.0.6.jar" );
+expected.add( "maven-profile-2.0.6.jar" );
+expected.add( "maven-project-2.0.6.jar" );
+expected.add( "maven-repository-metadata-2.0.6.jar" );
+expected.add( "maven-settings-2.0.6.jar" );
+expected.add( "wagon-provider-api-1.0-beta-2.jar" );
+expected.add( "plexus-container-default-1.0-alpha-9-stable-1.jar" );
+expected.add( "plexus-utils-1.4.1.jar" );
+
+System.out.println( "Checking classpath... " );
+System.out.println( "Actual  : " + actual );
+System.out.println( "Expected: " + expected );
+
+if ( !actual.equals( expected ) )
+{
+    throw new Exception( "Unexpected classpath" );
+}
+
+return true;

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/validate.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/build-classpath/validate.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = clean process-sources

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,66 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:copy-dependencies
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-model</artifactId>
+      <version>2.0.6</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>test</id>
+            <goals>
+              <goal>copy-dependencies</goal>
+            </goals>
+            <configuration>
+            	<copyPom>true</copyPom>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/validate.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/validate.bsh?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/validate.bsh (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/validate.bsh Wed Sep  2 14:43:48 2009
@@ -0,0 +1,22 @@
+import java.io.*;
+
+File libDir = new File( basedir, "target/dependency" );
+
+String[] expectedFiles = {
+    "maven-model-2.0.6.jar",
+    "maven-model-2.0.6.pom",
+    "plexus-utils-1.4.1.jar",
+    "plexus-utils-1.4.1.pom",
+};
+
+for ( String expectedFile : expectedFiles )
+{
+    File file = new File( libDir, 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-dependency-plugin/src/it/copy-dependencies/validate.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/validate.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/copy/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/copy/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/copy/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/copy/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = clean process-sources

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/copy/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/copy/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/copy/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/copy/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,64 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:copy-dependencies
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>test</id>
+            <goals>
+              <goal>copy</goal>
+            </goals>
+            <configuration>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>org.apache.maven</groupId>
+                  <artifactId>maven-model</artifactId>
+                  <version>2.0.6</version>
+                </artifactItem>
+              </artifactItems>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/copy/validate.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/copy/validate.bsh?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/copy/validate.bsh (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/copy/validate.bsh Wed Sep  2 14:43:48 2009
@@ -0,0 +1,19 @@
+import java.io.*;
+
+File libDir = new File( basedir, "target/dependency" );
+
+String[] expectedFiles = {
+    "maven-model-2.0.6.jar",
+};
+
+for ( String expectedFile : expectedFiles )
+{
+    File file = new File( libDir, 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-dependency-plugin/src/it/copy/validate.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/copy/validate.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:go-offline

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,47 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:go-offline
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0.6</version>
+    </dependency>
+  </dependencies>
+
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/test.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/test.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/test.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+outputFile = target/tree.txt

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/go-offline/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:purge-local-repository

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,47 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:purge-local-repository
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.its.dependency</groupId>
+      <artifactId>purged</artifactId>
+      <version>1.0</version>
+    </dependency>
+  </dependencies>
+
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/setup.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/setup.bsh?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/setup.bsh (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/setup.bsh Wed Sep  2 14:43:48 2009
@@ -0,0 +1,10 @@
+import java.io.*;
+
+File purgedJar = new File( localRepositoryPath, "org/apache/maven/its/dependency/purged/1.0/purged-1.0.jar" );
+
+purgedJar.getParentFile().mkdirs();
+purgedJar.createNewFile();
+
+System.out.println( "Created dummy JAR " + purgedJar );
+
+return true;

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/setup.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/setup.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/test.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/test.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/test.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+reResolve = false

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/validate.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/validate.bsh?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/validate.bsh (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/validate.bsh Wed Sep  2 14:43:48 2009
@@ -0,0 +1,12 @@
+import java.io.*;
+
+File purgedJar = new File( localRepositoryPath, "org/apache/maven/its/dependency/purged/1.0/purged-1.0.jar" );
+
+System.out.println( "Checking for absence of dummy JAR " + purgedJar );
+
+if ( purgedJar.exists() )
+{
+    throw new Exception( "JAR was not purged: " + purgedJar );
+}
+
+return true;

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/validate.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/purge-local-repository/validate.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:resolve-plugins

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,39 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:resolve-plugins
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/test.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/test.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/test.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+outputFile = target/resolved.txt

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve-plugins/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:resolve

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,47 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:resolve
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0.6</version>
+    </dependency>
+  </dependencies>
+
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/test.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/test.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/test.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+outputFile = target/resolved.txt

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/resolve/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/sources/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/sources/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/sources/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/sources/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:sources

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/sources/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/sources/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/sources/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/sources/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/sources/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/sources/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,47 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:sources
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0.6</version>
+    </dependency>
+  </dependencies>
+
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/sources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/sources/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/sources/test.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/sources/test.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/sources/test.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+outputFile = target/resolved.txt

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/sources/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/sources/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/expected.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/tree/expected.txt?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/tree/expected.txt (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/tree/expected.txt Wed Sep  2 14:43:48 2009
@@ -0,0 +1,14 @@
+org.apache.maven.its.dependency:test:jar:1.0-SNAPSHOT
+\- org.apache.maven:maven-project:jar:2.0.6:compile
+   +- org.apache.maven:maven-settings:jar:2.0.6:compile
+   +- org.apache.maven:maven-profile:jar:2.0.6:compile
+   +- org.apache.maven:maven-model:jar:2.0.6:compile
+   +- org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
+   |  +- org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
+   |  \- org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
+   +- org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
+   +- org.codehaus.plexus:plexus-utils:jar:1.4.1:compile
+   +- org.apache.maven:maven-artifact:jar:2.0.6:compile
+   \- org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
+      +- junit:junit:jar:3.8.1:compile
+      \- classworlds:classworlds:jar:1.1-alpha-2:compile

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/expected.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/expected.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/tree/invoker.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/tree/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/tree/invoker.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:tree

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/tree/pom.xml?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/tree/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/tree/pom.xml Wed Sep  2 14:43:48 2009
@@ -0,0 +1,47 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:tree
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0.6</version>
+    </dependency>
+  </dependencies>
+
+</project>

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/tree/test.properties?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/tree/test.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/tree/test.properties Wed Sep  2 14:43:48 2009
@@ -0,0 +1 @@
+outputFile = target/tree.txt

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/validate.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/tree/validate.bsh?rev=810529&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/tree/validate.bsh (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/tree/validate.bsh Wed Sep  2 14:43:48 2009
@@ -0,0 +1,18 @@
+import java.io.*;
+
+import org.codehaus.plexus.util.*;
+
+String actual = FileUtils.fileRead( new File( basedir, "target/tree.txt" ) );
+String expected = FileUtils.fileRead( new File( basedir, "expected.txt" ) );
+
+actual = actual.replaceAll( "[\n\r]+", "\n" );
+expected = expected.replaceAll( "[\n\r]+", "\n" );
+
+System.out.println( "Checking dependency tree..." );
+
+if ( !actual.equals( expected ) )
+{
+    throw new Exception( "Unexpected dependency tree" );
+}
+
+return true;

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/validate.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/tree/validate.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision