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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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>60.0.52</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. <pluginManagement>
  100. <plugins>
  101. <plugin>
  102. <groupId>org.cyclonedx</groupId>
  103. <artifactId>cyclonedx-maven-plugin</artifactId>
  104. <version>2.5.3</version>
  105. <configuration>
  106. <projectType>application</projectType>
  107. <includeBomSerialNumber>true</includeBomSerialNumber>
  108. <includeCompileScope>true</includeCompileScope>
  109. <includeProvidedScope>true</includeProvidedScope>
  110. <includeRuntimeScope>true</includeRuntimeScope>
  111. <includeSystemScope>true</includeSystemScope>
  112. <includeTestScope>true</includeTestScope>
  113. <includeLicenseText>false</includeLicenseText>
  114. <outputFormat>json</outputFormat>
  115. <outputName>bom</outputName>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. </pluginManagement>
  120. <plugins>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-jar-plugin</artifactId>
  124. <configuration>
  125. <archive>
  126. <manifest>
  127. <addClasspath>false</addClasspath>
  128. <mainClass>org.sonarsource.scanner.cli.Main</mainClass>
  129. </manifest>
  130. </archive>
  131. </configuration>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-shade-plugin</artifactId>
  136. <executions>
  137. <execution>
  138. <phase>package</phase>
  139. <goals>
  140. <goal>shade</goal>
  141. </goals>
  142. <configuration>
  143. <createDependencyReducedPom>true</createDependencyReducedPom>
  144. <minimizeJar>true</minimizeJar>
  145. </configuration>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-assembly-plugin</artifactId>
  152. <executions>
  153. <execution>
  154. <id>cli</id>
  155. <phase>package</phase>
  156. <goals>
  157. <goal>single</goal>
  158. </goals>
  159. <configuration>
  160. <finalName>sonar-scanner-${project.version}</finalName>
  161. <appendAssemblyId>false</appendAssemblyId>
  162. <escapeString>\</escapeString>
  163. <descriptors>
  164. <descriptor>src/main/assembly/noarch.xml</descriptor>
  165. </descriptors>
  166. <filters>
  167. <filter>src/main/assembly/filter-noarch.properties</filter>
  168. </filters>
  169. </configuration>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-enforcer-plugin</artifactId>
  176. <executions>
  177. <execution>
  178. <id>enforce-distribution-size</id>
  179. <goals>
  180. <goal>enforce</goal>
  181. </goals>
  182. <phase>verify</phase>
  183. <configuration>
  184. <rules>
  185. <requireFilesSize>
  186. <minsize>560000</minsize>
  187. <maxsize>590000</maxsize>
  188. <files>
  189. <file>${project.build.directory}/sonar-scanner-${project.version}.zip</file>
  190. </files>
  191. </requireFilesSize>
  192. </rules>
  193. </configuration>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-javadoc-plugin</artifactId>
  200. <configuration>
  201. <source>8</source>
  202. </configuration>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.cyclonedx</groupId>
  206. <artifactId>cyclonedx-maven-plugin</artifactId>
  207. <executions>
  208. <execution>
  209. <phase>package</phase>
  210. <goals>
  211. <goal>makeAggregateBom</goal>
  212. </goals>
  213. </execution>
  214. </executions>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. <profiles>
  219. <profile>
  220. <id>it</id>
  221. <modules>
  222. <module>it</module>
  223. </modules>
  224. </profile>
  225. <profile>
  226. <id>dist-linux</id>
  227. <build>
  228. <plugins>
  229. <plugin>
  230. <groupId>com.googlecode.maven-download-plugin</groupId>
  231. <artifactId>download-maven-plugin</artifactId>
  232. <version>1.4.2</version>
  233. <executions>
  234. <execution>
  235. <id>unpack-linux</id>
  236. <phase>package</phase>
  237. <goals>
  238. <goal>wget</goal>
  239. </goals>
  240. <configuration>
  241. <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>
  242. <unpack>true</unpack>
  243. <outputDirectory>${unpack.dir}/linux</outputDirectory>
  244. <sha256>b5a6960bc6bb0b1a967e307f908ea9b06ad7adbbd9df0b8954ab51374faa8a98</sha256>
  245. </configuration>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. <plugin>
  250. <artifactId>maven-assembly-plugin</artifactId>
  251. <executions>
  252. <execution>
  253. <id>assemble-linux</id>
  254. <phase>package</phase>
  255. <goals>
  256. <goal>single</goal>
  257. </goals>
  258. <configuration>
  259. <finalName>sonar-scanner-${project.version}</finalName>
  260. <escapeString>\</escapeString>
  261. <descriptors>
  262. <descriptor>src/main/assembly/dist-linux.xml</descriptor>
  263. </descriptors>
  264. <filters>
  265. <filter>src/main/assembly/filter-dist.properties</filter>
  266. </filters>
  267. </configuration>
  268. </execution>
  269. </executions>
  270. </plugin>
  271. </plugins>
  272. </build>
  273. </profile>
  274. <profile>
  275. <id>dist-windows</id>
  276. <build>
  277. <plugins>
  278. <plugin>
  279. <groupId>com.googlecode.maven-download-plugin</groupId>
  280. <artifactId>download-maven-plugin</artifactId>
  281. <version>1.4.2</version>
  282. <executions>
  283. <execution>
  284. <id>unpack-windows</id>
  285. <phase>package</phase>
  286. <goals>
  287. <goal>wget</goal>
  288. </goals>
  289. <configuration>
  290. <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>
  291. <unpack>true</unpack>
  292. <outputDirectory>${unpack.dir}/windows</outputDirectory>
  293. <sha256>49500200b482c407159e9907bb53efd2b2ad772623c3857c23c17c1304d421b5</sha256>
  294. </configuration>
  295. </execution>
  296. </executions>
  297. </plugin>
  298. <plugin>
  299. <artifactId>maven-assembly-plugin</artifactId>
  300. <executions>
  301. <execution>
  302. <id>assemble-windows</id>
  303. <phase>package</phase>
  304. <goals>
  305. <goal>single</goal>
  306. </goals>
  307. <configuration>
  308. <finalName>sonar-scanner-${project.version}</finalName>
  309. <escapeString>\</escapeString>
  310. <descriptors>
  311. <descriptor>src/main/assembly/dist-windows.xml</descriptor>
  312. </descriptors>
  313. <filters>
  314. <filter>src/main/assembly/filter-dist.properties</filter>
  315. </filters>
  316. </configuration>
  317. </execution>
  318. </executions>
  319. </plugin>
  320. </plugins>
  321. </build>
  322. </profile>
  323. <profile>
  324. <id>dist-macosx</id>
  325. <build>
  326. <plugins>
  327. <plugin>
  328. <groupId>com.googlecode.maven-download-plugin</groupId>
  329. <artifactId>download-maven-plugin</artifactId>
  330. <version>1.4.2</version>
  331. <executions>
  332. <execution>
  333. <id>unpack-macosx</id>
  334. <phase>package</phase>
  335. <goals>
  336. <goal>wget</goal>
  337. </goals>
  338. <configuration>
  339. <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>
  340. <unpack>true</unpack>
  341. <outputDirectory>${unpack.dir}/macosx</outputDirectory>
  342. <sha256>1b2f792ad05af9dba876db962c189527e645b48f50ceb842b4e39169de553303</sha256>
  343. </configuration>
  344. </execution>
  345. </executions>
  346. </plugin>
  347. <plugin>
  348. <artifactId>maven-assembly-plugin</artifactId>
  349. <executions>
  350. <execution>
  351. <id>assemble-macosx</id>
  352. <phase>package</phase>
  353. <goals>
  354. <goal>single</goal>
  355. </goals>
  356. <configuration>
  357. <finalName>sonar-scanner-${project.version}</finalName>
  358. <escapeString>\</escapeString>
  359. <descriptors>
  360. <descriptor>src/main/assembly/dist-macosx.xml</descriptor>
  361. </descriptors>
  362. <filters>
  363. <filter>src/main/assembly/filter-dist.properties</filter>
  364. </filters>
  365. </configuration>
  366. </execution>
  367. </executions>
  368. </plugin>
  369. </plugins>
  370. </build>
  371. </profile>
  372. </profiles>
  373. </project>