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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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-cpd-plugin</artifactId>
  12. <name>Sonar :: Plugins :: CPD</name>
  13. <packaging>sonar-plugin</packaging>
  14. <description>Find duplicated source code within project.</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>pmd</groupId>
  18. <artifactId>pmd</artifactId>
  19. <version>4.2.5</version>
  20. <exclusions>
  21. <exclusion>
  22. <groupId>jaxen</groupId>
  23. <artifactId>jaxen</artifactId>
  24. </exclusion>
  25. <exclusion>
  26. <groupId>ant</groupId>
  27. <artifactId>ant</artifactId>
  28. </exclusion>
  29. <exclusion>
  30. <groupId>junit</groupId>
  31. <artifactId>junit</artifactId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <!-- For ResourcePersister and database access -->
  36. <dependency>
  37. <groupId>org.codehaus.sonar</groupId>
  38. <artifactId>sonar-batch</artifactId>
  39. <version>${project.version}</version>
  40. <scope>provided</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.codehaus.sonar</groupId>
  44. <artifactId>sonar-duplications</artifactId>
  45. <scope>provided</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.codehaus.sonar</groupId>
  49. <artifactId>sonar-plugin-api</artifactId>
  50. <scope>provided</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.codehaus.sonar</groupId>
  54. <artifactId>sonar-testing-harness</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <testResources>
  60. <testResource>
  61. <directory>${basedir}/src/main/resources</directory>
  62. </testResource>
  63. <testResource>
  64. <directory>${basedir}/src/test/resources</directory>
  65. </testResource>
  66. </testResources>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.codehaus.sonar</groupId>
  70. <artifactId>sonar-packaging-maven-plugin</artifactId>
  71. <extensions>true</extensions>
  72. <configuration>
  73. <pluginKey>cpd</pluginKey>
  74. <pluginName>Duplications</pluginName>
  75. <pluginClass>org.sonar.plugins.cpd.CpdPlugin</pluginClass>
  76. </configuration>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. </project>