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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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-application</artifactId>
  10. <packaging>jar</packaging>
  11. <name>SonarQube :: Application</name>
  12. <description>Package the standalone distribution</description>
  13. <properties>
  14. <assembly.recompressZippedFiles>true</assembly.recompressZippedFiles>
  15. <assembly.format>zip</assembly.format>
  16. <checksum.failOnError>true</checksum.failOnError>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.codehaus.sonar</groupId>
  21. <artifactId>sonar-process</artifactId>
  22. <version>${project.version}</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.codehaus.sonar</groupId>
  26. <artifactId>sonar-process-monitor</artifactId>
  27. <version>${project.version}</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.google.code.findbugs</groupId>
  31. <artifactId>jsr305</artifactId>
  32. <scope>provided</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.elasticsearch</groupId>
  36. <artifactId>elasticsearch</artifactId>
  37. <scope>provided</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.codehaus.sonar</groupId>
  41. <artifactId>sonar-server</artifactId>
  42. <version>${project.version}</version>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.codehaus.sonar</groupId>
  47. <artifactId>sonar-search</artifactId>
  48. <version>${project.version}</version>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.codehaus.sonar</groupId>
  53. <artifactId>sonar-batch-shaded</artifactId>
  54. <version>${project.version}</version>
  55. <scope>provided</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.codehaus.sonar</groupId>
  59. <artifactId>sonar-web</artifactId>
  60. <version>${project.version}</version>
  61. <type>war</type>
  62. <scope>provided</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>mysql</groupId>
  66. <artifactId>mysql-connector-java</artifactId>
  67. <scope>provided</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.postgresql</groupId>
  71. <artifactId>postgresql</artifactId>
  72. <scope>provided</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.h2database</groupId>
  76. <artifactId>h2</artifactId>
  77. <scope>provided</scope>
  78. </dependency>
  79. <!-- default plugins -->
  80. <dependency>
  81. <groupId>org.sonarsource.java</groupId>
  82. <artifactId>sonar-java-plugin</artifactId>
  83. <type>sonar-plugin</type>
  84. <scope>provided</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.codehaus.sonar-plugins</groupId>
  88. <artifactId>sonar-scm-git-plugin</artifactId>
  89. <type>sonar-plugin</type>
  90. <scope>provided</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.sonarsource.scm.svn</groupId>
  94. <artifactId>sonar-scm-svn-plugin</artifactId>
  95. <type>sonar-plugin</type>
  96. <scope>provided</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.sonatype.jsw-binaries</groupId>
  100. <artifactId>jsw-binaries</artifactId>
  101. <version>3.2.3.6</version>
  102. <type>tar.gz</type>
  103. <scope>provided</scope>
  104. </dependency>
  105. <dependency>
  106. <!-- do not upgrade because of licensing change -->
  107. <groupId>tanukisoft</groupId>
  108. <artifactId>wrapper</artifactId>
  109. <version>3.2.3</version>
  110. <scope>provided</scope>
  111. </dependency>
  112. <!-- unit tests -->
  113. <dependency>
  114. <groupId>org.codehaus.sonar</groupId>
  115. <artifactId>sonar-testing-harness</artifactId>
  116. <scope>test</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.mockito</groupId>
  120. <artifactId>mockito-core</artifactId>
  121. <scope>test</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.github.kevinsawicki</groupId>
  125. <artifactId>http-request</artifactId>
  126. <scope>test</scope>
  127. </dependency>
  128. </dependencies>
  129. <build>
  130. <plugins>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-jar-plugin</artifactId>
  134. <configuration>
  135. <archive>
  136. <index>true</index>
  137. <manifest>
  138. <addClasspath>false</addClasspath>
  139. <mainClass>org.sonar.application.App</mainClass>
  140. </manifest>
  141. <manifestEntries>
  142. <mode>distribution</mode>
  143. <url>${project.url}</url>
  144. </manifestEntries>
  145. </archive>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-shade-plugin</artifactId>
  151. <executions>
  152. <execution>
  153. <phase>package</phase>
  154. <goals>
  155. <goal>shade</goal>
  156. </goals>
  157. <configuration>
  158. <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
  159. </configuration>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. <plugin>
  164. <artifactId>maven-assembly-plugin</artifactId>
  165. <executions>
  166. <execution>
  167. <phase>package</phase>
  168. <goals>
  169. <goal>single</goal>
  170. </goals>
  171. <configuration>
  172. <appendAssemblyId>false</appendAssemblyId>
  173. <finalName>sonarqube-${project.version}</finalName>
  174. <descriptors>
  175. <descriptor>assembly.xml</descriptor>
  176. </descriptors>
  177. <recompressZippedFiles>${assembly.recompressZippedFiles}</recompressZippedFiles>
  178. </configuration>
  179. </execution>
  180. </executions>
  181. </plugin>
  182. <plugin>
  183. <artifactId>maven-antrun-plugin</artifactId>
  184. <executions>
  185. <execution>
  186. <phase>package</phase>
  187. <configuration>
  188. <failOnError>${checksum.failOnError}</failOnError>
  189. <target>
  190. <checksum file="${project.build.directory}/sonarqube-${project.version}.zip" algorithm="md5" />
  191. <checksum file="${project.build.directory}/sonarqube-${project.version}.zip" algorithm="sha" />
  192. </target>
  193. </configuration>
  194. <goals>
  195. <goal>run</goal>
  196. </goals>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-enforcer-plugin</artifactId>
  203. <executions>
  204. <execution>
  205. <id>enforce-distribution-size</id>
  206. <goals>
  207. <goal>enforce</goal>
  208. </goals>
  209. <phase>verify</phase>
  210. <configuration>
  211. <rules>
  212. <requireFilesSize>
  213. <minsize>84000000</minsize>
  214. <maxsize>880000000</maxsize>
  215. <files>
  216. <file>${project.build.directory}/sonarqube-${project.version}.zip</file>
  217. </files>
  218. </requireFilesSize>
  219. </rules>
  220. </configuration>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-surefire-plugin</artifactId>
  227. <configuration>
  228. <skipTests>${skipServerTests}</skipTests>
  229. </configuration>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. <profiles>
  234. <profile>
  235. <id>release</id>
  236. <build>
  237. <plugins>
  238. <plugin>
  239. <artifactId>maven-deploy-plugin</artifactId>
  240. <configuration>
  241. <skip>true</skip>
  242. </configuration>
  243. </plugin>
  244. </plugins>
  245. </build>
  246. </profile>
  247. <profile>
  248. <id>dev</id>
  249. <properties>
  250. <assembly.recompressZippedFiles>false</assembly.recompressZippedFiles>
  251. </properties>
  252. </profile>
  253. </profiles>
  254. </project>