Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <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">
  2. <modelVersion>4.0.0</modelVersion>
  3. <parent>
  4. <groupId>org.sonarsource.sonar-runner</groupId>
  5. <artifactId>sonar-runner</artifactId>
  6. <version>2.5-SNAPSHOT</version>
  7. </parent>
  8. <artifactId>sonar-runner-api</artifactId>
  9. <name>SonarQube Runner - API</name>
  10. <dependencies>
  11. <!-- Dependencies with scope "compile" are shaded and removed from transitive dependencies-->
  12. <dependency>
  13. <groupId>com.github.kevinsawicki</groupId>
  14. <artifactId>http-request</artifactId>
  15. </dependency>
  16. <dependency>
  17. <groupId>com.google.code.findbugs</groupId>
  18. <artifactId>jsr305</artifactId>
  19. <scope>provided</scope>
  20. </dependency>
  21. <dependency>
  22. <groupId>commons-io</groupId>
  23. <artifactId>commons-io</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>${project.groupId}</groupId>
  27. <artifactId>sonar-runner-batch</artifactId>
  28. <version>${project.version}</version>
  29. <scope>provided</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>${project.groupId}</groupId>
  33. <artifactId>sonar-runner-batch-interface</artifactId>
  34. <version>${project.version}</version>
  35. </dependency>
  36. <!-- unit tests -->
  37. <dependency>
  38. <groupId>junit</groupId>
  39. <artifactId>junit</artifactId>
  40. <scope>test</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.easytesting</groupId>
  44. <artifactId>fest-assert</artifactId>
  45. <scope>test</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.mockito</groupId>
  49. <artifactId>mockito-all</artifactId>
  50. <scope>test</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.assertj</groupId>
  54. <artifactId>assertj-core</artifactId>
  55. <version>2.2.0</version>
  56. <scope>test</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.mortbay.jetty</groupId>
  60. <artifactId>jetty</artifactId>
  61. <version>6.1.25</version>
  62. <scope>test</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>commons-lang</groupId>
  66. <artifactId>commons-lang</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <!-- used to compare results -->
  71. <groupId>commons-codec</groupId>
  72. <artifactId>commons-codec</artifactId>
  73. <scope>test</scope>
  74. </dependency>
  75. </dependencies>
  76. <build>
  77. <resources>
  78. <resource>
  79. <directory>src/main/resources</directory>
  80. <filtering>true</filtering>
  81. </resource>
  82. </resources>
  83. <plugins>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-jar-plugin</artifactId>
  87. <configuration>
  88. <archive>
  89. <!-- Use the MANIFEST generated by maven-bundle-plugin -->
  90. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  91. <manifest>
  92. <addClasspath>true</addClasspath>
  93. </manifest>
  94. </archive>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-dependency-plugin</artifactId>
  100. <executions>
  101. <execution>
  102. <id>copy</id>
  103. <phase>process-resources</phase>
  104. <goals>
  105. <goal>copy</goal>
  106. </goals>
  107. <configuration>
  108. <artifactItems>
  109. <artifactItem>
  110. <groupId>${project.groupId}</groupId>
  111. <artifactId>sonar-runner-batch</artifactId>
  112. <version>${project.version}</version>
  113. <type>jar</type>
  114. <overWrite>false</overWrite>
  115. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  116. <destFileName>sonar-runner-batch.jar</destFileName>
  117. </artifactItem>
  118. </artifactItems>
  119. <overWriteReleases>true</overWriteReleases>
  120. <overWriteSnapshots>true</overWriteSnapshots>
  121. </configuration>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-shade-plugin</artifactId>
  128. <executions>
  129. <execution>
  130. <phase>package</phase>
  131. <goals>
  132. <goal>shade</goal>
  133. </goals>
  134. <configuration>
  135. <createDependencyReducedPom>true</createDependencyReducedPom>
  136. <minimizeJar>true</minimizeJar>
  137. <relocations>
  138. <relocation>
  139. <pattern>com.github.kevinsawicki.http</pattern>
  140. <shadedPattern>org.sonar.runner.kevinsawicki</shadedPattern>
  141. </relocation>
  142. <relocation>
  143. <pattern>org.apache.commons.io</pattern>
  144. <shadedPattern>org.sonar.runner.commonsio</shadedPattern>
  145. </relocation>
  146. <relocation>
  147. <pattern>org.sonar.home</pattern>
  148. <shadedPattern>org.sonar.runner.home</shadedPattern>
  149. </relocation>
  150. </relocations>
  151. </configuration>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. <plugin>
  156. <groupId>org.apache.felix</groupId>
  157. <artifactId>maven-bundle-plugin</artifactId>
  158. <version>2.3.7</version>
  159. <extensions>true</extensions>
  160. <configuration>
  161. <instructions>
  162. <Import-Package>!*</Import-Package>
  163. <Export-Package>!.,org.sonar.runner.api</Export-Package>
  164. <Bundle-RequiredExecutionEnvironment>JavaSE-1.7</Bundle-RequiredExecutionEnvironment>
  165. </instructions>
  166. </configuration>
  167. <executions>
  168. <execution>
  169. <id>bundle-manifest</id>
  170. <phase>process-classes</phase>
  171. <goals>
  172. <goal>manifest</goal>
  173. </goals>
  174. </execution>
  175. </executions>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-release-plugin</artifactId>
  180. <configuration>
  181. <releaseProfiles>sign</releaseProfiles>
  182. </configuration>
  183. </plugin>
  184. </plugins>
  185. </build>
  186. <profiles>
  187. <profile>
  188. <id>sign</id>
  189. <build>
  190. <plugins>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-jarsigner-plugin</artifactId>
  194. <version>1.4</version>
  195. <executions>
  196. <execution>
  197. <id>sign</id>
  198. <goals>
  199. <goal>sign</goal>
  200. </goals>
  201. </execution>
  202. </executions>
  203. <configuration>
  204. <alias>sonarsource-codesign-2015-2017</alias>
  205. </configuration>
  206. </plugin>
  207. </plugins>
  208. </build>
  209. </profile>
  210. </profiles>
  211. </project>