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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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.sonar-runner</groupId>
  5. <artifactId>sonar-runner</artifactId>
  6. <version>2.5-SNAPSHOT</version>
  7. </parent>
  8. <artifactId>sonar-runner-api</artifactId>
  9. <name>SonarQube Runner - API</name>
  10. <dependencies>
  11. <!-- Dependencies with scope "compile" are shaded and removed from transitive dependencies-->
  12. <dependency>
  13. <groupId>com.github.kevinsawicki</groupId>
  14. <artifactId>http-request</artifactId>
  15. </dependency>
  16. <dependency>
  17. <groupId>com.google.code.findbugs</groupId>
  18. <artifactId>jsr305</artifactId>
  19. <scope>provided</scope>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.codehaus.sonar</groupId>
  23. <artifactId>sonar-home</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>commons-io</groupId>
  27. <artifactId>commons-io</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>${project.groupId}</groupId>
  31. <artifactId>sonar-runner-batch</artifactId>
  32. <version>${project.version}</version>
  33. <scope>provided</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>${project.groupId}</groupId>
  37. <artifactId>sonar-runner-batch-interface</artifactId>
  38. <version>${project.version}</version>
  39. </dependency>
  40. <!-- unit tests -->
  41. <dependency>
  42. <groupId>junit</groupId>
  43. <artifactId>junit</artifactId>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.easytesting</groupId>
  48. <artifactId>fest-assert</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.mockito</groupId>
  53. <artifactId>mockito-all</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.assertj</groupId>
  58. <artifactId>assertj-core</artifactId>
  59. <version>1.7.1</version>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.mortbay.jetty</groupId>
  64. <artifactId>jetty</artifactId>
  65. <version>6.1.25</version>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>commons-lang</groupId>
  70. <artifactId>commons-lang</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <resources>
  76. <resource>
  77. <directory>src/main/resources</directory>
  78. <filtering>true</filtering>
  79. </resource>
  80. </resources>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-jar-plugin</artifactId>
  85. <configuration>
  86. <archive>
  87. <!-- Use the MANIFEST generated by maven-bundle-plugin -->
  88. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  89. <manifest>
  90. <addClasspath>true</addClasspath>
  91. </manifest>
  92. </archive>
  93. </configuration>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-dependency-plugin</artifactId>
  98. <executions>
  99. <execution>
  100. <id>copy</id>
  101. <phase>process-resources</phase>
  102. <goals>
  103. <goal>copy</goal>
  104. </goals>
  105. <configuration>
  106. <artifactItems>
  107. <artifactItem>
  108. <groupId>${project.groupId}</groupId>
  109. <artifactId>sonar-runner-batch</artifactId>
  110. <version>${project.version}</version>
  111. <type>jar</type>
  112. <overWrite>false</overWrite>
  113. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  114. <destFileName>sonar-runner-batch.jar</destFileName>
  115. </artifactItem>
  116. </artifactItems>
  117. <overWriteReleases>true</overWriteReleases>
  118. <overWriteSnapshots>true</overWriteSnapshots>
  119. </configuration>
  120. </execution>
  121. </executions>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-shade-plugin</artifactId>
  126. <executions>
  127. <execution>
  128. <phase>package</phase>
  129. <goals>
  130. <goal>shade</goal>
  131. </goals>
  132. <configuration>
  133. <createDependencyReducedPom>true</createDependencyReducedPom>
  134. <minimizeJar>true</minimizeJar>
  135. <relocations>
  136. <relocation>
  137. <pattern>com.github.kevinsawicki.http</pattern>
  138. <shadedPattern>org.sonar.runner.kevinsawicki</shadedPattern>
  139. </relocation>
  140. <relocation>
  141. <pattern>org.apache.commons.io</pattern>
  142. <shadedPattern>org.sonar.runner.commonsio</shadedPattern>
  143. </relocation>
  144. <relocation>
  145. <pattern>org.sonar.home</pattern>
  146. <shadedPattern>org.sonar.runner.home</shadedPattern>
  147. </relocation>
  148. </relocations>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.felix</groupId>
  155. <artifactId>maven-bundle-plugin</artifactId>
  156. <version>2.3.7</version>
  157. <extensions>true</extensions>
  158. <configuration>
  159. <instructions>
  160. <Import-Package>!*</Import-Package>
  161. <Export-Package>!.,org.sonar.runner.api</Export-Package>
  162. <Bundle-RequiredExecutionEnvironment>JavaSE-1.7</Bundle-RequiredExecutionEnvironment>
  163. </instructions>
  164. </configuration>
  165. <executions>
  166. <execution>
  167. <id>bundle-manifest</id>
  168. <phase>process-classes</phase>
  169. <goals>
  170. <goal>manifest</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. </plugins>
  176. </build>
  177. </project>