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.9KB

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