· 6 years ago · Jan 20, 2020, 09:26 PM
1<?xml version="1.0" encoding="UTF-8"?>
2
3<project xmlns="http://maven.apache.org/POM/4.0.0"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6
7 <modelVersion>4.0.0</modelVersion>
8 <groupId>com.test.demo</groupId>
9 <artifactId>myDemo</artifactId>
10 <version>1.0.0-SNAPSHOT</version>
11
12 <organization>
13 <name>Example Company</name>
14 <url>http://www.example.com/</url>
15 </organization>
16
17 <name>myDemo</name>
18 <description>This is the com.test.demo:myDemo plugin for Atlassian JIRA.</description>
19 <packaging>atlassian-plugin</packaging>
20
21 <dependencies>
22 <dependency>
23 <groupId>com.atlassian.jira</groupId>
24 <artifactId>jira-api</artifactId>
25 <version>${jira.version}</version>
26 <scope>provided</scope>
27 </dependency>
28 <!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. -->
29 <!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x -->
30 <!--
31 <dependency>
32 <groupId>com.atlassian.jira</groupId>
33 <artifactId>jira-core</artifactId>
34 <version>${jira.version}</version>
35 <scope>provided</scope>
36 </dependency>
37 -->
38 <dependency>
39 <groupId>junit</groupId>
40 <artifactId>junit</artifactId>
41 <version>4.10</version>
42 <scope>test</scope>
43 </dependency>
44
45 <dependency>
46 <groupId>com.atlassian.plugin</groupId>
47 <artifactId>atlassian-spring-scanner-annotation</artifactId>
48 <version>${atlassian.spring.scanner.version}</version>
49 <scope>compile</scope>
50 </dependency>
51
52 <dependency>
53 <groupId>com.atlassian.plugin</groupId>
54 <artifactId>atlassian-spring-scanner-runtime</artifactId>
55 <version>${atlassian.spring.scanner.version}</version>
56 <scope>runtime</scope>
57 </dependency>
58
59 <dependency>
60 <groupId>javax.inject</groupId>
61 <artifactId>javax.inject</artifactId>
62 <version>1</version>
63 <scope>provided</scope>
64 </dependency>
65
66 <!-- WIRED TEST RUNNER DEPENDENCIES -->
67 <dependency>
68 <groupId>com.atlassian.plugins</groupId>
69 <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
70 <version>${plugin.testrunner.version}</version>
71 <scope>test</scope>
72 </dependency>
73 <dependency>
74 <groupId>javax.ws.rs</groupId>
75 <artifactId>jsr311-api</artifactId>
76 <version>1.1.1</version>
77 <scope>provided</scope>
78 </dependency>
79 <dependency>
80 <groupId>com.google.code.gson</groupId>
81 <artifactId>gson</artifactId>
82 <version>2.2.2-atlassian-1</version>
83 </dependency>
84
85 <!-- Uncomment to use TestKit in your project. Details at https://bitbucket.org/atlassian/jira-testkit -->
86 <!-- You can read more about TestKit at https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Smarter+integration+testing+with+TestKit -->
87 <!--
88 <dependency>
89 <groupId>com.atlassian.jira.tests</groupId>
90 <artifactId>jira-testkit-client</artifactId>
91 <version>${testkit.version}</version>
92 <scope>test</scope>
93 </dependency>
94 -->
95 </dependencies>
96
97 <build>
98 <plugins>
99 <plugin>
100 <groupId>com.atlassian.maven.plugins</groupId>
101 <artifactId>jira-maven-plugin</artifactId>
102 <version>${amps.version}</version>
103 <extensions>true</extensions>
104 <configuration>
105 <productVersion>${jira.version}</productVersion>
106 <productDataVersion>${jira.version}</productDataVersion>
107 <!-- Uncomment to install TestKit backdoor in JIRA. -->
108 <!--
109 <pluginArtifacts>
110 <pluginArtifact>
111 <groupId>com.atlassian.jira.tests</groupId>
112 <artifactId>jira-testkit-plugin</artifactId>
113 <version>${testkit.version}</version>
114 </pluginArtifact>
115 </pluginArtifacts>
116 -->
117 <enableQuickReload>true</enableQuickReload>
118
119 <!-- See here for an explanation of default instructions: -->
120 <!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
121 <instructions>
122 <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
123
124 <!-- Add package to export here -->
125 <Export-Package>
126 com.test.demo.api,
127 </Export-Package>
128
129 <!-- Add package import here -->
130 <Import-Package>
131 org.springframework.osgi.*;resolution:="optional",
132 org.eclipse.gemini.blueprint.*;resolution:="optional",
133 *
134 </Import-Package>
135
136 <!-- Ensure plugin is spring powered -->
137 <Spring-Context>*</Spring-Context>
138 </instructions>
139 </configuration>
140 </plugin>
141
142 <plugin>
143 <groupId>com.atlassian.plugin</groupId>
144 <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
145 <version>${atlassian.spring.scanner.version}</version>
146 <executions>
147 <execution>
148 <goals>
149 <goal>atlassian-spring-scanner</goal>
150 </goals>
151 <phase>process-classes</phase>
152 </execution>
153 </executions>
154 <configuration>
155 <scannedDependencies>
156 <dependency>
157 <groupId>com.atlassian.plugin</groupId>
158 <artifactId>atlassian-spring-scanner-external-jar</artifactId>
159 </dependency>
160 </scannedDependencies>
161 <verbose>false</verbose>
162 </configuration>
163 </plugin>
164 </plugins>
165 </build>
166
167 <properties>
168 <jira.version>7.13.0</jira.version>
169 <amps.version>8.0.2</amps.version>
170 <plugin.testrunner.version>2.0.1</plugin.testrunner.version>
171 <atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version>
172 <!-- This property ensures consistency between the key in atlassian-plugin.xml and the OSGi bundle's key. -->
173 <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
174 <!-- TestKit version 6.x for JIRA 6.x -->
175 <testkit.version>6.3.11</testkit.version>
176 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
177 <maven.compiler.source>1.8</maven.compiler.source>
178 <maven.compiler.target>1.8</maven.compiler.target>
179 </properties>
180
181</project>