mirror of https://github.com/apache/maven.git
Adding test case for MNG-1424.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@344260 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9a0b2544f2
commit
5f190db3d6
|
@ -328,5 +328,9 @@ it2001: Test that repositories are accumulated as the artifact resolution
|
||||||
|
|
||||||
it2002: Test the release plugin.
|
it2002: Test the release plugin.
|
||||||
|
|
||||||
|
it2003: Test that versions specified in pluginManagement are used when plugins
|
||||||
|
are resolved as direct command-line goals, or as implied lifecycle
|
||||||
|
bindings.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.apache.maven.it</groupId>
|
||||||
|
<artifactId>it2003</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
|
<version>2.0</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
</build>
|
||||||
|
</project>
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
RESULT=`mvn -X clean | grep 'org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.0'`
|
||||||
|
|
||||||
|
if [ ${RESULT} == "" ]; then
|
||||||
|
echo "Incorrect version of maven-clean-plugin detected. Test failed."
|
||||||
|
exit 1;
|
||||||
|
else
|
||||||
|
echo "Found correct version of maven-clean-plugin (2.0) in line:"
|
||||||
|
echo ""
|
||||||
|
echo $RESULT
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue