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 197288 - [70cat] org.apache.maven.artifact.InvalidArtifactRTException: For artifact {fr.soleil:BOM:null:pom}: The version cannot be empty.
Summary: [70cat] org.apache.maven.artifact.InvalidArtifactRTException: For artifact {f...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 197446 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-31 14:25 UTC by vince_soleil
Modified: 2011-04-07 08:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178071


Attachments
stacktrace (2.89 KB, text/plain)
2011-03-31 14:25 UTC, vince_soleil
Details
stacktrace (3.33 KB, text/plain)
2011-04-05 15:00 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vince_soleil 2011-03-31 14:25:37 UTC
This bug was originally marked as duplicate of bug 164998, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201103220400)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Linux

User Comments:
vince_soleil: open a module of a maven project




Stacktrace: 
org.apache.maven.artifact.InvalidArtifactRTException: For artifact {fr.soleil:BOM:null:pom}: The version cannot be empty.
   at org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArtifact.java:148)
   at org.apache.maven.artifact.DefaultArtifact.<init>(DefaultArtifact.java:123)
   at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:157)
   at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:117)
   at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:111)
   at org.apache.maven.artifact.factory.DefaultArtifactFactory.createBuildArtifact(DefaultArtifactFactory.java:75)
Comment 1 vince_soleil 2011-03-31 14:25:41 UTC
Created attachment 107408 [details]
stacktrace
Comment 2 Jesse Glick 2011-04-05 15:00:42 UTC
Created attachment 107510 [details]
stacktrace

After changing a version in a POM so that dependencies were broken.
Comment 3 Exceptions Reporter 2011-04-05 15:00:54 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=178071
Comment 4 Jesse Glick 2011-04-06 12:42:18 UTC
Reproducible (two related exceptions) by opening either "POM model" or "POM inheritance" navigator views on the POM for org.codehaus.plexus:plexus-compiler-javac:1.8.1.
Comment 5 Jesse Glick 2011-04-06 13:11:35 UTC
core-main #671d8ee89eac
Comment 6 Jesse Glick 2011-04-06 21:07:33 UTC
*** Bug 197446 has been marked as a duplicate of this bug. ***
Comment 7 Quality Engineering 2011-04-07 08:47:13 UTC
Integrated into 'main-golden', will be available in build *201104070400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/671d8ee89eac
User: Jesse Glick <jglick@netbeans.org>
Log: #197288: [70cat] org.apache.maven.artifact.InvalidArtifactRTException: For artifact {fr.soleil:BOM:null:pom}: The version cannot be empty.
Need to ensure that parent/groupId and parent/version are used as fallbacks.