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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.codehaus.sonar</groupId>
  6. <artifactId>sonar</artifactId>
  7. <version>2.11</version>
  8. <relativePath>../..</relativePath>
  9. </parent>
  10. <groupId>org.codehaus.sonar.plugins</groupId>
  11. <artifactId>sonar-checkstyle-plugin</artifactId>
  12. <packaging>sonar-plugin</packaging>
  13. <name>Sonar :: Plugins :: Checkstyle</name>
  14. <description>Checkstyle is a code analyser to help programmers write Java code that adheres to a coding standard.</description>
  15. <properties>
  16. <checkstyle.version>5.1</checkstyle.version>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.codehaus.sonar</groupId>
  21. <artifactId>sonar-plugin-api</artifactId>
  22. <scope>provided</scope>
  23. </dependency>
  24. <dependency>
  25. <groupId>checkstyle</groupId>
  26. <artifactId>checkstyle</artifactId>
  27. <version>${checkstyle.version}</version>
  28. <exclusions>
  29. <exclusion>
  30. <groupId>commons-logging</groupId>
  31. <artifactId>commons-logging</artifactId>
  32. </exclusion>
  33. <exclusion>
  34. <groupId>com.google.collections</groupId>
  35. <artifactId>google-collections</artifactId>
  36. </exclusion>
  37. <exclusion>
  38. <groupId>commons-lang</groupId>
  39. <artifactId>commons-lang</artifactId>
  40. </exclusion>
  41. <exclusion>
  42. <groupId>commons-collections</groupId>
  43. <artifactId>commons-collections</artifactId>
  44. </exclusion>
  45. <exclusion>
  46. <groupId>commons-cli</groupId>
  47. <artifactId>commons-cli</artifactId>
  48. </exclusion>
  49. <exclusion>
  50. <!-- See SONAR-2512 -->
  51. <groupId>commons-beanutils</groupId>
  52. <artifactId>commons-beanutils-core</artifactId>
  53. </exclusion>
  54. </exclusions>
  55. </dependency>
  56. <!-- TODO http://jira.codehaus.org/browse/SONAR-2011
  57. We need following dependency, otherwise we will receive
  58. java.lang.NoClassDefFoundError: org/apache/maven/project/MavenProject
  59. during call mock(org.sonar.api.resources.Project.class)
  60. -->
  61. <dependency>
  62. <groupId>org.apache.maven</groupId>
  63. <artifactId>maven-project</artifactId>
  64. <scope>test</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.codehaus.sonar</groupId>
  68. <artifactId>sonar-testing-harness</artifactId>
  69. <scope>test</scope>
  70. </dependency>
  71. </dependencies>
  72. <build>
  73. <resources>
  74. <resource>
  75. <directory>src/main/resources</directory>
  76. <filtering>true</filtering>
  77. </resource>
  78. </resources>
  79. <testResources>
  80. <testResource>
  81. <directory>${basedir}/src/main/resources</directory>
  82. </testResource>
  83. <testResource>
  84. <directory>${basedir}/src/test/resources</directory>
  85. </testResource>
  86. </testResources>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.codehaus.sonar</groupId>
  90. <artifactId>sonar-packaging-maven-plugin</artifactId>
  91. <extensions>true</extensions>
  92. <configuration>
  93. <pluginKey>checkstyle</pluginKey>
  94. <pluginName>Checkstyle</pluginName>
  95. <pluginClass>org.sonar.plugins.checkstyle.CheckstylePlugin</pluginClass>
  96. <pluginDescription><![CDATA[Analyze Java code with <a href="http://checkstyle.sourceforge.net/">Checkstyle</a> ${checkstyle.version}.]]></pluginDescription>
  97. </configuration>
  98. </plugin>
  99. <!-- Running JUnit tests in parallel -->
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-surefire-plugin</artifactId>
  103. <configuration>
  104. <parallel>methods</parallel>
  105. <threadCount>3</threadCount>
  106. <perCoreThreadCount>true</perCoreThreadCount>
  107. </configuration>
  108. </plugin>
  109. </plugins>
  110. </build>
  111. </project>