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 195295 - POM Model - Error While reading inheritance hierarchy‏
Summary: POM Model - Error While reading inheritance hierarchy‏
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-10 14:52 UTC by gliesian
Modified: 2011-11-04 17:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
POM Model (83.97 KB, image/jpeg)
2011-02-10 14:54 UTC, gliesian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gliesian 2011-02-10 14:52:50 UTC
The POM model in the Navigator works with the base CXF POM in NetBeans 6.9.1, but not in NetBeans 7.0 Beta.
 
That is the POM model tree is shown in 6.9.1, in 7.0 Beta, the following is seen, "Error While reading inheritance hierarchy".
 
See attached screenshot.

Note:

It appears as if Netbeans 7.0 beta uses a default Maven 3 that is bundled.  I set the version to my installed 3.0.2 through Tools->Options->Maven tab->Maven Home combo box.

The problem exists for both versions; Maven 3/NetBeans 7.0 Beta and Maven 3.0.2/NetBeans 7.0 Beta.

Note: The POM Model works with Maven 3.0.2/NetBeans6.9.1 and Maven 2.2.1/NetBeans 6.9.1.

Note: Here is the project I used: apache-cxf-2.3.2-src.zip - http://cxf.apache.org/download.html
Comment 1 gliesian 2011-02-10 14:54:46 UTC
Created attachment 105840 [details]
POM Model
Comment 2 gliesian 2011-02-10 15:33:17 UTC
When I remove:
  <activation>
     <jdk>1.5</jdk>
  </activation>

From here:

  <profile>
      <id>jdk15</id>
      <activation>
          <jdk>1.5</jdk>
      </activation>
      <properties>
          <jdk.version>1.5</jdk.version>
      </properties>
  </profile>

 Everything works fine.
Comment 3 gliesian 2011-02-10 15:38:21 UTC
Profile Activation documentation:

http://www.sonatype.com/books/mvnref-book/reference/profiles-sect-activation.html
Comment 4 Jesse Glick 2011-03-08 03:22:22 UTC
core-main #93cdfa82d55e
Comment 5 Quality Engineering 2011-03-09 05:36:07 UTC
Integrated into 'main-golden', will be available in build *201103090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/91c97e1ad654
User: Jesse Glick <jglick@netbeans.org>
Log: Properly displaying errors such as in #195295.