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.3KB

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