This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250500 - Bundeled Maven needs upgrade to fix problem with activation tags in profiles (MNG-4565)
Summary: Bundeled Maven needs upgrade to fix problem with activation tags in profiles ...
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 15:28 UTC by hardyheroin
Modified: 2015-02-19 21:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hardyheroin 2015-02-18 15:28:46 UTC
Currently the NetBeans IDE bundled version of Maven is 3.0.5 (this holds true for NetBeans IDE 8.0, 8.0.1, 8.0.2 and dev-201502170001).

As this StackOverflow post explains
http://stackoverflow.com/questions/4629140/maven-profile-activation-with-multiple-conditions
Maven, prior to the patch in 3.2.2, suffers from a bug when using multiple <activation> tags in profiles. When using multiple tags they function as OR statements rather than the expected AND statements. The issue is fixed upstream, all that is left is updating the 
http://jira.codehaus.org/browse/MNG-4565
Right now NetBeans IDE's bundled Maven and the upstream Maven build behave wildly different leading to inconsistent behavior when one developer on a team uses the bundled version and another chooses to run Maven from the command line.

I suggest to bundle a newer version of Maven with the 8.1 release of NetBeans IDE.
Comment 1 hardyheroin 2015-02-19 21:31:57 UTC
This would also resolve Bug 247988 "Update to Maven 3.2.3" (https://netbeans.org/bugzilla/show_bug.cgi?id=247988)