> I'm not sure why this is - looks like a missing group ID, but it
> should have determined that from the path.

That is because of
org.apache.maven.tools.repoclean.artifact.metadata.ProjectMetadata
class which returns null as groupId. Seems that is fake implementation
of ArtifactMetadata. And it does not calculate groupId from the path.

I have fixed it (use information from artifact) and now it works. See
attached patch.

-- 
anatol
Index: src/main/java/org/apache/maven/tools/repoclean/artifact/metadata/ProjectMetadata.java
===================================================================
--- src/main/java/org/apache/maven/tools/repoclean/artifact/metadata/ProjectMetadata.java	(revision 178640)
+++ src/main/java/org/apache/maven/tools/repoclean/artifact/metadata/ProjectMetadata.java	(working copy)
@@ -71,21 +71,21 @@
 
     public String getGroupId()
     {
-        return null;
+        return artifact.getGroupId();
     }
 
     public String getArtifactId()
     {
-        return null;
+        return artifact.getArtifactId();
     }
 
     public String getVersion()
     {
-        return null;
+        return artifact.getVersion();
     }
 
     public String getBaseVersion()
     {
-        return null;
+        return artifact.getBaseVersion();
     }
 }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to