Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
the archetype artifacts in local repository that are downloaded by the plugin don't contain the archetype's pom file.
that becomes a problem when one attempts to index the local repository (using maven-repository-indexer). For teh archetypes one doesn't get the name and description indexed (as these are taken from the pom).
Issue Links
- is related to
-
MRM-128
better handling of jar artifacts without a pom
-
Allows the DefaultDownloader to also download the POM file whenever an archetype is requested. Modified test cases to include basic POM files for everything.
One curious thing I could not solve is this assertion in DefaultRepositoryCrawlerTest:
assertTrue ( ( 5 <= result.getArchetypes ().size () ) && ( result.getArchetypes ().size () >= 7 ) );This checks the size of the result twice, first to see if it is larger than or equal to 5, then if it is larger than or equal to 7. This failed for me all the time, so I changed it to the more logical:
assertTrue ( ( 5 <= result.getArchetypes ().size () ) && ( result.getArchetypes ().size () <= 7 ) );...where the number of archetypes should be between 5..7. Was this a typo previously maybe?