您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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>71.0.0.1292</version>
  7. </parent>
  8. <groupId>org.sonarsource.scanner.cli</groupId>
  9. <artifactId>sonar-scanner-cli</artifactId>
  10. <version>5.0.1-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-17.0.7+7-jre</jre.dirname.linux>
  48. <jre.dirname.windows>jdk-17.0.7+7-jre</jre.dirname.windows>
  49. <jre.dirname.macosx>jdk-17.0.7+7-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>17</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.3.1081</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.google.code.findbugs</groupId>
  62. <artifactId>jsr305</artifactId>
  63. <version>3.0.2</version>
  64. <scope>provided</scope>
  65. </dependency>
  66. <!-- Unit tests -->
  67. <dependency>
  68. <groupId>junit</groupId>
  69. <artifactId>junit</artifactId>
  70. <version>4.13.2</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.23.1</version>
  83. <scope>test</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.mockito</groupId>
  87. <artifactId>mockito-core</artifactId>
  88. <version>4.10.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. <version>3.5.0</version>
  116. <executions>
  117. <execution>
  118. <phase>package</phase>
  119. <goals>
  120. <goal>shade</goal>
  121. </goals>
  122. <configuration>
  123. <createDependencyReducedPom>true</createDependencyReducedPom>
  124. <minimizeJar>true</minimizeJar>
  125. </configuration>
  126. </execution>
  127. </executions>
  128. </plugin>
  129. <plugin>
  130. <groupId>org.apache.maven.plugins</groupId>
  131. <artifactId>maven-assembly-plugin</artifactId>
  132. <executions>
  133. <execution>
  134. <id>cli</id>
  135. <phase>package</phase>
  136. <goals>
  137. <goal>single</goal>
  138. </goals>
  139. <configuration>
  140. <finalName>sonar-scanner-${project.version}</finalName>
  141. <appendAssemblyId>false</appendAssemblyId>
  142. <escapeString>\</escapeString>
  143. <descriptors>
  144. <descriptor>src/main/assembly/noarch.xml</descriptor>
  145. </descriptors>
  146. <filters>
  147. <filter>src/main/assembly/filter-noarch.properties</filter>
  148. </filters>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-enforcer-plugin</artifactId>
  156. <executions>
  157. <execution>
  158. <id>enforce-distribution-size</id>
  159. <goals>
  160. <goal>enforce</goal>
  161. </goals>
  162. <phase>verify</phase>
  163. <configuration>
  164. <rules>
  165. <requireFilesSize>
  166. <minsize>560000</minsize>
  167. <maxsize>600000</maxsize>
  168. <files>
  169. <file>${project.build.directory}/sonar-scanner-${project.version}.zip</file>
  170. </files>
  171. </requireFilesSize>
  172. </rules>
  173. </configuration>
  174. </execution>
  175. </executions>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-javadoc-plugin</artifactId>
  180. <configuration>
  181. <source>17</source>
  182. </configuration>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.cyclonedx</groupId>
  186. <artifactId>cyclonedx-maven-plugin</artifactId>
  187. <executions>
  188. <execution>
  189. <phase>package</phase>
  190. <goals>
  191. <goal>makeAggregateBom</goal>
  192. </goals>
  193. </execution>
  194. </executions>
  195. </plugin>
  196. </plugins>
  197. </build>
  198. <profiles>
  199. <profile>
  200. <id>it</id>
  201. <modules>
  202. <module>it</module>
  203. </modules>
  204. </profile>
  205. <profile>
  206. <id>dist-linux</id>
  207. <build>
  208. <plugins>
  209. <plugin>
  210. <groupId>com.googlecode.maven-download-plugin</groupId>
  211. <artifactId>download-maven-plugin</artifactId>
  212. <version>1.6.8</version>
  213. <executions>
  214. <execution>
  215. <id>unpack-linux</id>
  216. <phase>package</phase>
  217. <goals>
  218. <goal>wget</goal>
  219. </goals>
  220. <configuration>
  221. <url>https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jre_x64_linux_hotspot_17.0.7_7.tar.gz</url>
  222. <unpack>true</unpack>
  223. <outputDirectory>${unpack.dir}/linux</outputDirectory>
  224. <sha256>bb025133b96266f6415d5084bb9b260340a813968007f1d2d14690f20bd021ca</sha256>
  225. </configuration>
  226. </execution>
  227. </executions>
  228. </plugin>
  229. <plugin>
  230. <artifactId>maven-assembly-plugin</artifactId>
  231. <executions>
  232. <execution>
  233. <id>assemble-linux</id>
  234. <phase>package</phase>
  235. <goals>
  236. <goal>single</goal>
  237. </goals>
  238. <configuration>
  239. <finalName>sonar-scanner-${project.version}</finalName>
  240. <escapeString>\</escapeString>
  241. <descriptors>
  242. <descriptor>src/main/assembly/dist-linux.xml</descriptor>
  243. </descriptors>
  244. <filters>
  245. <filter>src/main/assembly/filter-dist.properties</filter>
  246. </filters>
  247. </configuration>
  248. </execution>
  249. </executions>
  250. </plugin>
  251. </plugins>
  252. </build>
  253. </profile>
  254. <profile>
  255. <id>dist-windows</id>
  256. <build>
  257. <plugins>
  258. <plugin>
  259. <groupId>com.googlecode.maven-download-plugin</groupId>
  260. <artifactId>download-maven-plugin</artifactId>
  261. <version>1.6.8</version>
  262. <executions>
  263. <execution>
  264. <id>unpack-windows</id>
  265. <phase>package</phase>
  266. <goals>
  267. <goal>wget</goal>
  268. </goals>
  269. <configuration>
  270. <url>https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jre_x64_windows_hotspot_17.0.7_7.zip</url>
  271. <unpack>true</unpack>
  272. <outputDirectory>${unpack.dir}/windows</outputDirectory>
  273. <sha256>62e82c1afa7509424813e9cb22d8becfec4346d7505e6d2fc8770af4dcd5b9a0</sha256>
  274. </configuration>
  275. </execution>
  276. </executions>
  277. </plugin>
  278. <plugin>
  279. <artifactId>maven-assembly-plugin</artifactId>
  280. <executions>
  281. <execution>
  282. <id>assemble-windows</id>
  283. <phase>package</phase>
  284. <goals>
  285. <goal>single</goal>
  286. </goals>
  287. <configuration>
  288. <finalName>sonar-scanner-${project.version}</finalName>
  289. <escapeString>\</escapeString>
  290. <descriptors>
  291. <descriptor>src/main/assembly/dist-windows.xml</descriptor>
  292. </descriptors>
  293. <filters>
  294. <filter>src/main/assembly/filter-dist.properties</filter>
  295. </filters>
  296. </configuration>
  297. </execution>
  298. </executions>
  299. </plugin>
  300. </plugins>
  301. </build>
  302. </profile>
  303. <profile>
  304. <id>dist-macosx</id>
  305. <build>
  306. <plugins>
  307. <plugin>
  308. <groupId>com.googlecode.maven-download-plugin</groupId>
  309. <artifactId>download-maven-plugin</artifactId>
  310. <version>1.6.8</version>
  311. <executions>
  312. <execution>
  313. <id>unpack-macosx</id>
  314. <phase>package</phase>
  315. <goals>
  316. <goal>wget</goal>
  317. </goals>
  318. <configuration>
  319. <url>https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jre_x64_mac_hotspot_17.0.7_7.tar.gz</url>
  320. <unpack>true</unpack>
  321. <outputDirectory>${unpack.dir}/macosx</outputDirectory>
  322. <sha256>62559a927a8dbac2ea1d7879f590a62fea87d61bfaa92894e578d2045b8d921b</sha256>
  323. </configuration>
  324. </execution>
  325. </executions>
  326. </plugin>
  327. <plugin>
  328. <artifactId>maven-assembly-plugin</artifactId>
  329. <executions>
  330. <execution>
  331. <id>assemble-macosx</id>
  332. <phase>package</phase>
  333. <goals>
  334. <goal>single</goal>
  335. </goals>
  336. <configuration>
  337. <finalName>sonar-scanner-${project.version}</finalName>
  338. <escapeString>\</escapeString>
  339. <descriptors>
  340. <descriptor>src/main/assembly/dist-macosx.xml</descriptor>
  341. </descriptors>
  342. <filters>
  343. <filter>src/main/assembly/filter-dist.properties</filter>
  344. </filters>
  345. </configuration>
  346. </execution>
  347. </executions>
  348. </plugin>
  349. </plugins>
  350. </build>
  351. </profile>
  352. </profiles>
  353. </project>