選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pom.xml 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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>23</version>
  7. </parent>
  8. <groupId>org.sonarsource.scanner.cli</groupId>
  9. <artifactId>sonar-scanner-cli</artifactId>
  10. <version>2.5-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. </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. <plugins>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-jar-plugin</artifactId>
  82. <configuration>
  83. <excludes>
  84. <exclude>org/sonar/runner/commonsio/*</exclude>
  85. </excludes>
  86. <archive>
  87. <manifest>
  88. <addClasspath>false</addClasspath>
  89. <mainClass>org.sonar.runner.cli.Main</mainClass>
  90. </manifest>
  91. </archive>
  92. </configuration>
  93. </plugin>
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-shade-plugin</artifactId>
  97. <version>2.3</version>
  98. <executions>
  99. <execution>
  100. <phase>package</phase>
  101. <goals>
  102. <goal>shade</goal>
  103. </goals>
  104. <configuration>
  105. <createDependencyReducedPom>true</createDependencyReducedPom>
  106. <minimizeJar>true</minimizeJar>
  107. <filters>
  108. <!-- Remove signatures from SQ Runner API -->
  109. <filter>
  110. <artifact>org.sonarsource.sonar-runner:sonar-runner-api</artifact>
  111. <excludes>
  112. <exclude>META-INF/*.SF</exclude>
  113. <exclude>META-INF/*.DSA</exclude>
  114. <exclude>META-INF/*.RSA</exclude>
  115. </excludes>
  116. </filter>
  117. </filters>
  118. </configuration>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-assembly-plugin</artifactId>
  125. <executions>
  126. <execution>
  127. <phase>package</phase>
  128. <goals>
  129. <goal>single</goal>
  130. </goals>
  131. <configuration>
  132. <finalName>sonar-scanner-${project.version}</finalName>
  133. <appendAssemblyId>false</appendAssemblyId>
  134. <escapeString>\</escapeString>
  135. <descriptors>
  136. <descriptor>${project.basedir}/assembly.xml</descriptor>
  137. </descriptors>
  138. </configuration>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-enforcer-plugin</artifactId>
  145. <executions>
  146. <execution>
  147. <id>enforce-distribution-size</id>
  148. <goals>
  149. <goal>enforce</goal>
  150. </goals>
  151. <phase>verify</phase>
  152. <configuration>
  153. <rules>
  154. <requireFilesSize>
  155. <minsize>510000</minsize>
  156. <maxsize>520000</maxsize>
  157. <files>
  158. <file>${project.build.directory}/sonar-scanner-${project.version}.zip</file>
  159. </files>
  160. </requireFilesSize>
  161. </rules>
  162. </configuration>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. </project>