Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-alpha-3
-
None
-
None
Description
org.apache.maven.archetype.Archetype class has the following JavaDoc:
/** * 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 );
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.