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 188839 - specifying maven 3.0 version in prerequisites causes <Badly-formed Maven project>
Summary: specifying maven 3.0 version in prerequisites causes <Badly-formed Maven proj...
Status: RESOLVED DUPLICATE of bug 188871
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 19:38 UTC by thejosh00
Modified: 2010-07-22 15:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thejosh00 2010-07-21 19:38:52 UTC
Adding the following to pom.xml will cause project name to change to <Badly-formed Maven project>. Show and resolve problems says Unable to build project ...; It requires Maven version 3.0

   <prerequisites>
      <maven>3.0</maven>
   </prerequisites>

Tested in NetBeans 6.9 and NetBeans Dev 201007210001

Also tested with no external maven version and with external maven version set to 3.0-beta-1. Embedded Maven version shows 3.0-SNAPSHOT.

I noticed this viewing source code for the Seam 3 open source project which is using Maven 3. However it easy to reproduce by creating new Maven Application using wizard and adding prerequisites to the pom.
Comment 1 Jesse Glick 2010-07-21 21:40:38 UTC
NB 6.9 embeds M2, so it cannot read projects that require M3. The next major release is expected to embed M3.
Comment 2 Jesse Glick 2010-07-22 15:37:02 UTC
Better to track as a duplicate of an open task.

*** This bug has been marked as a duplicate of bug 188871 ***