mirror of https://github.com/apache/maven.git
[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:
parent
4267580f46
commit
a3461e7fb0
|
@ -33,4 +33,6 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -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()
|
public void testPluginMergeSimple()
|
||||||
throws Exception
|
throws Exception
|
||||||
|
|
|
@ -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>
|
7
pom.xml
7
pom.xml
|
@ -249,11 +249,6 @@ under the License.
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Maven Modules -->
|
<!-- Maven Modules -->
|
||||||
<!--start-->
|
<!--start-->
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven</groupId>
|
|
||||||
<artifactId>maven-mercury</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-lifecycle</artifactId>
|
<artifactId>maven-lifecycle</artifactId>
|
||||||
|
@ -409,7 +404,7 @@ under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-jxpath</groupId>
|
<groupId>commons-jxpath</groupId>
|
||||||
<artifactId>commons-jxpath</artifactId>
|
<artifactId>commons-jxpath</artifactId>
|
||||||
<version>${jxpathVersion}</version>
|
<version
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Mercury -->
|
<!-- Mercury -->
|
||||||
|
|
Loading…
Reference in New Issue