[
http://jira.codehaus.org/browse/ARCHETYPE-306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lóránt Pintér updated ARCHETYPE-306:
------------------------------------
Attachment: ARCHETYPE-306.patch
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:
{code}
assertTrue (
( 5 <= result.getArchetypes ().size () )
&& ( result.getArchetypes ().size () >= 7 )
);
{code}
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:
{code}
assertTrue (
( 5 <= result.getArchetypes ().size () )
&& ( result.getArchetypes ().size () <= 7 )
);
{code}
...where the number of archetypes should be between 5..7. Was this a typo
previously maybe?
> archetypes downloaded are not downloaded with their poms
> --------------------------------------------------------
>
> Key: ARCHETYPE-306
> URL: http://jira.codehaus.org/browse/ARCHETYPE-306
> Project: Maven Archetype
> Issue Type: Bug
> Reporter: Milos Kleint
> Fix For: 2.0
>
> Attachments: ARCHETYPE-306.patch
>
>
> 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).
--
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