Page tree

Versions Compared

Key

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

...

Section
titleUsing Unique Snapshot Versions

The qualifier of a deployed app is parsed with the date format specified by the qualifierDatePattern (which defaults to yyyyMMdd.HHmmss) and compared to the version of the app configured with the Apptools Maven Plugin.

The timestamp must be provided by the app's artifact. The Apptools Maven Plugin looks at the following locations (in the given order):

File in ArchiveTypeElement in FileFormat
atlassian-plugin.xmlXMLFirst element with name 'version'.As specified by the qualifierDatePattern.
META-INF/build.propertiesPropertiesProperty with name 'build.timestamp.millis'.long (ms)
META-INF/buildmetadata.xmlXMLFirst element with name 'timestamp'.long (ms)
META-INF/MANIFEST.MFJAR ManifestLast modified time of the file.long (ms)
Version Box
since0.1011.10

The lookup in atlassian-plugin.xml is provided since version 0.1011.10.

In case the Apptools Maven Plugin could evaluate the timestamp and determine that the deployed app is up-to-date the following is rendered:

Code Block
languagetext
themeMidnight
[INFO] App 'de.smartics.atlassian.confluence.smartics-doctype-addon-services' 
        with version '1.0.1-SNAPSHOT/1.0.1-20190325.160036 (local/deployed)' is up-to-date. 
        Use -DforceDeloy to override.

If -DdryRun is used and the local version is new, then the console shows the following:

Code Block
languagetext
themeMidnight
[INFO] If not in dryRun mode, app 'smartics-doctype-addon-services-1.0.1-SNAPSHOT.jar' would be deployed to 'https://example.com/confluence/rest/plugins/1.0/'.

...