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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.codehaus.sonar.runner</groupId>
  5. <artifactId>sonar-runner</artifactId>
  6. <version>2.3-SNAPSHOT</version>
  7. </parent>
  8. <artifactId>sonar-runner-dist</artifactId>
  9. <packaging>jar</packaging>
  10. <name>Sonar Runner - Distribution</name>
  11. <dependencies>
  12. <dependency>
  13. <groupId>${pom.groupId}</groupId>
  14. <artifactId>sonar-runner-api</artifactId>
  15. <version>${pom.version}</version>
  16. </dependency>
  17. <dependency>
  18. <groupId>${pom.groupId}</groupId>
  19. <artifactId>sonar-runner-impl</artifactId>
  20. <version>${pom.version}</version>
  21. <scope>provided</scope>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.google.code.findbugs</groupId>
  25. <artifactId>jsr305</artifactId>
  26. <scope>provided</scope>
  27. </dependency>
  28. <!-- Unit tests -->
  29. <dependency>
  30. <groupId>junit</groupId>
  31. <artifactId>junit</artifactId>
  32. <scope>test</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.easytesting</groupId>
  36. <artifactId>fest-assert</artifactId>
  37. <scope>test</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.mockito</groupId>
  41. <artifactId>mockito-all</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. </dependencies>
  45. <build>
  46. <plugins>
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-jar-plugin</artifactId>
  50. <configuration>
  51. <archive>
  52. <manifest>
  53. <addClasspath>false</addClasspath>
  54. <mainClass>org.sonar.runner.Main</mainClass>
  55. </manifest>
  56. </archive>
  57. </configuration>
  58. </plugin>
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-shade-plugin</artifactId>
  62. <executions>
  63. <execution>
  64. <phase>package</phase>
  65. <goals>
  66. <goal>shade</goal>
  67. </goals>
  68. <configuration>
  69. <createDependencyReducedPom>true</createDependencyReducedPom>
  70. <minimizeJar>true</minimizeJar>
  71. </configuration>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-assembly-plugin</artifactId>
  78. <executions>
  79. <execution>
  80. <phase>package</phase>
  81. <goals>
  82. <goal>single</goal>
  83. </goals>
  84. <configuration>
  85. <finalName>sonar-runner-${pom.version}</finalName>
  86. <appendAssemblyId>false</appendAssemblyId>
  87. <escapeString>\</escapeString>
  88. <descriptors>
  89. <descriptor>${pom.basedir}/assembly.xml</descriptor>
  90. </descriptors>
  91. </configuration>
  92. </execution>
  93. </executions>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-enforcer-plugin</artifactId>
  98. <executions>
  99. <execution>
  100. <id>enforce-distribution-size</id>
  101. <goals>
  102. <goal>enforce</goal>
  103. </goals>
  104. <phase>verify</phase>
  105. <configuration>
  106. <rules>
  107. <requireFilesSize>
  108. <minsize>280000</minsize>
  109. <maxsize>310000</maxsize>
  110. <files>
  111. <file>${pom.build.directory}/sonar-runner-${pom.version}.zip</file>
  112. </files>
  113. </requireFilesSize>
  114. </rules>
  115. </configuration>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. </project>