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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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>26</version>
  7. </parent>
  8. <groupId>org.sonarsource.scanner.cli</groupId>
  9. <artifactId>sonar-scanner-cli</artifactId>
  10. <version>2.5</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>2.5</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. </properties>
  39. <dependencies>
  40. <dependency>
  41. <groupId>org.sonarsource.sonar-runner</groupId>
  42. <artifactId>sonar-runner-api</artifactId>
  43. <version>2.5.1</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.google.code.findbugs</groupId>
  47. <artifactId>jsr305</artifactId>
  48. <version>2.0.1</version>
  49. <scope>provided</scope>
  50. </dependency>
  51. <!-- Unit tests -->
  52. <dependency>
  53. <groupId>junit</groupId>
  54. <artifactId>junit</artifactId>
  55. <version>4.11</version>
  56. <scope>test</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.easytesting</groupId>
  60. <artifactId>fest-assert</artifactId>
  61. <version>1.4</version>
  62. <scope>test</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.mockito</groupId>
  66. <artifactId>mockito-all</artifactId>
  67. <version>1.9.5</version>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.jayway.awaitility</groupId>
  72. <artifactId>awaitility</artifactId>
  73. <version>1.6.3</version>
  74. <scope>test</scope>
  75. </dependency>
  76. </dependencies>
  77. <build>
  78. <resources>
  79. <resource>
  80. <directory>src/main/resources</directory>
  81. <filtering>true</filtering>
  82. </resource>
  83. </resources>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-jar-plugin</artifactId>
  88. <configuration>
  89. <excludes>
  90. <exclude>org/sonar/runner/commonsio/*</exclude>
  91. </excludes>
  92. <archive>
  93. <manifest>
  94. <addClasspath>false</addClasspath>
  95. <mainClass>org.sonar.runner.cli.Main</mainClass>
  96. </manifest>
  97. </archive>
  98. </configuration>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-shade-plugin</artifactId>
  103. <version>2.3</version>
  104. <executions>
  105. <execution>
  106. <phase>package</phase>
  107. <goals>
  108. <goal>shade</goal>
  109. </goals>
  110. <configuration>
  111. <createDependencyReducedPom>true</createDependencyReducedPom>
  112. <minimizeJar>true</minimizeJar>
  113. <filters>
  114. <!-- Remove signatures from SQ Runner API -->
  115. <filter>
  116. <artifact>org.sonarsource.sonar-runner:sonar-runner-api</artifact>
  117. <excludes>
  118. <exclude>META-INF/*.SF</exclude>
  119. <exclude>META-INF/*.DSA</exclude>
  120. <exclude>META-INF/*.RSA</exclude>
  121. </excludes>
  122. </filter>
  123. </filters>
  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. <phase>package</phase>
  134. <goals>
  135. <goal>single</goal>
  136. </goals>
  137. <configuration>
  138. <finalName>sonar-scanner-${project.version}</finalName>
  139. <appendAssemblyId>false</appendAssemblyId>
  140. <escapeString>\</escapeString>
  141. <descriptors>
  142. <descriptor>${project.basedir}/assembly.xml</descriptor>
  143. </descriptors>
  144. </configuration>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-enforcer-plugin</artifactId>
  151. <executions>
  152. <execution>
  153. <id>enforce-distribution-size</id>
  154. <goals>
  155. <goal>enforce</goal>
  156. </goals>
  157. <phase>verify</phase>
  158. <configuration>
  159. <rules>
  160. <requireFilesSize>
  161. <minsize>510000</minsize>
  162. <maxsize>520000</maxsize>
  163. <files>
  164. <file>${project.build.directory}/sonar-scanner-${project.version}.zip</file>
  165. </files>
  166. </requireFilesSize>
  167. </rules>
  168. </configuration>
  169. </execution>
  170. </executions>
  171. </plugin>
  172. </plugins>
  173. </build>
  174. </project>