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

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