All proposed changes to the archetypes should be done on develop
or a branch created from develop
.
To test, you'll want the archetype in a local catalog so that it can be found prior to publishing. In the archetype directory:
mvn clean install archetype:update-local-catalog
Then run a test by executing the following elsewhere:
mvn archetype:generate -DarchetypeCatalog=local
- Request membership to the Attivio Bintray organization from an Attivio contact.
- Use the Bintray Set Me Up feature to generate the appropriate Maven server settings in your local Maven
settings.xml
config file.
If releasing a new version of the archetypes:
-
Checkout the
master
branch. -
Configure the release version in the Maven poms:
mvn -B versions:set -DnewVersion=<version> mvn -B versions:set-property -Dproperty=attivio.version -DnewVersion=<version>
where
<version>
is the four-field version of the Attivio SDK release with which this archetype release is associated. -
Commit the changes locally:
git commit -am "Archetype <version> release" git tag -a archetypes-<version>
where
<version>
is the four-field version of the Attivio SDK release with which this archetype release is associated. -
Create a release branch for the new version:
git branch release/<version>
where
<version>
is theMajor.Minor.Point
version of the Attivio Platform release with which this archetype release is associated. -
Continue to the procedure Performing the Release.
If releasing an update to an existing version of the archetypes:
-
Checkout the branch:
git checkout <branch>
-
Increment the version:
mvn versions:set -DnewVersion=<version> mvn versions:set-property -Dproperty=attivio.version -DnewVersion=<version>
where
<version>
is the four-field version of the Attivio SDK release with which this archetype release is associated. -
Commit the changes locally:
git commit -m "Archetype <version> release" git tag -a archetypes-<version>
where
<version>
is the four-field version of the Attivio SDK release with which this archetype release is associated. -
Continue to the procedure Performing the Release.
-
Deploy the release artifacts to Bintray:
mvn deploy [ -s </path/to/settings> ]
where
[ -s </path/to/settings> ]
is an optional argument to Maven specifying asettings.xml
containing the appropriate credentials for Bintray. -
Push to GitHub:
git push --tags
Note: Perform this procedure only for new versions.
-
Checkout the
develop
branch -
Increment the development version:
mvn versions:set -DnewVersion=<next-version> mvn versions:set-property -Dproperty=attivio.version -DnewVersion=<next-version>
where
<next-version>
is the nextSNAPSHOT
version.