Author: jmcconnell
Date: Fri Oct 3 10:20:30 2008
New Revision: 701450
URL: http://svn.apache.org/viewvc?rev=701450&view=rev
Log:
adding more test cases and the site
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/PomPluginTest.java
(contents, props changed)
- copied, changed from r700940,
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/AlterByXPathMojoTest.java
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/test-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/test-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/module/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/module/pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/test-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/test-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/test-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/test-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/test-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/test-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/plugin-pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/test-pom.xml
Removed:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/AlterByXPathMojoTest.java
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/stubs/
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-by-xpath-test/alter-by-xpath-pom.xml
Modified:
maven/sandbox/trunk/plugins/maven-pom-plugin/pom.xml
maven/sandbox/trunk/plugins/maven-pom-plugin/src/main/java/org/apache/maven/plugins/pom/AlterMojo.java
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-by-xpath-test/plugin-pom.xml
Modified: maven/sandbox/trunk/plugins/maven-pom-plugin/pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/pom.xml?rev=701450&r1=701449&r2=701450&view=diff
==============================================================================
--- maven/sandbox/trunk/plugins/maven-pom-plugin/pom.xml (original)
+++ maven/sandbox/trunk/plugins/maven-pom-plugin/pom.xml Fri Oct 3 10:20:30
2008
@@ -1,6 +1,11 @@
<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.plugins</groupId>
+ <artifactId>maven-plugins</artifactId>
+ <version>12</version>
+ </parent>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pom-plugin</artifactId>
<packaging>maven-plugin</packaging>
@@ -23,7 +28,7 @@
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
- <version>1.6.1</version>
+ <version>1.6.1</version>
<exclusions>
<exclusion>
<groupId>xom</groupId>
@@ -75,4 +80,16 @@
<scope>test</scope>
</dependency>
</dependencies>
+ <build>
+
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+
</project>
Modified:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/main/java/org/apache/maven/plugins/pom/AlterMojo.java
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/main/java/org/apache/maven/plugins/pom/AlterMojo.java?rev=701450&r1=701449&r2=701450&view=diff
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/main/java/org/apache/maven/plugins/pom/AlterMojo.java
(original)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/main/java/org/apache/maven/plugins/pom/AlterMojo.java
Fri Oct 3 10:20:30 2008
@@ -29,7 +29,7 @@
* Alter a Mojo by the specified elements
* @author eredmond
*
- * @goal alter
+ * @goal alter-mojo
* @phase process-resources
*/
public class AlterMojo extends AbstractMultipleAlterationMojo
Copied:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/PomPluginTest.java
(from r700940,
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/AlterByXPathMojoTest.java)
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/PomPluginTest.java?p2=maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/PomPluginTest.java&p1=maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/AlterByXPathMojoTest.java&r1=700940&r2=701450&rev=701450&view=diff
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/AlterByXPathMojoTest.java
(original)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/PomPluginTest.java
Fri Oct 3 10:20:30 2008
@@ -36,7 +36,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Jesse McConnell</a>
* @version $Id:$
*/
-public class AlterByXPathMojoTest
+public class PomPluginTest
extends AbstractMojoTestCase
{
/** [EMAIL PROTECTED] */
@@ -58,6 +58,58 @@
*
* @throws Exception
*/
+ public void testAddByXPath()
+ throws Exception
+ {
+ String pluginPom = getBasedir() +
"/src/test/resources/unit/add-by-xpath-test/plugin-pom.xml";
+
+ // safety
+ FileUtils.copyDirectory( new File( getBasedir(),
"src/test/resources/unit/add-by-xpath-test" ),
+ new File( getBasedir(),
"target/test-files/unit/add-by-xpath-test" ), null, "**/.svn,**/.svn/**" );
+
+ AddByXPathMojo mojo = (AddByXPathMojo) lookupMojo( "add-by-xpath",
pluginPom );
+
+ assertNotNull( mojo );
+
+ mojo.execute();
+
+ XMLTool xmlTool = new XMLTool( "project", new File( getBasedir() +
"/target/test-files/unit/add-by-xpath-test/test-pom.xml" ) );
+
+ assertTrue( xmlTool.hasElement("/project/modules/module[.='foo']" ) );
+ }
+
+ /**
+ * Tests a pom alteration by xpath
+ *
+ * @throws Exception
+ */
+ public void testAddDependencies()
+ throws Exception
+ {
+ String pluginPom = getBasedir() +
"/src/test/resources/unit/add-dependencies-test/plugin-pom.xml";
+
+ // safety
+ FileUtils.copyDirectory( new File( getBasedir(),
"src/test/resources/unit/add-dependencies-test" ),
+ new File( getBasedir(),
"target/test-files/unit/add-dependencies-test" ), null, "**/.svn,**/.svn/**" );
+
+ AddDependenciesMojo mojo = (AddDependenciesMojo) lookupMojo(
"add-dependencies", pluginPom );
+
+ assertNotNull( mojo );
+
+ mojo.execute();
+
+ XMLTool xmlTool = new XMLTool( "project", new File( getBasedir() +
"/target/test-files/unit/add-dependencies-test/test-pom.xml" ) );
+
+ assertTrue(
xmlTool.hasElement("/project/dependencies/dependency[artifactId[.='bar']]" ) );
+ assertTrue(
xmlTool.hasElement("/project/dependencies/dependency[artifactId[.='bar-two']]"
) );
+ assertEquals( "1",
xmlTool.getElement("/project/dependencies/dependency[artifactId[.='bar-two']]/version"
).getText() );
+ }
+
+ /**
+ * Tests a pom alteration by xpath
+ *
+ * @throws Exception
+ */
public void testAlterByXPath()
throws Exception
{
@@ -73,8 +125,58 @@
mojo.execute();
- XMLTool xmlTool = new XMLTool( "project", new File( getBasedir() +
"/target/test-files/unit/alter-by-xpath-test/alter-by-xpath-pom.xml" ) );
+ XMLTool xmlTool = new XMLTool( "project", new File( getBasedir() +
"/target/test-files/unit/alter-by-xpath-test/test-pom.xml" ) );
assertEquals( "1.1-SNAPSHOT",
xmlTool.getElement("/project/dependencies/dependency[artifactId[.='commons-collections']]/version").getText());
}
+
+ public void testAlterDependencies() throws Exception
+{
+ String pluginPom = getBasedir() +
"/src/test/resources/unit/alter-dependencies-test/plugin-pom.xml";
+
+ // safety
+ FileUtils.copyDirectory( new File( getBasedir(),
"src/test/resources/unit/alter-dependencies-test" ),
+ new File( getBasedir(),
"target/test-files/unit/alter-dependencies-test" ), null, "**/.svn,**/.svn/**"
);
+
+ FileUtils.copyDirectory( new File( getBasedir(),
"src/test/resources/unit/alter-dependencies-test/module" ),
+ new File( getBasedir(),
"target/test-files/unit/alter-dependencies-test/module" ), null,
"**/.svn,**/.svn/**" );
+
+ AlterDependenciesMojo mojo = (AlterDependenciesMojo) lookupMojo(
"alter-dependencies", pluginPom );
+
+ assertNotNull( mojo );
+
+ mojo.execute();
+
+ XMLTool xmlTool = new XMLTool( "project", new File( getBasedir() +
"/target/test-files/unit/alter-dependencies-test/pom.xml" ) );
+ XMLTool xmlTool2 = new XMLTool( "project", new File( getBasedir() +
"/target/test-files/unit/alter-dependencies-test/module/pom.xml" ) );
+
+
+ assertEquals( "1",
xmlTool.getElement("/project/dependencies/dependency[artifactId[.='bar']]/version").getText());
+
+ assertEquals( "1",
xmlTool.getElement("/project/dependencyManagement/dependencies/dependency[artifactId[.='bar-two']]/version").getText());
+}
+
+ public void testAlterModules() throws Exception
+ {
+ String pluginPom = getBasedir() +
"/src/test/resources/unit/alter-modules-test/plugin-pom.xml";
+
+ // safety
+ FileUtils.copyDirectory( new File( getBasedir(),
"src/test/resources/unit/alter-modules-test" ),
+ new File( getBasedir(),
"target/test-files/unit/alter-modules-test" ), null, "**/.svn,**/.svn/**" );
+
+
+ AlterModulesMojo mojo = (AlterModulesMojo) lookupMojo(
"alter-modules", pluginPom );
+
+ assertNotNull( mojo );
+
+ mojo.execute();
+
+ XMLTool xmlTool = new XMLTool( "project", new File( getBasedir() +
"/target/test-files/unit/alter-modules-test/test-pom.xml" ) );
+
+ assertTrue( xmlTool.hasElement("/project/modules/module[.='mod1']") );
+ assertTrue( xmlTool.hasElement("/project/modules/module[.='mod2']") );
+ assertTrue(
xmlTool.hasElement("/project/modules/module[.='leavemealone']") );
+ assertFalse( xmlTool.hasElement("/project/modules/module[.='rem1']")
);
+ assertFalse( xmlTool.hasElement("/project/modules/module[.='rem2']")
);
+ }
}
Propchange:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/java/org/apache/maven/plugins/pom/PomPluginTest.java
------------------------------------------------------------------------------
svn:mergeinfo =
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,35 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+ <xpath>/project/modules</xpath>
+ <newElement>module</newElement>
+ <newValue>foo</newValue>
+
<projectFile>${basedir}/target/test-files/unit/add-by-xpath-test/test-pom.xml</projectFile>
+ <failFast>true</failFast>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-by-xpath-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,28 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+ <modules>
+ <module>bar</module>
+ </modules>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,43 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+ <dependencies>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>1</version>
+ </dependency>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar-two</artifactId>
+ <version>1</version>
+ </dependency>
+ </dependencies>
+
<projectFile>${basedir}/target/test-files/unit/add-dependencies-test/test-pom.xml</projectFile>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/add-dependencies-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,37 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+ <managedDependencies>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar-two</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </managedDependencies>
+</project>
Modified:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-by-xpath-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-by-xpath-test/plugin-pom.xml?rev=701450&r1=701449&r2=701450&view=diff
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-by-xpath-test/plugin-pom.xml
(original)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-by-xpath-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -25,7 +25,7 @@
<configuration>
<xpath>/project/dependencies/dependency[artifactId[.='commons-collections']]/version</xpath>
<newValue>1.1-SNAPSHOT</newValue>
-
<projectFile>${basedir}/target/test-files/unit/alter-by-xpath-test/alter-by-xpath-pom.xml</projectFile>
+
<projectFile>${basedir}/target/test-files/unit/alter-by-xpath-test/test-pom.xml</projectFile>
<failFast>true</failFast>
</configuration>
</plugin>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/module/pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/module/pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/module/pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/module/pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,23 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar-two</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,43 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+ <dependencies>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>1</version>
+ </dependency>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar-two</artifactId>
+ <version>1</version>
+ </dependency>
+ </dependencies>
+ <target>${basedir}/target/test-files</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-dependencies-test/pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,40 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar-two</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
+
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,39 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+ <addModules>
+ <addModule>mod1</addModule>
+ <addModule>mod2</addModule>
+ </addModules>
+ <removeModules>
+ <removeModule>rem1</removeModule>
+ <removeModule>rem2</removeModule>
+ </removeModules>
+
<projectFile>${basedir}/target/test-files/unit/alter-modules-test/test-pom.xml</projectFile>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-modules-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,30 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+ <modules>
+ <module>rem1</module>
+ <module>rem2</module>
+ <module>leavemealone</module>
+ </modules>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,34 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+
<xpath>/project/dependencies/dependency[artifactId[.='commons-collections']]/version</xpath>
+ <newValue>1.1-SNAPSHOT</newValue>
+
<projectFile>${basedir}/target/test-files/unit/alter-by-xpath-test/alter-by-xpath-pom.xml</projectFile>
+ <failFast>true</failFast>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-mojo-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,25 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,34 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+
<xpath>/project/dependencies/dependency[artifactId[.='commons-collections']]/version</xpath>
+ <newValue>1.1-SNAPSHOT</newValue>
+
<projectFile>${basedir}/target/test-files/unit/alter-by-xpath-test/alter-by-xpath-pom.xml</projectFile>
+ <failFast>true</failFast>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-parent-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,25 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,34 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+
<xpath>/project/dependencies/dependency[artifactId[.='commons-collections']]/version</xpath>
+ <newValue>1.1-SNAPSHOT</newValue>
+
<projectFile>${basedir}/target/test-files/unit/alter-by-xpath-test/alter-by-xpath-pom.xml</projectFile>
+ <failFast>true</failFast>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-properties-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,25 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,34 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+
<xpath>/project/dependencies/dependency[artifactId[.='commons-collections']]/version</xpath>
+ <newValue>1.1-SNAPSHOT</newValue>
+
<projectFile>${basedir}/target/test-files/unit/alter-by-xpath-test/alter-by-xpath-pom.xml</projectFile>
+ <failFast>true</failFast>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-scm-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,25 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,34 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+
<xpath>/project/dependencies/dependency[artifactId[.='commons-collections']]/version</xpath>
+ <newValue>1.1-SNAPSHOT</newValue>
+
<projectFile>${basedir}/target/test-files/unit/alter-by-xpath-test/alter-by-xpath-pom.xml</projectFile>
+ <failFast>true</failFast>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/alter-version-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,25 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/plugin-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/plugin-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/plugin-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/plugin-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,34 @@
+<!--
+ 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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-pom-plugin</artifactId>
+ <configuration>
+
<xpath>/project/dependencies/dependency[artifactId[.='commons-collections']]/version</xpath>
+ <newValue>1.1-SNAPSHOT</newValue>
+
<projectFile>${basedir}/target/test-files/unit/alter-by-xpath-test/alter-by-xpath-pom.xml</projectFile>
+ <failFast>true</failFast>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/test-pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/test-pom.xml?rev=701450&view=auto
==============================================================================
---
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/test-pom.xml
(added)
+++
maven/sandbox/trunk/plugins/maven-pom-plugin/src/test/resources/unit/remove-by-xpath-test/test-pom.xml
Fri Oct 3 10:20:30 2008
@@ -0,0 +1,25 @@
+<project>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xom</groupId>
+ <artifactId>xom</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ </dependencies>
+</project>