mirror of https://github.com/apache/archiva.git
read old archetype format as well
Submitted by: Milos Kleint git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@427035 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4c63257888
commit
d1cb38e4d9
|
@ -75,6 +75,9 @@ public class StandardArtifactIndexRecordFactory
|
||||||
|
|
||||||
private static final String ARCHETYPE_METADATA_NAME = "META-INF/maven/archetype.xml";
|
private static final String ARCHETYPE_METADATA_NAME = "META-INF/maven/archetype.xml";
|
||||||
|
|
||||||
|
// some current/old archetypes have the archetype.xml at different location.
|
||||||
|
private static final String ARCHETYPE_METADATA_NAME_OLD = "META-INF/archetype.xml";
|
||||||
|
|
||||||
public RepositoryIndexRecord createRecord( Artifact artifact )
|
public RepositoryIndexRecord createRecord( Artifact artifact )
|
||||||
throws RepositoryIndexException
|
throws RepositoryIndexException
|
||||||
{
|
{
|
||||||
|
@ -217,7 +220,7 @@ public class StandardArtifactIndexRecordFactory
|
||||||
{
|
{
|
||||||
populatePluginEntries( readXmlMetadataFileInJar( artifactFile, PLUGIN_METADATA_NAME ), record );
|
populatePluginEntries( readXmlMetadataFileInJar( artifactFile, PLUGIN_METADATA_NAME ), record );
|
||||||
}
|
}
|
||||||
else if ( ARCHETYPE_METADATA_NAME.equals( name ) )
|
else if ( ARCHETYPE_METADATA_NAME.equals( name ) || ARCHETYPE_METADATA_NAME_OLD.equals( name ) )
|
||||||
{
|
{
|
||||||
populateArchetypeEntries( record );
|
populateArchetypeEntries( record );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue