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 258898 - org.apache.maven.artifact.InvalidArtifactRTException: For artifact {dom4j:dom4j:null:jar}: The version cannot be empty.
Summary: org.apache.maven.artifact.InvalidArtifactRTException: For artifact {dom4j:dom...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks: 262774
  Show dependency tree
 
Reported: 2016-04-19 07:48 UTC by terje7601
Modified: 2016-07-11 23:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 166848


Attachments
stacktrace (2.92 KB, text/plain)
2016-04-19 07:48 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2016-04-19 07:48:15 UTC
Build: NetBeans IDE Dev (Build 201604130001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.77-b03, Java(TM) SE Runtime Environment, 1.8.0_77-b03
OS: Windows 7

User Comments:
GUEST: .

GUEST: .

GUEST: .

terje7601: I didn't specify the version for a dependency in the dependencyManagement section of the pom.xml

GUEST: editing pom file

GUEST: .

GUEST: See POM
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.daveo</groupId>
    <artifactId>PersonalM</artifactId>
    <packaging>war</packaging>
    <version>1.0-SS</version>
    <name>PersonalM Java EE 6 Webapp</name>
    <url>http://maven.apache.org</url>
    <repositories>
        <repository>
            <id>java.net2</id>
            <name>Repository hosting the jee6 artifacts</name>
            <url>http://download.java.net/maven/2</url>
        </repository>
        <repository>
            <url>http://download.java.net/maven/2/</url>
            <id>jsf20</id>
            <layout>default</layout>
            <name>Repository for library Library[jsf20]</name>
        </repository>
        <repository>
             <id>prime-repo</id>
             <name>Prime Technolo




Stacktrace: 
org.apache.maven.artifact.InvalidArtifactRTException: For artifact {dom4j:dom4j:null:jar}: 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.createDependencyArtifact(DefaultArtifactFactory.java:57)
   at org.apache.maven.repository.legacy.LegacyRepositorySystem.createDependencyArtifact(LegacyRepositorySystem.java:149)
   at org.apache.maven.project.MavenProject.getManagedVersionMap(MavenProject.java:1624)
Comment 1 terje7601 2016-04-19 07:48:17 UTC
Created attachment 159313 [details]
stacktrace
Comment 2 Tomas Stupka 2016-06-20 12:43:29 UTC
fixed in jet-main #1dad921df7fc
Comment 3 Tomas Stupka 2016-07-04 14:38:05 UTC
nope, not fixed 
(#1dad921df7fc applies to another issue)
Comment 4 Tomas Stupka 2016-07-06 12:50:43 UTC
> nope, not fixed 
> (#1dad921df7fc applies to another issue)
this was fixed by #1dad921df7fc !!!
(and sorry for spamming)
Comment 5 markiewb 2016-07-11 23:36:14 UTC
FYI Introduced https://netbeans.org/bugzilla/show_bug.cgi?id=262774