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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <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/maven-v4_0_0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <parent>
  4. <groupId>org.sonarsource.parent</groupId>
  5. <artifactId>parent</artifactId>
  6. <version>54</version>
  7. </parent>
  8. <groupId>org.sonarsource.scanner.cli</groupId>
  9. <artifactId>sonar-scanner-cli</artifactId>
  10. <version>4.3-SNAPSHOT</version>
  11. <packaging>jar</packaging>
  12. <name>SonarQube Scanner</name>
  13. <url>http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner</url>
  14. <inceptionYear>2011</inceptionYear>
  15. <organization>
  16. <name>SonarSource</name>
  17. <url>http://www.sonarsource.com</url>
  18. </organization>
  19. <licenses>
  20. <license>
  21. <name>GNU LGPL 3</name>
  22. <url>http://www.gnu.org/licenses/lgpl.txt</url>
  23. <distribution>repo</distribution>
  24. </license>
  25. </licenses>
  26. <scm>
  27. <connection>scm:git:git@github.com:SonarSource/sonar-scanner-cli.git</connection>
  28. <developerConnection>scm:git:git@github.com:SonarSource/sonar-scanner-cli.git</developerConnection>
  29. <url>https://github.com/SonarSource/sonar-scanner-cli</url>
  30. <tag>HEAD</tag>
  31. </scm>
  32. <issueManagement>
  33. <system>JIRA</system>
  34. <url>https://jira.sonarsource.com/browse/SQSCANNER</url>
  35. </issueManagement>
  36. <properties>
  37. <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
  38. <!-- used for deployment to SonarSource Artifactory -->
  39. <gitRepositoryName>sonar-scanner-cli</gitRepositoryName>
  40. <!-- configuration for assembly of distributions -->
  41. <unpack.dir>${project.build.directory}/unpack</unpack.dir>
  42. <scanner.jar>${project.build.finalName}.jar</scanner.jar>
  43. <jre.dirname.linux>jdk-11.0.3+7-jre</jre.dirname.linux>
  44. <jre.dirname.windows>jdk-11.0.3+7-jre</jre.dirname.windows>
  45. <jre.dirname.macosx>jdk-11.0.3+7-jre/Contents/Home</jre.dirname.macosx>
  46. <!-- Release: enable publication to Bintray -->
  47. <artifactsToPublish>${project.groupId}:${project.artifactId}:zip,${project.groupId}:${project.artifactId}:zip:linux,${project.groupId}:${project.artifactId}:zip:windows,${project.groupId}:${project.artifactId}:zip:macosx</artifactsToPublish>
  48. </properties>
  49. <dependencies>
  50. <dependency>
  51. <groupId>org.sonarsource.scanner.api</groupId>
  52. <artifactId>sonar-scanner-api</artifactId>
  53. <version>2.15.0.2182</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.google.code.findbugs</groupId>
  57. <artifactId>jsr305</artifactId>
  58. <version>2.0.3</version>
  59. <scope>provided</scope>
  60. </dependency>
  61. <!-- Unit tests -->
  62. <dependency>
  63. <groupId>junit</groupId>
  64. <artifactId>junit</artifactId>
  65. <version>4.12</version>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>commons-lang</groupId>
  70. <artifactId>commons-lang</artifactId>
  71. <version>2.6</version>
  72. <scope>test</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.assertj</groupId>
  76. <artifactId>assertj-core</artifactId>
  77. <version>3.9.1</version>
  78. <scope>test</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.mockito</groupId>
  82. <artifactId>mockito-core</artifactId>
  83. <version>2.22.0</version>
  84. <scope>test</scope>
  85. </dependency>
  86. </dependencies>
  87. <build>
  88. <resources>
  89. <resource>
  90. <directory>src/main/resources</directory>
  91. <filtering>true</filtering>
  92. </resource>
  93. </resources>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-jar-plugin</artifactId>
  98. <configuration>
  99. <archive>
  100. <manifest>
  101. <addClasspath>false</addClasspath>
  102. <mainClass>org.sonarsource.scanner.cli.Main</mainClass>
  103. </manifest>
  104. </archive>
  105. </configuration>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-shade-plugin</artifactId>
  110. <executions>
  111. <execution>
  112. <phase>package</phase>
  113. <goals>
  114. <goal>shade</goal>
  115. </goals>
  116. <configuration>
  117. <createDependencyReducedPom>true</createDependencyReducedPom>
  118. <minimizeJar>true</minimizeJar>
  119. </configuration>
  120. </execution>
  121. </executions>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-assembly-plugin</artifactId>
  126. <executions>
  127. <execution>
  128. <id>cli</id>
  129. <phase>package</phase>
  130. <goals>
  131. <goal>single</goal>
  132. </goals>
  133. <configuration>
  134. <finalName>sonar-scanner-${project.version}</finalName>
  135. <appendAssemblyId>false</appendAssemblyId>
  136. <escapeString>\</escapeString>
  137. <descriptors>
  138. <descriptor>src/main/assembly/noarch.xml</descriptor>
  139. </descriptors>
  140. <filters>
  141. <filter>src/main/assembly/filter-noarch.properties</filter>
  142. </filters>
  143. </configuration>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-enforcer-plugin</artifactId>
  150. <executions>
  151. <execution>
  152. <id>enforce-distribution-size</id>
  153. <goals>
  154. <goal>enforce</goal>
  155. </goals>
  156. <phase>verify</phase>
  157. <configuration>
  158. <rules>
  159. <requireFilesSize>
  160. <minsize>560000</minsize>
  161. <maxsize>590000</maxsize>
  162. <files>
  163. <file>${project.build.directory}/sonar-scanner-${project.version}.zip</file>
  164. </files>
  165. </requireFilesSize>
  166. </rules>
  167. </configuration>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-javadoc-plugin</artifactId>
  174. <configuration>
  175. <source>8</source>
  176. </configuration>
  177. </plugin>
  178. </plugins>
  179. </build>
  180. <profiles>
  181. <profile>
  182. <id>it</id>
  183. <modules>
  184. <module>it</module>
  185. </modules>
  186. </profile>
  187. <profile>
  188. <id>dist-linux</id>
  189. <build>
  190. <plugins>
  191. <plugin>
  192. <groupId>com.googlecode.maven-download-plugin</groupId>
  193. <artifactId>download-maven-plugin</artifactId>
  194. <version>1.4.2</version>
  195. <executions>
  196. <execution>
  197. <id>unpack-linux</id>
  198. <phase>package</phase>
  199. <goals>
  200. <goal>wget</goal>
  201. </goals>
  202. <configuration>
  203. <url>https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.3%2B7/OpenJDK11U-jre_x64_linux_hotspot_11.0.3_7.tar.gz</url>
  204. <unpack>true</unpack>
  205. <outputDirectory>${unpack.dir}/linux</outputDirectory>
  206. <sha512>b7232a3c75a8c4e67f51bd95c8441026b2bfef29cc779768a5f2d300208dc569d672402e06a2d6c6f512450723bc0631c5a18cde80cbc1ec2028c123607df30f</sha512>
  207. </configuration>
  208. </execution>
  209. </executions>
  210. </plugin>
  211. <plugin>
  212. <artifactId>maven-assembly-plugin</artifactId>
  213. <executions>
  214. <execution>
  215. <id>assemble-linux</id>
  216. <phase>package</phase>
  217. <goals>
  218. <goal>single</goal>
  219. </goals>
  220. <configuration>
  221. <finalName>sonar-scanner-${project.version}</finalName>
  222. <escapeString>\</escapeString>
  223. <descriptors>
  224. <descriptor>src/main/assembly/dist-linux.xml</descriptor>
  225. </descriptors>
  226. <filters>
  227. <filter>src/main/assembly/filter-dist.properties</filter>
  228. </filters>
  229. </configuration>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. </plugins>
  234. </build>
  235. </profile>
  236. <profile>
  237. <id>dist-windows</id>
  238. <build>
  239. <plugins>
  240. <plugin>
  241. <groupId>com.googlecode.maven-download-plugin</groupId>
  242. <artifactId>download-maven-plugin</artifactId>
  243. <version>1.4.2</version>
  244. <executions>
  245. <execution>
  246. <id>unpack-windows</id>
  247. <phase>package</phase>
  248. <goals>
  249. <goal>wget</goal>
  250. </goals>
  251. <configuration>
  252. <url>https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.3%2B7/OpenJDK11U-jre_x64_windows_hotspot_11.0.3_7.zip</url>
  253. <unpack>true</unpack>
  254. <outputDirectory>${unpack.dir}/windows</outputDirectory>
  255. <sha512>370100688282a5c43fe0ac736980eeff64cf212a0fb573181fff8039c121097cbbbd540a652cc6d17397789b894c820b802b875bbd1743eb2b8469009d5fa8f9</sha512>
  256. </configuration>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. <plugin>
  261. <artifactId>maven-assembly-plugin</artifactId>
  262. <executions>
  263. <execution>
  264. <id>assemble-windows</id>
  265. <phase>package</phase>
  266. <goals>
  267. <goal>single</goal>
  268. </goals>
  269. <configuration>
  270. <finalName>sonar-scanner-${project.version}</finalName>
  271. <escapeString>\</escapeString>
  272. <descriptors>
  273. <descriptor>src/main/assembly/dist-windows.xml</descriptor>
  274. </descriptors>
  275. <filters>
  276. <filter>src/main/assembly/filter-dist.properties</filter>
  277. </filters>
  278. </configuration>
  279. </execution>
  280. </executions>
  281. </plugin>
  282. </plugins>
  283. </build>
  284. </profile>
  285. <profile>
  286. <id>dist-macosx</id>
  287. <build>
  288. <plugins>
  289. <plugin>
  290. <groupId>com.googlecode.maven-download-plugin</groupId>
  291. <artifactId>download-maven-plugin</artifactId>
  292. <version>1.4.2</version>
  293. <executions>
  294. <execution>
  295. <id>unpack-macosx</id>
  296. <phase>package</phase>
  297. <goals>
  298. <goal>wget</goal>
  299. </goals>
  300. <configuration>
  301. <url>https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.3%2B7/OpenJDK11U-jre_x64_mac_hotspot_11.0.3_7.tar.gz</url>
  302. <unpack>true</unpack>
  303. <outputDirectory>${unpack.dir}/macosx</outputDirectory>
  304. <sha512>5995c18fa0f2ef9d74c9fb38401d497b16e78b57eaf5b795f19724a8c1f6609add96355627b8cb0564d29421a63d830df11f932b76436a713a535a1253e745e6</sha512>
  305. </configuration>
  306. </execution>
  307. </executions>
  308. </plugin>
  309. <plugin>
  310. <artifactId>maven-assembly-plugin</artifactId>
  311. <executions>
  312. <execution>
  313. <id>assemble-macosx</id>
  314. <phase>package</phase>
  315. <goals>
  316. <goal>single</goal>
  317. </goals>
  318. <configuration>
  319. <finalName>sonar-scanner-${project.version}</finalName>
  320. <escapeString>\</escapeString>
  321. <descriptors>
  322. <descriptor>src/main/assembly/dist-macosx.xml</descriptor>
  323. </descriptors>
  324. <filters>
  325. <filter>src/main/assembly/filter-dist.properties</filter>
  326. </filters>
  327. </configuration>
  328. </execution>
  329. </executions>
  330. </plugin>
  331. </plugins>
  332. </build>
  333. </profile>
  334. </profiles>
  335. </project>