RemoteCatalogArchetypeDataSource don't allow to download arbitrary urls
-----------------------------------------------------------------------

                 Key: ARCHETYPE-161
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-161
             Project: Maven Archetype
          Issue Type: Bug
            Reporter: Eugene Kuleshov


org.apache.maven.archetype.Archetype class has the following JavaDoc:

{noformat}
    /**
     * Gives the catalog of archetypes located at the given url.
     * if the url doesn't define a catalog, then 'archetype-catalog.xml' is 
appended to it for search.
     * @param url the catalog url or base url containing the catalog file.
     * @return the catalog.
     */
    ArchetypeCatalog getRemoteCatalog( String url );
{noformat}

However implementation of the 
org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(..)
 method does not respect above contract and always assume that url is pointing 
to some folder that contains archetype-catalog.xml file.

This is very confusing and also prevent to publish multiple archetype catalogs 
in the same folder.

-- 
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

        

Reply via email to