Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
    Code Block
    http://repo1.maven.org/maven2
    to
    Code Block
    http://repository.apache.org/content/repositories/snapshots
    in the above command.

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.

...

  1. core - a pre-configured RESTful server, with JPA persistence
  2. 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:

  1. change
    Code Block
    http://repo1.maven.org/maven2
    to
    Code Block
    http://repository.apache.org/content/repositories/snapshots
    in the mvn command above
  2. add the following code right before </project> in root pom.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:

...