kolorobot / spring-mvc-quickstart-archetype

The project is a Maven archetype for Spring MVC web application.
http://blog.codeleak.pl
1.05k stars 478 forks source link

publish archetype (don't use local repo when call archetype) #101

Closed donhuvy closed 8 years ago

donhuvy commented 8 years ago

(This is feature, improvement) For easy, you can use: https://www.jfrog.com/open-source/

then public your archetype to JFrog (it is free for open source project), everyone can't declare local archetype.

or

Publishing your Archetype to a Website

Good News! You don’t need a Nexus server. Maven artifacts can be published to plain old web sites.

To test this I have uploaded the test-archetype to the following location and used the following command to generate a project based on the archetype. mvn archetype:generate \ -DarchetypeGroupId=test \ -DarchetypeArtifactId=test-archetype \ -DarchetypeVersion=1.0-SNAPSHOT \ -DarchetypeRepository=http://your static site hostname/directory of your repository

Maven makes a Http connection to the above archetypeRepository and gets all the data necessary to create the project.

( source: https://numberformat.wordpress.com/2009/11/15/creating-a-new-maven-archetype-and-publishing-it-to-nexus/ )

kolorobot commented 8 years ago

@donhuvy Thanks for the suggestion. I created a repo here: http://kolorobot.github.io/spring-mvc-quickstart-archetype. The archetype documentation is updated to reflect this.

Could you please check if it is OK? For me it works, but better be sure :) Thanks in advance.