I'm using the following command to create a new archetype project (only
the relevant portion of the command is below):

 

mvn archetype:generate -DarchetypeRepository=http://somehost.com/mvnrepo
........

 

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>

 

 

What can I do... besides remove the mirrors section all together, or
list every single mirror that I have (I really like have all our
developers with a simple entry in the settings.xml file and the mirrors
configured in Nexus, but I don't want to have to add every possible repo
that might have some archetype in nexus.... Hence the reason to use the
-DarchetypeRepository)?

 

Jeff

Reply via email to