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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.codehaus.sonar.archetypes</groupId>
  6. <artifactId>sonar-basic-plugin</artifactId>
  7. <packaging>sonar-plugin</packaging>
  8. <version>1.0-SNAPSHOT</version>
  9. <name>My Sonar plugin</name>
  10. <description>plugin description</description>
  11. <!-- optional -->
  12. <organization>
  13. <name>My company</name>
  14. <url>http://www.mycompany.com</url>
  15. </organization>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.codehaus.sonar</groupId>
  19. <artifactId>sonar-plugin-api</artifactId>
  20. <version>${sonarTargetVersion}</version>
  21. </dependency>
  22. <!-- add your dependencies here -->
  23. <!-- unit tests -->
  24. <dependency>
  25. <groupId>org.codehaus.sonar</groupId>
  26. <artifactId>sonar-testing-harness</artifactId>
  27. <version>${sonarTargetVersion}</version>
  28. <scope>test</scope>
  29. </dependency>
  30. </dependencies>
  31. <build>
  32. <plugins>
  33. <plugin>
  34. <groupId>org.codehaus.sonar</groupId>
  35. <artifactId>sonar-packaging-maven-plugin</artifactId>
  36. <version>0.1</version>
  37. <extensions>true</extensions>
  38. <configuration>
  39. <pluginKey>sample</pluginKey>
  40. <pluginClass>${package}.SamplePlugin</pluginClass>
  41. </configuration>
  42. </plugin>
  43. <plugin>
  44. <groupId>org.apache.maven.plugins</groupId>
  45. <artifactId>maven-compiler-plugin</artifactId>
  46. <version>2.0.2</version>
  47. <configuration>
  48. <source>1.5</source>
  49. <target>1.5</target>
  50. <encoding>UTF-8</encoding>
  51. </configuration>
  52. </plugin>
  53. </plugins>
  54. </build>
  55. </project>