Deploying a maven archetype on your corporate repository
The maven archetype is a very interesting functionality if you need to create skeleton project very easily. They are used to create a maven project from scratch. What if you create your own archetype that is not available on the default / central repository?
Hopefully you can pass the remoteRepositories parameter on command line to specify the URL of your corporate repository, something like:
CODE:
-
mvn archetype:create -DarchetypeGroupId=archetypeGroupId
-
-DarchetypeArtifactId=archetypeArtifactId
-
-DarchetypeVersion=archetypeVersion
-
-DgroupId=com.mycompany
-
-DartifactId=new-project
-
-DremoteRepositories=http://repo.mycompany.com
Friday 05 Jan 2007 | Stéphane | Java