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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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>63.0.187</version>
  7. </parent>
  8. <groupId>org.sonarsource.scanner.cli</groupId>
  9. <artifactId>sonar-scanner-cli</artifactId>
  10. <version>4.8-SNAPSHOT</version>
  11. <packaging>jar</packaging>
  12. <name>SonarScanner CLI</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. <ciManagement>
  37. <system>cirrus-ci</system>
  38. <url>https://cirrus-ci.com/github/SonarSource/sonar-scanner-cli</url>
  39. </ciManagement>
  40. <properties>
  41. <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
  42. <!-- used for deployment to SonarSource Artifactory -->
  43. <gitRepositoryName>sonar-scanner-cli</gitRepositoryName>
  44. <!-- configuration for assembly of distributions -->
  45. <unpack.dir>${project.build.directory}/unpack</unpack.dir>
  46. <scanner.jar>${project.build.finalName}.jar</scanner.jar>
  47. <jre.dirname.linux>jdk-11.0.14.1+1-jre</jre.dirname.linux>
  48. <jre.dirname.windows>jdk-11.0.14.1+1-jre</jre.dirname.windows>
  49. <jre.dirname.macosx>jdk-11.0.14.1+1-jre/Contents/Home</jre.dirname.macosx>
  50. <!-- Release: enable publication to Bintray -->
  51. <artifactsToPublish>${project.groupId}:${project.artifactId}:zip,${project.groupId}:${project.artifactId}:zip:linux,${project.groupId}:${project.artifactId}:zip:windows,${project.groupId}:${project.artifactId}:zip:macosx,${project.groupId}:${project.artifactId}:json:cyclonedx</artifactsToPublish>
  52. <maven.compiler.release>8</maven.compiler.release>
  53. </properties>
  54. <dependencies>
  55. <dependency>
  56. <groupId>org.sonarsource.scanner.api</groupId>
  57. <artifactId>sonar-scanner-api</artifactId>
  58. <version>2.16.2.588</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.google.code.findbugs</groupId>
  62. <artifactId>jsr305</artifactId>
  63. <version>2.0.3</version>
  64. <scope>provided</scope>
  65. </dependency>
  66. <!-- Unit tests -->
  67. <dependency>
  68. <groupId>junit</groupId>
  69. <artifactId>junit</artifactId>
  70. <version>4.13.1</version>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>commons-lang</groupId>
  75. <artifactId>commons-lang</artifactId>
  76. <version>2.6</version>
  77. <scope>test</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.assertj</groupId>
  81. <artifactId>assertj-core</artifactId>
  82. <version>3.9.1</version>
  83. <scope>test</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.mockito</groupId>
  87. <artifactId>mockito-core</artifactId>
  88. <version>2.22.0</version>
  89. <scope>test</scope>
  90. </dependency>
  91. </dependencies>
  92. <build>
  93. <resources>
  94. <resource>
  95. <directory>src/main/resources</directory>
  96. <filtering>true</filtering>
  97. </resource>
  98. </resources>
  99. <plugins>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-jar-plugin</artifactId>
  103. <configuration>
  104. <archive>
  105. <manifest>
  106. <addClasspath>false</addClasspath>
  107. <mainClass>org.sonarsource.scanner.cli.Main</mainClass>
  108. </manifest>
  109. </archive>
  110. </configuration>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-shade-plugin</artifactId>
  115. <executions>
  116. <execution>
  117. <phase>package</phase>
  118. <goals>
  119. <goal>shade</goal>
  120. </goals>
  121. <configuration>
  122. <createDependencyReducedPom>true</createDependencyReducedPom>
  123. <minimizeJar>true</minimizeJar>
  124. </configuration>
  125. </execution>
  126. </executions>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-assembly-plugin</artifactId>
  131. <executions>
  132. <execution>
  133. <id>cli</id>
  134. <phase>package</phase>
  135. <goals>
  136. <goal>single</goal>
  137. </goals>
  138. <configuration>
  139. <finalName>sonar-scanner-${project.version}</finalName>
  140. <appendAssemblyId>false</appendAssemblyId>
  141. <escapeString>\</escapeString>
  142. <descriptors>
  143. <descriptor>src/main/assembly/noarch.xml</descriptor>
  144. </descriptors>
  145. <filters>
  146. <filter>src/main/assembly/filter-noarch.properties</filter>
  147. </filters>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-enforcer-plugin</artifactId>
  155. <executions>
  156. <execution>
  157. <id>enforce-distribution-size</id>
  158. <goals>
  159. <goal>enforce</goal>
  160. </goals>
  161. <phase>verify</phase>
  162. <configuration>
  163. <rules>
  164. <requireFilesSize>
  165. <minsize>560000</minsize>
  166. <maxsize>590000</maxsize>
  167. <files>
  168. <file>${project.build.directory}/sonar-scanner-${project.version}.zip</file>
  169. </files>
  170. </requireFilesSize>
  171. </rules>
  172. </configuration>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-javadoc-plugin</artifactId>
  179. <configuration>
  180. <source>8</source>
  181. </configuration>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.cyclonedx</groupId>
  185. <artifactId>cyclonedx-maven-plugin</artifactId>
  186. <executions>
  187. <execution>
  188. <phase>package</phase>
  189. <goals>
  190. <goal>makeAggregateBom</goal>
  191. </goals>
  192. </execution>
  193. </executions>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. <profiles>
  198. <profile>
  199. <id>it</id>
  200. <modules>
  201. <module>it</module>
  202. </modules>
  203. </profile>
  204. <profile>
  205. <id>dist-linux</id>
  206. <build>
  207. <plugins>
  208. <plugin>
  209. <groupId>com.googlecode.maven-download-plugin</groupId>
  210. <artifactId>download-maven-plugin</artifactId>
  211. <version>1.4.2</version>
  212. <executions>
  213. <execution>
  214. <id>unpack-linux</id>
  215. <phase>package</phase>
  216. <goals>
  217. <goal>wget</goal>
  218. </goals>
  219. <configuration>
  220. <url>https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.14.1%2B1/OpenJDK11U-jre_x64_linux_hotspot_11.0.14.1_1.tar.gz</url>
  221. <unpack>true</unpack>
  222. <outputDirectory>${unpack.dir}/linux</outputDirectory>
  223. <sha256>b5a6960bc6bb0b1a967e307f908ea9b06ad7adbbd9df0b8954ab51374faa8a98</sha256>
  224. </configuration>
  225. </execution>
  226. </executions>
  227. </plugin>
  228. <plugin>
  229. <artifactId>maven-assembly-plugin</artifactId>
  230. <executions>
  231. <execution>
  232. <id>assemble-linux</id>
  233. <phase>package</phase>
  234. <goals>
  235. <goal>single</goal>
  236. </goals>
  237. <configuration>
  238. <finalName>sonar-scanner-${project.version}</finalName>
  239. <escapeString>\</escapeString>
  240. <descriptors>
  241. <descriptor>src/main/assembly/dist-linux.xml</descriptor>
  242. </descriptors>
  243. <filters>
  244. <filter>src/main/assembly/filter-dist.properties</filter>
  245. </filters>
  246. </configuration>
  247. </execution>
  248. </executions>
  249. </plugin>
  250. </plugins>
  251. </build>
  252. </profile>
  253. <profile>
  254. <id>dist-windows</id>
  255. <build>
  256. <plugins>
  257. <plugin>
  258. <groupId>com.googlecode.maven-download-plugin</groupId>
  259. <artifactId>download-maven-plugin</artifactId>
  260. <version>1.4.2</version>
  261. <executions>
  262. <execution>
  263. <id>unpack-windows</id>
  264. <phase>package</phase>
  265. <goals>
  266. <goal>wget</goal>
  267. </goals>
  268. <configuration>
  269. <url>https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.14.1%2B1/OpenJDK11U-jre_x64_windows_hotspot_11.0.14.1_1.zip</url>
  270. <unpack>true</unpack>
  271. <outputDirectory>${unpack.dir}/windows</outputDirectory>
  272. <sha256>49500200b482c407159e9907bb53efd2b2ad772623c3857c23c17c1304d421b5</sha256>
  273. </configuration>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. <plugin>
  278. <artifactId>maven-assembly-plugin</artifactId>
  279. <executions>
  280. <execution>
  281. <id>assemble-windows</id>
  282. <phase>package</phase>
  283. <goals>
  284. <goal>single</goal>
  285. </goals>
  286. <configuration>
  287. <finalName>sonar-scanner-${project.version}</finalName>
  288. <escapeString>\</escapeString>
  289. <descriptors>
  290. <descriptor>src/main/assembly/dist-windows.xml</descriptor>
  291. </descriptors>
  292. <filters>
  293. <filter>src/main/assembly/filter-dist.properties</filter>
  294. </filters>
  295. </configuration>
  296. </execution>
  297. </executions>
  298. </plugin>
  299. </plugins>
  300. </build>
  301. </profile>
  302. <profile>
  303. <id>dist-macosx</id>
  304. <build>
  305. <plugins>
  306. <plugin>
  307. <groupId>com.googlecode.maven-download-plugin</groupId>
  308. <artifactId>download-maven-plugin</artifactId>
  309. <version>1.4.2</version>
  310. <executions>
  311. <execution>
  312. <id>unpack-macosx</id>
  313. <phase>package</phase>
  314. <goals>
  315. <goal>wget</goal>
  316. </goals>
  317. <configuration>
  318. <url>https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.14.1%2B1/OpenJDK11U-jre_x64_mac_hotspot_11.0.14.1_1.tar.gz</url>
  319. <unpack>true</unpack>
  320. <outputDirectory>${unpack.dir}/macosx</outputDirectory>
  321. <sha256>1b2f792ad05af9dba876db962c189527e645b48f50ceb842b4e39169de553303</sha256>
  322. </configuration>
  323. </execution>
  324. </executions>
  325. </plugin>
  326. <plugin>
  327. <artifactId>maven-assembly-plugin</artifactId>
  328. <executions>
  329. <execution>
  330. <id>assemble-macosx</id>
  331. <phase>package</phase>
  332. <goals>
  333. <goal>single</goal>
  334. </goals>
  335. <configuration>
  336. <finalName>sonar-scanner-${project.version}</finalName>
  337. <escapeString>\</escapeString>
  338. <descriptors>
  339. <descriptor>src/main/assembly/dist-macosx.xml</descriptor>
  340. </descriptors>
  341. <filters>
  342. <filter>src/main/assembly/filter-dist.properties</filter>
  343. </filters>
  344. </configuration>
  345. </execution>
  346. </executions>
  347. </plugin>
  348. </plugins>
  349. </build>
  350. </profile>
  351. </profiles>
  352. </project>