Hello guys,
We are having issues with our Licensed plugin, we are receiving the following exception on instalation:
I'll paste the pom.xml here, if you guys any insights we would be truly grateful.
Kind regards.
<build> <pluginManagement> <plugins> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-jira-plugin</artifactId> <version>${amps.version}</version> <extensions>true</extensions> <configuration> <instructions> <Private-Package> com.atlassian.upm.license.storage.lib* </Private-Package> <DynamicImport-Package> com.atlassian.upm.api.license;version="2.0.1", com.atlassian.upm.api.license.entity;version="2.0.1", com.atlassian.upm.api.util;version="2.0.1", com.atlassian.upm.license.storage.plugin;version="${upm.license.compatibility.version}" </DynamicImport-Package> </instructions> <productVersion>${jira.version}</productVersion> <productDataVersion>${jira.version}</productDataVersion> <bundledArtifacts> <bundledArtifact> <groupId>com.atlassian.upm</groupId> <artifactId>atlassian-universal-plugin-manager-plugin</artifactId> <version>1.6.3</version> </bundledArtifact> <bundledArtifact> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-plugin</artifactId> <version>${upm.license.compatibility.version}</version> </bundledArtifact> </bundledArtifacts> </configuration> </plugin> <plugin> <!-- Include the Plugin License Storage artifact such that it can be found on the classpath when we need to install it --> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-storage-plugin</id> <phase>process-resources</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.outputDirectory}</outputDirectory> <includeArtifactIds>plugin-license-storage-plugin</includeArtifactIds> <stripVersion>true</stripVersion> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </pluginManagement> </build> <dependencies> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-api</artifactId> <version>${jira.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-core</artifactId> <version>${jira.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-tests</artifactId> <version>${jira.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-func-tests</artifactId> <version>${jira.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.8.5</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.1.1</version> <scope>test</scope> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-lib</artifactId> <version>${upm.license.compatibility.version}</version> <scope>compile</scope> <!-- intentionally compile scoped --> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-plugin</artifactId> <version>${upm.license.compatibility.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>licensing-api</artifactId> <version>${upm.license.compatibility.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>upm-api</artifactId> <version>${upm.license.compatibility.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.sal</groupId> <artifactId>sal-api</artifactId> <version>2.4.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.springframework.osgi</groupId> <artifactId>spring-osgi-core</artifactId> <version>1.1.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.templaterenderer</groupId> <artifactId>atlassian-template-renderer-api</artifactId> <version>1.0.5</version> <scope>provided</scope> </dependency> </dependencies> <properties> <amps.version>3.10.2</amps.version> <jira.version>6.0</jira.version> <upm.license.compatibility.version>2.2.2</upm.license.compatibility.version> </properties>
Community moderators have prevented the ability to post new answers.
Hi Ariel,
To be honest, the best way to resolve this issue is by using the newer, easier-to-use licensing API instead of the Plugin License Storage API. See this tutorial [1] for more information and this Answers post [2] for a similar discussion.
Cheers,
Ben
[1] https://developer.atlassian.com/display/MARKET/Tutorial%253A+Adding+licensing+support+to+your+add-on
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.