You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Petrovic (JIRA)" <ji...@codehaus.org> on 2011/02/02 20:02:22 UTC
[jira] Updated: (MNG-4840) Prerequisites is not working on m3
[ http://jira.codehaus.org/browse/MNG-4840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Petrovic updated MNG-4840:
-------------------------------
Attachment: testapp.tar
A simple quickstart project is attached.
Using maven 3.0.2, I show the lack of enforcement of a maven version in the prerequisites still exists:
This value does not halt the build
<prerequisites>
<maven>3.0.3</maven>
</prerequisites>
nor does this value
<prerequisites>
<maven>4.0</maven>
</prerequisites>
Console output:
$ mvn --version
Apache Maven 3.0.2 (r1056850; 2011-01-08 16:58:10-0800)
Java version: 1.6.0_22, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.5", arch: "x86_64", family: "mac"
$mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building testapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ testapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/petrovic/tmp/testapp/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ testapp ---
[INFO] Compiling 1 source file to /Users/petrovic/tmp/testapp/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ testapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/petrovic/tmp/testapp/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ testapp ---
[INFO] Compiling 1 source file to /Users/petrovic/tmp/testapp/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ testapp ---
[INFO] Surefire report directory: /Users/petrovic/tmp/testapp/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.example.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ testapp ---
[INFO] Building jar: /Users/petrovic/tmp/testapp/target/testapp-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.367s
[INFO] Finished at: Wed Feb 02 10:53:02 PST 2011
[INFO] Final Memory: 12M/81M
[INFO] ------------------------------------------------------------------------
> Prerequisites is not working on m3
> ----------------------------------
>
> Key: MNG-4840
> URL: http://jira.codehaus.org/browse/MNG-4840
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: POM
> Affects Versions: 3.0-alpha-6, 3.0-alpha-7, 3.0-beta-1, 3.0-beta-2, 3.0-beta-3
> Reporter: Marvin Froeder
> Assignee: Benjamin Bentmann
> Fix For: 3.0.2
>
> Attachments: mng-001.zip, testapp.tar
>
>
> I set my plugin to prerequisite on maven 4 (ok, it doesn't exists yet), but the build just passed =/
> Sample attached
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira