...
Code Block |
---|
mvn archetype:generate \ -DarchetypeGroupId=org.apache.syncope \ -DarchetypeArtifactId=syncope-archetype \ -DarchetypeRepository=http://repo1.maven.org/maven2 \ -DarchetypeVersion=1.0.0-incubating |
You may want to change the archetype version: change the archetypeVersion to that of the newest release or tag of the archetype project:
- stable releases can be found at central Maven repository;
- snapshot releases can be found at ASF repository; in this case be sure to change
toCode Block http://repo1.maven.org/maven2
in the above command.Code Block http://repository.apache.org/content/repositories/snapshots
The archetype is configured with default values for all properties required by the archetype. If you want to customize any of these property values, type 'n' when prompted for confirmation.
...
- core - a pre-configured RESTful server, with JPA persistence
- console - a web interface for dealing with the core
Stable releases
Take a look at available releases of the archetype project at central Maven repository, then change the archetypeVersion
in the mvn command above accordingly.
Snapshot (development) releases
As development go on, snapshot releases are published at ASF repository.
If you want to test a snapshot release, be sure to:
- change
toCode Block http://repo1.maven.org/maven2
in the mvn command aboveCode Block http://repository.apache.org/content/repositories/snapshots
- add the following code right before
</project>
in rootpom.xml
of the generated project:Code Block <repositories> <repository> <id>ASF</id> <url>https://repository.apache.org/content/repositories/snapshots/</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <repositories>
Build new project
Now build your project using the following command in the root folder of your project:
...