zhengyangyong commented on a change in pull request #622: [SCB-441] Provide 
Maven Archetype of business-service-jaxrs
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/622#discussion_r177649027
 
 

 ##########
 File path: archetypes/README.md
 ##########
 @@ -0,0 +1,38 @@
+## ServiceComb Java Chassis Archetypes
+### What's maven archetypes
+http://maven.apache.org/guides/introduction/introduction-to-archetypes.html
+
+### What we will provide
+1. business-service-jaxrs  
+  Archetype for create a common microservice using jaxrs provider.
+
+more coming soon.. 
+
+### How to build these archetypes
+We use **business-service-jaxrs** as example :
+```bash
+cd archetypes
+cd business-service-jaxrs
+mvn archetype:create-from-project
+#Wait until successed, archetype will be generated at 
target/generated-sources/archetype
+cd target/generated-sources/archetype
+#Install archetype to your local maven repository
+mvn install
+```
+*Notice: The archetype ArtifactId of business-service-jaxrs is 
business-service-jaxrs-**archetype.***
+
+We will publish these archetypes to maven center repository when do release 
since 1.0.0-m2.
+
+### How to use these archetypes generate project
+We use **business-service-jaxrs** as example :
+#### Generate via IntelliJ IDEA  
+New Project(Module) -> Maven -> Check "Create from archetype" -> Add 
Archetype... -> fill *GroupId* with value "org.apache.servicecomb.archetypes", 
fill *ArtifactId* with value "business-service-jaxrs-archetype", fill *Version* 
with current archetype version -> select this archetype that had listed, do 
next steps.
+
+#### Generate via Eclipse  
+New Project(Module) -> Maven -> Next -> Add Archetype... -> fill *GroupId* 
with value "org.apache.servicecomb.archetypes", fill *ArtifactId* with value 
"business-service-jaxrs-archetype", fill *Version* with current archetype 
version -> select this archetype that had listed, do next steps.
+
+#### Generate via command
+```bash
+mvn archetype:generate -DarchetypeGroupId=org.apache.servicecomb.archetypes 
-DarchetypeArtifactId=business-service-jaxrs-archetype 
-DarchetypeVersion=${archetype-version}
+```
+In console Interactive mode, input your GroupId, ArtifactId and Version of new 
project(module), after a short while it will be generated.
 
 Review comment:
   Done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to