The Syncope team uses the Apache Nexus repository for releasing SNAPSHOT and release artifacts.
More details on releasing Maven artifacts at The Apache Software Foundation.



Install GIT; binary packages for various platforms are available.


Install/Configure GPG - The artifacts that are deployed to the ASF central repository need to be signed. To do this you will need to have a public and private keypair. There is a very good guide that will walk you though this.

Apache Maven

Install Apache Maven 3.0.3 or higher; we strongly encourage our committers to install the latest Apache Maven version available.

Maven allows you to encrypt your servers' passwords. We highly recommend that you follow this guide to set your master password and use it to encrypt your ASF password in the next section.

ASF settings

Using the instructions from the previous step encrypt your Apache Nexus repository password and add the following servers to your ~/.m2/settings.xml file. You may already have other servers in this file, if not just create the file.

<?xml version="1.0" encoding="UTF-8"?>
      <username>{put your ASF username here}</username>
      <password>{put your encrypted password here}</password>
      <username>{put your ASF username here}</username>
      <password>{put your encrypted password here}</password>
        <!-- optional -->

Release steps

In the following, read


the version being released


the working directory containing the GIT clone repository for the branch under release (1_2_X or 2_0_X)


the working directory containing the GIT clone repository for the branch for site management (2_0_X)

Verify DBMSes and Java EE containers

This is an optional step.
These verifications take some time and have quite strong environment requirements. However, it is of fundamental importance to go through these at least once for every major release.

For more information please take a look at build instructions.

Prepare the source for release

  1. Clean up JIRA so the Fix Version in issues resolved since the last release includes this release version correctly. Also, transition any Resolved issues to the Closed state.
  2. From $SYNCOPE_RELEASE_DIR, update the CHANGES file, based on the text release reports from JIRA, then commit and push:
    git commit -m "Updating CHANGES for release" CHANGES
    git push
  3. From $SYNCOPE_SITE_DIR, update the src/site/xdoc/downloads.xml site page by changing the relevant URLs, then commit and push:
    git commit -m "Updating downloads site page for release" src/site/xdoc/downloads.xml
    git push

Prepare the release

Perform the steps below from $SYNCOPE_RELEASE_DIR.

  1. Do a dry run of the release:prepare step.
    mvn -P apache-release release:prepare -DdryRun=true
    The dry run will not commit any changes and gives you the opportunity to verify that the release process will complete as expected.

    If you cancel a release:prepare before it updates the pom.xml versions, then use the release:clean goal to just remove the extra files that were created.

  2. Verify that the release process completed as expected:
    1. The release plugin will create pom.xml.tag files which contain the changes that would have been committed. The only differences between pom.xml.tag and its corresponding pom.xml file should be the version number.
    2. If other formatting changes have been made you should review the changes and then commit them:
      git commit -a -m "Fixing formatting for release"
    3. Assuming the .tag files look OK you may proceed and do any other validation you feel necessary. The following list may be helpful:
      1. Check and make sure that the scm properties have the right version. Sometimes the scm location can be the previous version not the next version.
      2. Verify signatures: On Un*x platforms the following command can be executed:
        for file in `find . -type f -iname '*.asc'`
          gpg --verify ${file} 
        You'll need to look at the output to ensure it contains only good signatures:
        gpg: Good signature from ...
        gpg: Signature made ...
    4. Once any failures or required updates have been committed to GIT, rollback the release prepare files:
      mvn -P apache-release release:rollback
  3. Run the release:prepare step for real this time. You'll be prompted for the same version information and optionally your GPG passphrase again.
    mvn -P apache-release release:prepare
  4. Backup (zip or tar) your local release candidate directory in case you need to rollback the release after the next step is performed.
    cd ..
    tar -czf $VERSION.tar.gz $VERSION/
    cd $VERSION

Perform the release

  1. Staging artifacts
    svn co syncope-dist-dev
    cd syncope-dist-dev              
    mkdir $VERSION                  
    cd $VERSION
    cp $SYNCOPE_RELEASE_DIR/target/syncope-* .
    cp $SYNCOPE_RELEASE_DIR/target/syncope-* .
    cp $SYNCOPE_RELEASE_DIR/standalone/target/syncope-standalone-* .
    cp $SYNCOPE_RELEASE_DIR/standalone/target/syncope-standalone-* .
    cp $SYNCOPE_RELEASE_DIR/installer/target/syncope-installer-*-uber.jar .
    cp $SYNCOPE_RELEASE_DIR/installer/target/syncope-installer-*-uber.jar.asc .
    cp $SYNCOPE_RELEASE_DIR/deb/core/target/apache-syncope-*.deb .           
    cp $SYNCOPE_RELEASE_DIR/deb/core/target/apache-syncope-*.deb.asc .
    cp $SYNCOPE_RELEASE_DIR/deb/console/target/apache-syncope-console-*.deb .
    cp $SYNCOPE_RELEASE_DIR/deb/console/target/apache-syncope-console-*.deb.asc .
    # only for 2_0_X
    cp $SYNCOPE_RELEASE_DIR/deb/enduser/target/apache-syncope-enduser-*.deb .
    cp $SYNCOPE_RELEASE_DIR/deb/enduser/target/apache-syncope-enduser-*.deb.asc .
    cp $SYNCOPE_RELEASE_DIR/client/cli/target/syncope-client-cli-*.zip .
    cp $SYNCOPE_RELEASE_DIR/client/cli/target/syncope-client-cli-*.zip.asc .
    for file in `find . -type f -iname '*.asc'`
      gpg --verify ${file} 
    for file in `find . -name '*.deb' -or -name '*.jar' -or -name '*.zip'`; do
     openssl md5 $file | sed 's/.*= //' > $file.md5
     openssl sha1 $file | sed 's/.*= //' > $file.sha1
    cd ..
    svn add $VERSION
    svn commit -m "Staging artifacts for $VERSION vote"
  2. Staging site
    unzip $SYNCOPE_RELEASE_DIR/target/syncope-$
    cd syncope-$VERSION        
    mvn -PskipTests,all
    # if releasing from 1_2_X              
    mvn javadoc:aggregate
    cd common
    mvn -P offline-doc
    svn checkout site
    mvn -P site -Dsite.deploymentBaseUrl=file:///<absolute path to/site>/$VERSION
    cd <absolute path to/site>/$VERSION
    rm -f apidocs/2.html
    # if releasing from 1_2_X              
    cp -r <absolute path to syncope-$VERSION above>/target/site/apidocs apidocs/1.2              
    cp -r <absolute path to syncope-$VERSION above>/common/target/generated/wadl/ rest/1.2
    rm -rf apidocs/2.0
    rm -rf rest/2.0
    cd ..
    svn add $VERSION
    svn copy apidocs/2.0 $VERSION/apidocs/
    svn copy rest/2.0 $VERSION/rest/
    # else if releasing from 2_0_X
    cd ..
    svn add $VERSION
    svn copy apidocs/1.2 $VERSION/apidocs/
    svn copy rest/1.2 $VERSION/rest/
    svn commit -m "Staging site for release"
  3. From $SYNCOPE_RELEASE_DIR execute (this step will create a maven staging repository):
    mvn -P apache-release release:perform [<your_apache_uid>]

    If your local OS userid doesn't match your Apache userid, then you'll have to also override the value provided by the OS to Maven for the site-deploy step to work. This is known to work for Linux, but not for Mac and unknown for Windows.

    1. Verify the staged artifacts in the Nexus repository:
      2. Enterprise --> Staging
      3. Staging tab --> Name column --> org.apache.syncope
      4. Navigate through the artifact tree and make sure that all binary, javadoc, sources, and tests jars, as well as pomss, ... have .asc (GPG signature) and .md5 files
        The syncope-$ should likewise have signature and checksum files.
    2. Close the Nexus staging repo:
      2. Enterprise --> Staging
      3. Staging tab --> Name column --> org.apache.syncope
      4. Right click on the open org.apache.syncope-XXX staging repo and select Close.

Vote the release

  1. Create a VOTE email thread on syncope-dev to record votes as replies, e.g.:
    Subject: [VOTE] Apache Syncope $VERSION
    I've created a $VERSION release, with the following artifacts up for a vote:
    List of changes:;a=blob_plain;f=CHANGES;h=0a7fb550234f89f4ad315272cf934f2e050250f7;hb=acbc816bdd6a75b27d8fb12b46905fe07e2cd977              
    Staging artifacts:$VERSION
    Maven staging repo:
    Staging site:$VERSION/
    PGP release keys (signed using ABCDEFG):
    Vote will be open for 72 hours.
    [ ] +1  approve
    [ ] +0  no opinion
    [ ] -1  disapprove (and reason why)
  2. Create a DISCUSS email thread on syncope-dev for any vote questions, e.g.:
    Subject: [DISCUSS] Apache Syncope $VERSION
    Discussion thread for vote on $VERSION release, with GIT source tag (XXXXXXXXXXXXXXXX).
    For more information on the release process, check out
    Some of the things to check before voting are:
    - does "mvn apache-rat:check" pass on the source
    - can you build the contents of source release zip and GIT tag
    - do all of the staged jars/wars/zips contain the required LICENSE and NOTICE files
    - are all of the staged jars/wars/zips signed and the signature verifiable
    - is the signing key in the project's KEYS file and on a public server (i.e.
  3. Perform a review of the release and cast your vote; more details on Apache releases.
  4. A -1 vote does not necessarily mean that the vote must be redone, however it is usually a good idea to rollback the release if a -1 vote is received (see "Recovering from a vetoed release").
  5. After the vote has been open for at least 72 hours, has at least three +1 PMC votes and no -1 votes, then post the results to the vote thread:
    Subject: [RESULT] [VOTE] Apache Syncope $VERSION
    Hi all,
    after 72 hours, the vote for Syncope $VERSION [1] *passes*
    with ... PMC + ... non-PMC votes.
    +1 (PMC / binding)
    * ...
    +1 (non binding)
    * ... (or <none>)
    * ... (or <none>)
    * ... (or <none>)
    Thanks to everyone participating.
    I will now copy this release to Syncope' dist directory and promote the artifacts to the central Maven repository.
    Best regards.
    [1] <link to syncope-dev ML archives for the related [VOTE] thread>

Finalize the release

  1. Promote the staged Nexus artifacts:
    2. Enterprise --> Staging
    3. Staging tab --> Name column --> org.apache.syncope
    4. Right click on the closed org.apache.syncope-XXX staging repo and select Release.
  2. Add the distribution artifacts to the distribution area
    svn mv -m "Moving the voted release artifacts to dist/release" \$VERSION
    svn co syncope-dist-release
    cd syncope-dist-release
    svn rm <any older release artifact (if present)>
    svn commit -m "Cleaning up older releases"
  3. Add appropriate release notes to Releases wiki page based on the HTML release reports from JIRA
  4. Update the Create new project wiki page to point to the new release artifacts
  5. Update the JIRA versions page to mark the version as Released, and set the date to the date that the release was approved. You may also need to make a new release entry for the next release.
  6. Promote the staging site
    svn co
    cd site
    svn rm *.html apidocs rest css images img js fonts docs
    svn mv $VERSION/* .
    svn rm $VERSION
    svn commit -m "Promoting the staging site"

Announce the release

After the mirrors have had time to update (24 hours to be on the safe side), make an announcement about the release on the user, dev, and lists as per the Apache Announcement Mailing Lists page

Recovering from a vetoed release

  1. Reply to the initial vote email prepending [CANCELED] to the original subject.

  2. Rollback the version upgrades in trunk by either:

    1. restore the $VERSION.tar.gz and run
      mvn -P apache-release release:rollback
    2. or manually revert the version numbers in the branch under release to the prior version and commit
  3. Delete the GIT tag created by the release:perform step:

    git tag -d $VERSION && git push origin
  4. Delete the staging site:

    svn remove$VERSION -m "Deleting staging site from rolled back release"
  5. Drop the Nexus staging repo:

    2. Enterprise --> Staging
    3. Staging tab --> Name column --> org.apache.syncope
    4. Right click on the closed org.apache.syncope-XXX staging repo and select Drop.
  6. Make the required updates that caused the vote to be canceled.
  7. Spin another release attempt!