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.

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