charles kim created MRM-1645:
--------------------------------

             Summary: mvn archetype:generate -DarchetypeCatalog 
(archetype-catalog.xml) failing with Not a valid artifact path 
                 Key: MRM-1645
                 URL: https://jira.codehaus.org/browse/MRM-1645
             Project: Archiva
          Issue Type: Bug
    Affects Versions: 1.4-M1
         Environment: RHEL6
            Reporter: charles kim
         Attachments: ArchivaDavResourceFactory_patch.txt, 
ArchivaDavResourceFactoryTest_patch.txt, RepositoryRequest_patch.txt

"mvn archetype:generate 
-DarchetypeCatalog=http://host:9999/repository/public/foo/maven_archetypes"; 
will append the archetype-catalog.xml and it should fetch the list of 
archetypes.  However, this is failing on Archiva where an exception is thrown 
with "java.lang.IllegalArgumentException: Not a valid artifact path in a Maven 
2 repository, filename 'archetype-catalog.xml' doesn't start with artifact ID" 
since Archiva is treating this as an artifact.

I think there needs to be a check for such case similar to metadata file for an 
archetype catalog so that it doesn't try to check for valid artifact format.  I 
can create a ticket and submit a patch for this.
Thanks.
-Charlie



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to