Cannot use "-DarchetypeRepository" if you have <mirrors> * in your settings.xml
file
------------------------------------------------------------------------------------
Key: ARCHETYPE-176
URL: http://jira.codehaus.org/browse/ARCHETYPE-176
Project: Maven Archetype
Issue Type: Bug
Components: Creator, Generator
Affects Versions: 2.0-alpha-3
Environment: Java 6
Maven 2.0.9
Reporter: Jeff Campbell
I'm using the following command to create a new project from a custom archetype
from a 3rd party Maven repo (only
the relevant portion of the command is below):
mvn archetype:generate -DarchetypeRepository=http://somehost.com/mvnrepo
.....(other -D params for thecustom archetype)...
But, because I have the following in my settings.xml file, I cannot
access the repository specified by the "-DarchetypeRepository":
<mirrors>
<mirror>
<id>my.nexus</id>
<name> Nexus Mirror</name>
<url>http://somehost:8081/nexus/content/groups/public</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
Work around(s):
1. Don't use <mirrors> section all together in the settings.xml file.
2. List every single possible maven repo site mirror, in Nexus, that I can
possibly think of to hopefully cover every possible custom archetype that will
ever be used? (yikes!)
--
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