JIRA 7 is on the way and significant changes in API are announced. What do I have to change in my pom.xml esp. in the dependencies and properties section?
Update <jira.version>6.2</jira.version> to <jira.version>7.0.0-m01b
</jira.version> (and following atlas-mvn eclipse:eclipse and changes in your code regarding changes in API), okay. But what else?
See below for a typical pom.xml from my plugins using AO, UPM License Management, REST,
Best regards
Holger
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> ... <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>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.activeobjects</groupId> <artifactId>activeobjects-plugin</artifactId> <version>${ao.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-lib</artifactId> <version>${upm.license.compatibility.version}</version> <scope>compile</scope> </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>${sal.api.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.templaterenderer</groupId> <artifactId>atlassian-template-renderer-api</artifactId> <version>${atlassian.templaterenderer.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.4</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>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.6</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.1.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.8.5</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.3.3</version> </dependency> <dependency> <groupId>javax.ws.rs</groupId> <artifactId>jsr311-api</artifactId> <version>1.1.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.plugins.rest</groupId> <artifactId>atlassian-rest-common</artifactId> <version>1.0.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.wink</groupId> <artifactId>wink-client</artifactId> <version>1.1.3-incubating</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-jira-plugin</artifactId> <version>${amps.version}</version> <extensions>true</extensions> <configuration> <productVersion>${jira.version}</productVersion> <productDataVersion>${jira.version}</productDataVersion> <productDataPath>${basedir}/generated-test-resources.zip</productDataPath> <instructions> <Private-Package>com.atlassian.upm.license.storage.lib*</Private-Package> <DynamicImport-Package>com.atlassian.upm.api.license.entity;version="${upm.license.compatibility.version}", com.atlassian.upm.api.license;version="${upm.license.compatibility.version}", com.atlassian.upm.api.util;version="${upm.license.compatibility.version}", com.atlassian.upm.license.storage.plugin;version="${upm.license.compatibility.version}"</DynamicImport-Package> </instructions> <bundledArtifacts> <bundledArtifact> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-plugin</artifactId> <version>${upm.license.compatibility.version}</version> </bundledArtifact> </bundledArtifacts> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-amps-plugin</artifactId> <version>${amps.version}</version> <extensions>true</extensions> </plugin> <plugin> <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> </plugins> </build> <properties> <jira.version>6.2</jira.version> <amps.version>5.0.13</amps.version> <ao.version>0.19.7</ao.version> <upm.license.compatibility.version>2.1.5</upm.license.compatibility.version> <sal.api.version>2.4.0</sal.api.version> <atlassian.templaterenderer.version>1.0.5</atlassian.templaterenderer.version> </properties> </project>
Community moderators have prevented the ability to post new answers.
Please see here how to resolve com.oracle:ojdbc6:jar problem:
https://answers.atlassian.com/questions/24289952
Thanks for this idea! Because of the reply on AMPS-1275 I found out that I can use maven-amps-plugin:5.1.13, where this is dependency is no longer automatically appears. Therefor no manual add of odbj6.jar needed. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Removed copy-storage-plugin
including DynamicImport-Package
part which no longer needed and also is conflicting with Atlassian SDK 6.2.2 resp AMPS 6.2.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Switching to maven-amps-plugin:5.1.13 solved my dependency issues I am able to start JIRA 7 via atlas-run now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have changed <jira.version>7.0.0-m01b</jira.version> and <upm.license.compatibility.version>2.15</upm.license.compatibility.version>. I removed dependecy to plugin-license-storage-lib and plugin-license-storage-plugin. I changed version 2.3 to 2.5 for <groupId>javax.servlet</groupId>. Needed to update my java version to 1.7 resp. 1.8 jdk. Then atlas-mvn eclipse:eclipse and changing User to ApplicationUser and ThirdPartyPluginLicenseStorageManagerImpl to PluginLicenseManager. Then updated Atlassian SDK to 5.1.1 with AMPS 5.1.11. Therefore <amps.version>5.1.11</amps.version> I cannot start JIRA via atlas-run because of some dependency problems. AMPS-1276 - Unknown packaging: atlassian-plugin and AMPS-1275 - Unresolved dependency for maven-amps-plugin:5.1.11 to com.oracle:ojdbc6:jar:11.2.0.2.0. Any ideas, guys?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.