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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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>net.sourceforge.jtds</groupId>
  76. <artifactId>jtds</artifactId>
  77. <scope>provided</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.h2database</groupId>
  81. <artifactId>h2</artifactId>
  82. <scope>provided</scope>
  83. </dependency>
  84. <!-- default plugins -->
  85. <dependency>
  86. <groupId>org.sonarsource.java</groupId>
  87. <artifactId>sonar-java-plugin</artifactId>
  88. <type>sonar-plugin</type>
  89. <scope>provided</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.codehaus.sonar-plugins</groupId>
  93. <artifactId>sonar-scm-git-plugin</artifactId>
  94. <type>sonar-plugin</type>
  95. <scope>provided</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.codehaus.sonar-plugins</groupId>
  99. <artifactId>sonar-scm-svn-plugin</artifactId>
  100. <type>sonar-plugin</type>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.sonatype.jsw-binaries</groupId>
  105. <artifactId>jsw-binaries</artifactId>
  106. <version>3.2.3.6</version>
  107. <type>tar.gz</type>
  108. <scope>provided</scope>
  109. </dependency>
  110. <dependency>
  111. <!-- do not upgrade because of licensing change -->
  112. <groupId>tanukisoft</groupId>
  113. <artifactId>wrapper</artifactId>
  114. <version>3.2.3</version>
  115. <scope>provided</scope>
  116. </dependency>
  117. <!-- unit tests -->
  118. <dependency>
  119. <groupId>org.codehaus.sonar</groupId>
  120. <artifactId>sonar-testing-harness</artifactId>
  121. <scope>test</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.mockito</groupId>
  125. <artifactId>mockito-core</artifactId>
  126. <scope>test</scope>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.github.kevinsawicki</groupId>
  130. <artifactId>http-request</artifactId>
  131. <scope>test</scope>
  132. </dependency>
  133. </dependencies>
  134. <build>
  135. <plugins>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-jar-plugin</artifactId>
  139. <configuration>
  140. <archive>
  141. <index>true</index>
  142. <manifest>
  143. <addClasspath>false</addClasspath>
  144. <mainClass>org.sonar.application.App</mainClass>
  145. </manifest>
  146. <manifestEntries>
  147. <mode>distribution</mode>
  148. <url>${project.url}</url>
  149. </manifestEntries>
  150. </archive>
  151. </configuration>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-shade-plugin</artifactId>
  156. <executions>
  157. <execution>
  158. <phase>package</phase>
  159. <goals>
  160. <goal>shade</goal>
  161. </goals>
  162. <configuration>
  163. <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
  164. </configuration>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. <plugin>
  169. <artifactId>maven-assembly-plugin</artifactId>
  170. <executions>
  171. <execution>
  172. <phase>package</phase>
  173. <goals>
  174. <goal>single</goal>
  175. </goals>
  176. <configuration>
  177. <appendAssemblyId>false</appendAssemblyId>
  178. <finalName>sonarqube-${project.version}</finalName>
  179. <descriptors>
  180. <descriptor>assembly.xml</descriptor>
  181. </descriptors>
  182. <recompressZippedFiles>${assembly.recompressZippedFiles}</recompressZippedFiles>
  183. </configuration>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <plugin>
  188. <artifactId>maven-antrun-plugin</artifactId>
  189. <executions>
  190. <execution>
  191. <phase>package</phase>
  192. <configuration>
  193. <failOnError>${checksum.failOnError}</failOnError>
  194. <target>
  195. <checksum file="${project.build.directory}/sonarqube-${project.version}.zip" algorithm="md5" />
  196. <checksum file="${project.build.directory}/sonarqube-${project.version}.zip" algorithm="sha" />
  197. </target>
  198. </configuration>
  199. <goals>
  200. <goal>run</goal>
  201. </goals>
  202. </execution>
  203. </executions>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-enforcer-plugin</artifactId>
  208. <executions>
  209. <execution>
  210. <id>enforce-distribution-size</id>
  211. <goals>
  212. <goal>enforce</goal>
  213. </goals>
  214. <phase>verify</phase>
  215. <configuration>
  216. <rules>
  217. <requireFilesSize>
  218. <minsize>84000000</minsize>
  219. <maxsize>880000000</maxsize>
  220. <files>
  221. <file>${project.build.directory}/sonarqube-${project.version}.zip</file>
  222. </files>
  223. </requireFilesSize>
  224. </rules>
  225. </configuration>
  226. </execution>
  227. </executions>
  228. </plugin>
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-surefire-plugin</artifactId>
  232. <configuration>
  233. <skipTests>${skipServerTests}</skipTests>
  234. </configuration>
  235. </plugin>
  236. </plugins>
  237. </build>
  238. <profiles>
  239. <profile>
  240. <id>release</id>
  241. <build>
  242. <plugins>
  243. <plugin>
  244. <artifactId>maven-deploy-plugin</artifactId>
  245. <configuration>
  246. <skip>true</skip>
  247. </configuration>
  248. </plugin>
  249. </plugins>
  250. </build>
  251. </profile>
  252. <profile>
  253. <id>dev</id>
  254. <properties>
  255. <assembly.recompressZippedFiles>false</assembly.recompressZippedFiles>
  256. </properties>
  257. </profile>
  258. </profiles>
  259. </project>