Issue Details (XML | Word | Printable)

Key: TRAILS-2
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alejandro Scandroli
Reporter: Ray Krueger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Trails

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

Created: 13/Sep/06 06:10 AM   Updated: 30/Jan/07 07:09 AM   Resolved: 30/Jan/07 07:09 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment: maven 2.0.4


 Description  « Hide

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>



Alejandro Scandroli added a comment - 30/Jan/07 07:09 AM

done