-
Notifications
You must be signed in to change notification settings - Fork 32
archetype
branflake2267 edited this page Dec 12, 2012
·
6 revisions
#Arcbees Tools
##Create Project To create a GWTP basic App Engine project change the groupId and artifactId.
mvn archetype:generate -DarchetypeGroupId=com.arcbees \
-DarchetypeArtifactId=gwtp-basic-appengine-archetype \
-DarchetypeVersion=0.1-SNAPSHOT \
-DgroupId=com.projectname \
-DartifactId=new-project-name \
-DremoteRepositories=https://oss.sonatype.org/content/repositories/snapshots/
##Archetype Creation
- run 'sh ./create_archetype.sh'
- Goto a new project directory
- run 'mvn archetype:generate -DarchetypeCatalog=local'
##Create Template Archetype
##Prerequisites Have Maven version 3+ installed
##Manual Create a project from scratch using these steps
- Clone the Arcbees Tools project anywhere on your computer
- Move to ArcBees-tools\gwtp-arcbees
- Run mvn archetype:create-from-project
- Move to target\generated-sources\archetype
- Run mvn install
- Move to a new location, where you want to create your archetype (e.g. your desktop)
- The new location must be outside the ArcBees-tools folder
- Run mvn archetype:generate -DarchetypeCatalog=local
- Maven will give you several options
- For the type, choose "1"
- For groupId, type
com.[clientName]
(e.g. com.myclient) - For artifactId,
type [projectName]
(e.g. web) - For version, just press Enter (this selects the suggested value, 1.0-SNAPSHOT)
- For packaging, type "com.myclient.web"
- Press "y" to accept
- Once build has succeeded, import your project into IntelliJ IDEA
- Make sure annotation processor is activated
- Make sure the project can be run in your browser
- Import your project to GitHub
##Reference