PopulateRepositoryMojo incapable of processing sources & Javadoc
----------------------------------------------------------------
Key: MNBMODULE-86
URL: http://jira.codehaus.org/browse/MNBMODULE-86
Project: Maven 2.x Netbeans Module Plugin
Issue Type: Bug
Affects Versions: 3.2
Environment: Ubuntu Lucid, JDK 6u21, Maven 2.2.1
Reporter: Jesse Glick
Assignee: Milos Kleint
Priority: Blocker
Attachments: nbm-maven-plugin-3.2.jar, PopulateRepositoryMojo.diff
With the diagnostic patch from http://jira.codehaus.org/browse/MNG-4731
applied, {{mvn nbm:populate-repository}} on NetBeans 6.9.1 with
{{netbeansJavadocDirectory}} and {{netbeansSourcesDirectory}} defined yields
this error:
{noformat}
...
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An invalid artifact was detected.
This artifact might be in your project's POM, or it might have been included
transitively
during the resolution process. Here is the information we do have for this
artifact:
o GroupID: org.netbeans.modules
o ArtifactID: org-netbeans-modules-profiler-freeform
o Version: RELEASE691
o Type: <<< MISSING >>>
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.artifact.InvalidArtifactRTException: For artifact
{org.netbeans.modules:
org-netbeans-modules-profiler-freeform:RELEASE691:null}: The type cannot be
empty.
at
org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArtifact.java:141)
at
org.apache.maven.project.artifact.AttachedArtifact.validateIdentity(AttachedArtifact.java:63)
at
org.apache.maven.project.artifact.AttachedArtifact.<init>(AttachedArtifact.java:53)
at
org.codehaus.mojo.nbm.PopulateRepositoryMojo.createAttachedArtifact(PopulateRepositoryMojo.java:617)
at
org.codehaus.mojo.nbm.PopulateRepositoryMojo.execute(PopulateRepositoryMojo.java:424)
...
{noformat}
A simple patch (attached) seems to correct the problem and permit the
repository to be generated. For convenience I am also attaching the 3.2 plugin
rebuilt with this patch (may be placed in
{{~/.m2/repository/org/codehaus/mojo/nbm-maven-plugin/3.2/nbm-maven-plugin-3.2.jar}}
as a hotfix).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email