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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.codehaus.sonar.runner</groupId>
  6. <artifactId>sonar-runner</artifactId>
  7. <version>2.2-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>sonar-runner-api</artifactId>
  10. <name>Sonar Runner - API</name>
  11. <dependencies>
  12. <!-- Dependencies with scope "compile" are shaded and removed from transitive dependencies-->
  13. <dependency>
  14. <groupId>${pom.groupId}</groupId>
  15. <artifactId>sonar-runner-impl</artifactId>
  16. <version>${pom.version}</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.google.code.findbugs</groupId>
  20. <artifactId>jsr305</artifactId>
  21. <scope>provided</scope>
  22. </dependency>
  23. <!-- Unit tests -->
  24. <dependency>
  25. <groupId>commons-lang</groupId>
  26. <artifactId>commons-lang</artifactId>
  27. <version>2.6</version>
  28. <scope>test</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>junit</groupId>
  32. <artifactId>junit</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.easytesting</groupId>
  37. <artifactId>fest-assert</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.mockito</groupId>
  42. <artifactId>mockito-all</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <resources>
  48. <resource>
  49. <directory>src/main/resources</directory>
  50. <filtering>true</filtering>
  51. </resource>
  52. </resources>
  53. <plugins>
  54. <plugin>
  55. <groupId>org.apache.maven.plugins</groupId>
  56. <artifactId>maven-jar-plugin</artifactId>
  57. <configuration>
  58. <archive>
  59. <manifest>
  60. <addClasspath>true</addClasspath>
  61. </manifest>
  62. </archive>
  63. </configuration>
  64. </plugin>
  65. <plugin>
  66. <groupId>org.apache.maven.plugins</groupId>
  67. <artifactId>maven-dependency-plugin</artifactId>
  68. <executions>
  69. <execution>
  70. <id>copy</id>
  71. <phase>process-resources</phase>
  72. <goals>
  73. <goal>copy</goal>
  74. </goals>
  75. <configuration>
  76. <artifactItems>
  77. <artifactItem>
  78. <groupId>${pom.groupId}</groupId>
  79. <artifactId>sonar-runner-impl</artifactId>
  80. <version>${pom.version}</version>
  81. <type>jar</type>
  82. <overWrite>false</overWrite>
  83. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  84. <destFileName>sonar-runner-impl.jar</destFileName>
  85. </artifactItem>
  86. </artifactItems>
  87. <overWriteReleases>true</overWriteReleases>
  88. <overWriteSnapshots>true</overWriteSnapshots>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-shade-plugin</artifactId>
  96. <executions>
  97. <execution>
  98. <phase>package</phase>
  99. <goals>
  100. <goal>shade</goal>
  101. </goals>
  102. <configuration>
  103. <createDependencyReducedPom>true</createDependencyReducedPom>
  104. <minimizeJar>true</minimizeJar>
  105. <relocations>
  106. <relocation>
  107. <pattern>org.apache.commons.lang</pattern>
  108. <shadedPattern>org.sonar.runner.commonslang</shadedPattern>
  109. </relocation>
  110. </relocations>
  111. </configuration>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.apache.felix</groupId>
  117. <artifactId>maven-bundle-plugin</artifactId>
  118. <version>2.3.7</version>
  119. <extensions>true</extensions>
  120. <configuration>
  121. <instructions>
  122. <Import-Package>!*</Import-Package>
  123. <Export-Package>!.,org.sonar.runner.api</Export-Package>
  124. <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
  125. </instructions>
  126. </configuration>
  127. <executions>
  128. <execution>
  129. <id>bundle-manifest</id>
  130. <phase>process-classes</phase>
  131. <goals>
  132. <goal>manifest</goal>
  133. </goals>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. <plugin>
  138. <artifactId>maven-jar-plugin</artifactId>
  139. <configuration>
  140. <archive>
  141. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  142. </archive>
  143. </configuration>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. </project>