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 9.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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.6-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-main</artifactId>
  27. <version>${project.version}</version>
  28. </dependency>
  29. <!--must declare this dependency of sonar-process-monitor here, again,-->
  30. <!--to allow copying it and its dependencies into lib/common-->
  31. <dependency>
  32. <groupId>org.elasticsearch.client</groupId>
  33. <artifactId>transport</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.google.code.findbugs</groupId>
  37. <artifactId>jsr305</artifactId>
  38. <scope>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>${project.groupId}</groupId>
  42. <artifactId>sonar-server</artifactId>
  43. <version>${project.version}</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>${project.groupId}</groupId>
  48. <artifactId>sonar-ce</artifactId>
  49. <version>${project.version}</version>
  50. <scope>provided</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>${project.groupId}</groupId>
  54. <artifactId>sonar-scanner-engine-shaded</artifactId>
  55. <version>${project.version}</version>
  56. <scope>provided</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>${project.groupId}</groupId>
  60. <artifactId>sonar-web</artifactId>
  61. <version>${project.version}</version>
  62. <type>war</type>
  63. <scope>provided</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.microsoft.sqlserver</groupId>
  67. <artifactId>mssql-jdbc</artifactId>
  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.sonarsource.php</groupId>
  118. <artifactId>sonar-php-plugin</artifactId>
  119. <type>sonar-plugin</type>
  120. <scope>provided</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.sonarsource.python</groupId>
  124. <artifactId>sonar-python-plugin</artifactId>
  125. <type>sonar-plugin</type>
  126. <scope>provided</scope>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.sonarsource.flex</groupId>
  130. <artifactId>sonar-flex-plugin</artifactId>
  131. <type>sonar-plugin</type>
  132. <scope>provided</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.sonarsource.xml</groupId>
  136. <artifactId>sonar-xml-plugin</artifactId>
  137. <type>sonar-plugin</type>
  138. <scope>provided</scope>
  139. </dependency>
  140. <dependency>
  141. <!-- do not upgrade because of licensing change -->
  142. <groupId>tanukisoft</groupId>
  143. <artifactId>wrapper</artifactId>
  144. <version>3.2.3</version>
  145. <scope>provided</scope>
  146. </dependency>
  147. <!-- unit tests -->
  148. <dependency>
  149. <groupId>junit</groupId>
  150. <artifactId>junit</artifactId>
  151. <scope>test</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.assertj</groupId>
  155. <artifactId>assertj-core</artifactId>
  156. <scope>test</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.mockito</groupId>
  160. <artifactId>mockito-core</artifactId>
  161. <scope>test</scope>
  162. </dependency>
  163. </dependencies>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-jar-plugin</artifactId>
  169. <configuration>
  170. <archive>
  171. <index>true</index>
  172. <manifest>
  173. <addClasspath>false</addClasspath>
  174. <mainClass>org.sonar.application.App</mainClass>
  175. </manifest>
  176. <manifestEntries>
  177. <mode>distribution</mode>
  178. <url>${project.url}</url>
  179. </manifestEntries>
  180. </archive>
  181. </configuration>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-shade-plugin</artifactId>
  186. <executions>
  187. <execution>
  188. <phase>package</phase>
  189. <goals>
  190. <goal>shade</goal>
  191. </goals>
  192. <configuration>
  193. <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
  194. <artifactSet>
  195. <!--excluding some transitive dependencies which are not necessary to the main process to create-->
  196. <!--a smaller jar and use less memory-->
  197. <excludes>
  198. <exclude>org.apache.lucene:lucene-analyzers-common</exclude>
  199. <exclude>org.apache.lucene:lucene-backward-codecs</exclude>
  200. <exclude>org.apache.lucene:lucene-grouping</exclude>
  201. <exclude>org.apache.lucene:lucene-memory</exclude>
  202. <exclude>org.apache.lucene:lucene-misc</exclude>
  203. <exclude>org.apache.lucene:lucene-spatial-extras</exclude>
  204. <exclude>org.apache.lucene:lucene-spatial3d</exclude>
  205. <exclude>org.elasticsearch.plugin:reindex-client</exclude>
  206. <exclude>org.elasticsearch.plugin:lang-mustache-client</exclude>
  207. <exclude>org.elasticsearch.plugin:percolator-client</exclude>
  208. <exclude>org.elasticsearch.plugin:transport-netty3-client</exclude>
  209. </excludes>
  210. </artifactSet>
  211. </configuration>
  212. </execution>
  213. </executions>
  214. </plugin>
  215. <plugin>
  216. <artifactId>maven-assembly-plugin</artifactId>
  217. <executions>
  218. <execution>
  219. <phase>package</phase>
  220. <goals>
  221. <goal>single</goal>
  222. </goals>
  223. <configuration>
  224. <appendAssemblyId>false</appendAssemblyId>
  225. <finalName>sonarqube-${project.version}</finalName>
  226. <descriptors>
  227. <descriptor>assembly.xml</descriptor>
  228. </descriptors>
  229. <recompressZippedFiles>${assembly.recompressZippedFiles}</recompressZippedFiles>
  230. </configuration>
  231. </execution>
  232. </executions>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.apache.maven.plugins</groupId>
  236. <artifactId>maven-enforcer-plugin</artifactId>
  237. <executions>
  238. <execution>
  239. <id>enforce-distribution-size</id>
  240. <goals>
  241. <goal>enforce</goal>
  242. </goals>
  243. <phase>verify</phase>
  244. <configuration>
  245. <rules>
  246. <requireFilesSize>
  247. <minsize>195000000</minsize>
  248. <maxsize>207000000</maxsize>
  249. <files>
  250. <file>${project.build.directory}/sonarqube-${project.version}.zip</file>
  251. </files>
  252. </requireFilesSize>
  253. </rules>
  254. </configuration>
  255. </execution>
  256. </executions>
  257. </plugin>
  258. </plugins>
  259. </build>
  260. <profiles>
  261. <profile>
  262. <id>dev</id>
  263. <properties>
  264. <assembly.recompressZippedFiles>false</assembly.recompressZippedFiles>
  265. </properties>
  266. </profile>
  267. </profiles>
  268. </project>