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

Summary: POM Model - Error While reading inheritance hierarchyā€¸
Product: projects Reporter: gliesian <gliesian>
Component: MavenAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: POM Model

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.