I've created a new plugin with atlas-create-stash-plugin, and a license servlet with atlas-create-stash-plugin-module.
Without modifying any code, starting Stash results in exceptions in the log and a webpage with the error
"Required plugin com.atlassian.upm.atlassian-universal-plugin-manager-plugin has failed to start"
The errors in the logs boil down to:
Failed to parse AuditLogEntry from JSON string: {"username":"Stash","date":1351165259890,"i18nKey":"upm.auditLog.upm.startup","entryType":"UPM_STARTUP","params":[]}
This is with SDK v4.0. UPM in Stash is v2.4.1, and the UPM version in the pom is 2.3 (but updating to 2.7.6 has the same outcome).
Community moderators have prevented the ability to post new answers.
The problem is a version mismatch between the project pom and the UPM version in Stash.
The solution to this problem is to update the UPM version in pom properties (to match the Stash UPM version):
<upm.license.compatibility.version>2.4.1</upm.license.compatibility.version>
And use the property in the bundled artifact (where it was previously 1.6.3).
<bundledArtifact> <groupId>com.atlassian.upm</groupId> <artifactId>atlassian-universal-plugin-manager-plugin</artifactId> <version>${upm.license.compatibility.version}</version> </bundledArtifact>
This was helpful, although with latest SDK, I had to update the UPM to the latest (2.7.0, right now) because there was no mismatch between the pom and the default Stash UPM version (2.4.1), but Stash wouldn't launch. After updating to 2.7.0 Stash will launch, the licensing works, etc., but I'm still seeing the error message in the logs. :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This problem can also be encountered after adding the licensing module with atlas-create-stash-plugin-module to a stash add-on. An ancient version of the UPM is bundled then. The UPM related bundle instructions need to be removed from the pom.
<!-- <bundledArtifact> <groupId>com.atlassian.upm</groupId> <artifactId>atlassian-universal-plugin-manager-plugin</artifactId> <version>1.6.3</version> </bundledArtifact> -->
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Ulrich,
The issue is tracked here: https://jira.atlassian.com/browse/STASH-2969 and we are going to update AMPS so that the atlas-create-stash-plugin-module goal behaves: https://ecosystem.atlassian.net/browse/AMPS-917
Cheers,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.