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:
John Dennis Casey 2005-11-14 23:04:56 +00:00
parent 9a0b2544f2
commit 5f190db3d6
3 changed files with 35 additions and 0 deletions

View File

@ -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.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------

View File

@ -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>

14
maven-core-it/it2003/test.sh Executable file
View File

@ -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