[MNG-3803] - System properties in plugins

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@740770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2009-02-04 15:33:47 +00:00
parent 4267580f46
commit a3461e7fb0
4 changed files with 39 additions and 6 deletions

View File

@ -33,4 +33,6 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -86,6 +86,13 @@ public class PomConstructionTest
};
}
/*MNG-3803*/
public void testPluginConfigProperties()
throws Exception
{
PomTestWrapper pom = buildPom( "plugin-config-properties" );
assertEquals( "my.property", pom.getValue( "build/plugins[1]/configuration[1]/systemProperties[1]/property[1]/name" ) );
}
public void testPluginMergeSimple()
throws Exception

View File

@ -0,0 +1,29 @@
<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>a</groupId>
<artifactId>b</artifactId>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4</version>
<configuration>
<systemProperties>
<property>
<name>my.property</name>
<value>my.value</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

View File

@ -249,11 +249,6 @@ under the License.
<dependencies>
<!-- Maven Modules -->
<!--start-->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-mercury</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-lifecycle</artifactId>
@ -409,7 +404,7 @@ under the License.
<dependency>
<groupId>commons-jxpath</groupId>
<artifactId>commons-jxpath</artifactId>
<version>${jxpathVersion}</version>
<version
</dependency>
<!-- Mercury -->