This is a Maven archetype for creating an Asura challenge (game).
- Asura Builder framework
- GSON
- JUnit 4
- Log4J
- JDK 8
- Maven 3
- SpiderMonkey 52+
To install the archetype in your local repository execute the following commands:
git clone https://github.com/mooshak-dcc/maven-archetype-asura-game
cd maven-archetype-asura-game
mvn clean install
- Create new project
File > New > Project
- Click
Maven > Maven Project
the new project dialog - Do NOT select
Create a simple project (skip archetype selection)
, just clickNext
- Click the
Add Archetype ...
button - Set
Group Id
topt.up.fc.dcc.asura.builder
- Set
Artifact Id
tomaven-archetype-asura-game
- Set
Version
to0.0.1
- Select the added archetype and click
Next
- Set
Group Id
,Artifact Id
,Version
, andPackage
of your project - Add
gameName
,author
andauthorEmail
properties for your project and clickNext
- Click
Finish
and create the project
Note: You need to have the archetype installed in your local repository.
- Create new project
File > New > Project
- Click Maven on the left hand side of the new project dialog
- Check
Create from archetype
- Click the
Add Archetype
button - Set
Group Id
topt.up.fc.dcc.asura.builder
- Set
Artifact Id
tomaven-archetype-asura-game
- Set
Version
to0.0.1
- Set
Group Id
,Artifact Id
andVersion
of your project, and clickNext
- Add
package
,gameName
,author
andauthorEmail
properties for your project and clickNext
- Click
Next
and create the project
Note: You need to have the archetype installed in your local repository.
Create a new empty directory for your project and navigate into it and then run one of the following commands:
Interactive mode
mvn archetype:generate \
-DarchetypeGroupId=pt.up.fc.dcc.asura.builder \
-DarchetypeArtifactId=maven-archetype-asura-game \
-DarchetypeVersion=0.0.1
Batch mode
mvn archetype:generate -B \
-DarchetypeGroupId=pt.up.fc.dcc.asura.builder \
-DarchetypeArtifactId=maven-archetype-asura-game \
-DarchetypeVersion=0.0.1 \
-DgroupId=my.groupId \
-DartifactId=my-artifactId \
-Dversion=version \
-Dpackage=mypackage.name \
-DgameName=MyGameName \
-Dauthor="My Full Name" \
-DauthorEmail=me@myemail
Note: The above command will bootstrap a project using the archetype published in your local repository.
Navigate to newly created project directory (my-artifactId
) and then run:
mvn clean compile install exec:java
Inside the project directory (my-artifactId
) run:
mvn clean compile test
Inside the project directory (my-artifactId
) run:
mvn package