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

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