Trails

mvn archetype:create will not use remoteRepositories without the latest archetype plugin

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    maven 2.0.4
  • Number of attachments :
    0

Description

I was trying out the new archetype, it was failing to download the trails-archetype because the archetype plugin ignores the remoteRepositories plugin. This is a problem with maven 2.0.4.

To remedy the situation...
In your instructions for using the mvn archetype, you should mention that if it fails for this reason to run it with -U after mvn to update the archetype plugin itself.

mvn -U archetype:create
followed by...

mvn archetype:create -DarchetypeGroupId=org.trailsframework
-DarchetypeArtifactId=trails-archetype
-DremoteRepositories=http://snapshots.repository.codehaus.org/
-DarchetypeVersion=1.0-SNAPSHOT
-DgroupId=<your package>
-DartifactId=<your project>

I am unsure if you can do it all in one...

mvn -U archetype:create -DarchetypeGroupId=org.trailsframework
-DarchetypeArtifactId=trails-archetype
-DremoteRepositories=http://snapshots.repository.codehaus.org/
-DarchetypeVersion=1.0-SNAPSHOT
-DgroupId=<your package>
-DartifactId=<your project>

Activity

Hide
Alejandro Scandroli added a comment -

done

Show
Alejandro Scandroli added a comment - done

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: