You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.codehaus.sonar</groupId>
  7. <artifactId>sonar</artifactId>
  8. <version>5.2-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>sonar-plugin-api</artifactId>
  11. <packaging>jar</packaging>
  12. <name>SonarQube :: Plugin API</name>
  13. <properties>
  14. <sonar.clirr.reportPath>${project.build.directory}/clirr-report.txt</sonar.clirr.reportPath>
  15. </properties>
  16. <dependencies>
  17. <!--
  18. The following artifacts are shaded and relocated in an internal package.
  19. They are not visible by plugins
  20. -->
  21. <dependency>
  22. <groupId>com.google.code.gson</groupId>
  23. <artifactId>gson</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.google.guava</groupId>
  27. <artifactId>guava</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>commons-codec</groupId>
  31. <artifactId>commons-codec</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>commons-collections</groupId>
  35. <artifactId>commons-collections</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>commons-io</groupId>
  39. <artifactId>commons-io</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>commons-lang</groupId>
  43. <artifactId>commons-lang</artifactId>
  44. </dependency>
  45. <!--
  46. The following artifacts are shaded but not relocated. They
  47. are provided at runtime, so plugins can use them but
  48. can not change their version.
  49. Long-term target is to remove them from API. They should be
  50. embedded by plugins.
  51. -->
  52. <dependency>
  53. <groupId>org.codehaus.sonar</groupId>
  54. <artifactId>sonar-check-api</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.codehaus.sonar</groupId>
  58. <artifactId>sonar-colorizer</artifactId>
  59. <exclusions>
  60. <exclusion>
  61. <groupId>org.slf4j</groupId>
  62. <artifactId>slf4j-api</artifactId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.codehaus.sonar</groupId>
  68. <artifactId>sonar-duplications</artifactId>
  69. <exclusions>
  70. <exclusion>
  71. <groupId>org.slf4j</groupId>
  72. <artifactId>slf4j-api</artifactId>
  73. </exclusion>
  74. </exclusions>
  75. </dependency>
  76. <dependency>
  77. <!-- to be kept for backward-compatibility of org.sonar.api.design.Dependency -->
  78. <groupId>org.codehaus.sonar</groupId>
  79. <artifactId>sonar-graph</artifactId>
  80. </dependency>
  81. <!--
  82. Transitive dependencies available at runtime. They are not shaded with API
  83. as they are not managed by SonarSource. Versions should not be
  84. overridden by plugins though.
  85. -->
  86. <dependency>
  87. <groupId>org.codehaus.woodstox</groupId>
  88. <artifactId>woodstox-core-lgpl</artifactId>
  89. <exclusions>
  90. <exclusion>
  91. <groupId>stax</groupId>
  92. <artifactId>stax-api</artifactId>
  93. </exclusion>
  94. </exclusions>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.codehaus.woodstox</groupId>
  98. <artifactId>stax2-api</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.codehaus.staxmate</groupId>
  102. <artifactId>staxmate</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>jfree</groupId>
  106. <artifactId>jfreechart</artifactId>
  107. <scope>provided</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.google.code.findbugs</groupId>
  111. <artifactId>jsr305</artifactId>
  112. <scope>provided</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.slf4j</groupId>
  116. <artifactId>slf4j-api</artifactId>
  117. <optional>true</optional>
  118. <scope>provided</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>xpp3</groupId>
  122. <artifactId>xpp3</artifactId>
  123. <scope>provided</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>javax.servlet</groupId>
  127. <artifactId>javax.servlet-api</artifactId>
  128. <version>3.0.1</version>
  129. <scope>provided</scope>
  130. <optional>true</optional>
  131. </dependency>
  132. <dependency>
  133. <groupId>ch.qos.logback</groupId>
  134. <artifactId>logback-classic</artifactId>
  135. <scope>provided</scope>
  136. <optional>true</optional>
  137. </dependency>
  138. <dependency>
  139. <groupId>ch.qos.logback</groupId>
  140. <artifactId>logback-core</artifactId>
  141. <scope>provided</scope>
  142. <optional>true</optional>
  143. </dependency>
  144. <dependency>
  145. <groupId>junit</groupId>
  146. <artifactId>junit</artifactId>
  147. <scope>provided</scope>
  148. <optional>true</optional>
  149. </dependency>
  150. <!-- unit tests -->
  151. <dependency>
  152. <groupId>org.codehaus.sonar</groupId>
  153. <artifactId>sonar-testing-harness</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>xmlunit</groupId>
  158. <artifactId>xmlunit</artifactId>
  159. <scope>test</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.dbunit</groupId>
  163. <artifactId>dbunit</artifactId>
  164. <scope>test</scope>
  165. </dependency>
  166. </dependencies>
  167. <build>
  168. <plugins>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-shade-plugin</artifactId>
  172. <executions>
  173. <execution>
  174. <phase>package</phase>
  175. <goals>
  176. <goal>shade</goal>
  177. </goals>
  178. <configuration>
  179. <!-- can't minimize dependencies because of some classes of sonar-duplications
  180. that required by sonar-batch -->
  181. <minimizeJar>false</minimizeJar>
  182. <createDependencyReducedPom>true</createDependencyReducedPom>
  183. <artifactSet>
  184. <excludes>
  185. <exclude>org.codehaus.woodstox:woodstox-core-lgpl</exclude>
  186. <exclude>org.codehaus.woodstox:stax2-api</exclude>
  187. <exclude>org.codehaus.staxmate:staxmate</exclude>
  188. </excludes>
  189. </artifactSet>
  190. <relocations>
  191. <relocation>
  192. <pattern>com.google</pattern>
  193. <shadedPattern>org.sonar.api.internal.google</shadedPattern>
  194. </relocation>
  195. <relocation>
  196. <pattern>org.apache.commons</pattern>
  197. <shadedPattern>org.sonar.api.internal.apachecommons</shadedPattern>
  198. </relocation>
  199. </relocations>
  200. </configuration>
  201. </execution>
  202. </executions>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-jar-plugin</artifactId>
  207. <executions>
  208. <execution>
  209. <goals>
  210. <goal>test-jar</goal>
  211. </goals>
  212. </execution>
  213. </executions>
  214. </plugin>
  215. </plugins>
  216. <resources>
  217. <resource>
  218. <!-- Used to set SonarQube version in sq-version.txt file -->
  219. <directory>src/main/resources</directory>
  220. <filtering>true</filtering>
  221. </resource>
  222. </resources>
  223. </build>
  224. <profiles>
  225. <profile>
  226. <id>clirr</id>
  227. <activation>
  228. <property>
  229. <name>clirr</name>
  230. <value>true</value>
  231. </property>
  232. </activation>
  233. <build>
  234. <plugins>
  235. <plugin>
  236. <groupId>org.codehaus.mojo</groupId>
  237. <artifactId>clirr-maven-plugin</artifactId>
  238. <configuration>
  239. <comparisonVersion>4.5.2</comparisonVersion>
  240. <textOutputFile>${project.build.directory}/clirr-report.txt</textOutputFile>
  241. <linkXRef>false</linkXRef>
  242. <failOnError>false</failOnError>
  243. <excludes>
  244. <exclude>**/internal/**</exclude>
  245. </excludes>
  246. </configuration>
  247. <executions>
  248. <execution>
  249. <id>clirr</id>
  250. <goals>
  251. <goal>check-no-fork</goal>
  252. </goals>
  253. </execution>
  254. </executions>
  255. </plugin>
  256. </plugins>
  257. </build>
  258. </profile>
  259. </profiles>
  260. </project>