Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: 2.0-alpha-2
-
Fix Version/s: 2.0-alpha-5
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
I deployed a snapshot of the archetype and create isn't finding it even though i have the maven-snapshot repo in my settings. A secondary problem is that if nothing is found, you get into an infinite loop where it asks you to pick a number that isn't there.
$ mvn.bat archetypeng:create Using maven.home=c:\Program Files\maven2\bin\\.. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetypeng'. [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [archetypeng:create] (aggregator-style) [INFO] ---------------------------------------------------------------------------- [INFO] Preparing archetypeng:create [INFO] [archetypeng:select-archetype] Choose group: 1: org.apache.maven.archetypes 2: org.codehaus.mojo.archetypes 3: org.apache.maven.its Choose a number: (1/2/3): 3 [INFO] org.apache.maven.its: checking for updates from central Choose archetype: Choose a number: :
Issue Links
- is related to
-
MNG-3099
Profiles ignored when working with non-projects (such as archetype:create)
-
- relates to
-
ARCHETYPE-93
archetypeng:create loop forever when the selected group contains no archetype
-
-
ARCHETYPE-179
repo1 is hardcoded into internal catalog
-
About the repositories in settings.
There is a maven issue (can remember which exactly) that state that
repositories defined in profiles in settings are not usable in a directory
that doesn't contain a pom. therefore the archetype plugin can't use it...
A workaround is usable: the archetype:add-repositories goal
that takes -DrepositoryId=central and -DrepositoryUrl=http://repo1.maven.org/maven2 properties
or -Drepositories=central=http://repo1.maven.org/maven2,company1=http://repo1.company.com property
About the infinite loop, It is a bug