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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>$groupId</groupId>
  5. <artifactId>$artifactId</artifactId>
  6. <packaging>sonar-plugin</packaging>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>My Sonar GWT plugin</name>
  9. <description>GWT Sample description</description>
  10. <!-- optional -->
  11. <organization>
  12. <name>My company</name>
  13. <url>http://www.mycompany.com</url>
  14. </organization>
  15. <repositories>
  16. <repository>
  17. <!-- for gwt-incubator -->
  18. <id>sonar</id>
  19. <name>Sonar</name>
  20. <url>http://repository.sonarsource.org/content/repositories/sonar</url>
  21. <releases>
  22. </releases>
  23. <snapshots>
  24. <enabled>false</enabled>
  25. </snapshots>
  26. </repository>
  27. </repositories>
  28. <dependencies>
  29. <dependency>
  30. <groupId>org.codehaus.sonar</groupId>
  31. <artifactId>sonar-plugin-api</artifactId>
  32. <version>${sonarTargetVersion}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.codehaus.sonar</groupId>
  36. <artifactId>sonar-gwt-api</artifactId>
  37. <version>${sonarTargetVersion}</version>
  38. <scope>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.google.gwt</groupId>
  42. <artifactId>gwt-user</artifactId>
  43. <version>2.0.3</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.google.gwt</groupId>
  48. <artifactId>gwt-incubator</artifactId>
  49. <version>20100204-r1747</version>
  50. <scope>provided</scope>
  51. </dependency>
  52. <!-- unit tests -->
  53. <dependency>
  54. <groupId>org.codehaus.sonar</groupId>
  55. <artifactId>sonar-testing-harness</artifactId>
  56. <version>${sonarTargetVersion}</version>
  57. <scope>test</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>junit</groupId>
  61. <artifactId>junit</artifactId>
  62. <version>4.7</version>
  63. <scope>test</scope>
  64. </dependency>
  65. </dependencies>
  66. <build>
  67. <resources>
  68. <resource>
  69. <directory>src/main/java</directory>
  70. </resource>
  71. </resources>
  72. <plugins>
  73. <plugin>
  74. <groupId>org.codehaus.sonar</groupId>
  75. <artifactId>sonar-packaging-maven-plugin</artifactId>
  76. <version>0.1</version>
  77. <extensions>true</extensions>
  78. <configuration>
  79. <pluginKey>gwt-sample</pluginKey>
  80. <pluginName>GWT Sample</pluginName>
  81. <pluginClass>${package}.GwtSamplePlugin</pluginClass>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.codehaus.mojo</groupId>
  86. <artifactId>gwt-maven-plugin</artifactId>
  87. <version>1.2</version>
  88. <executions>
  89. <execution>
  90. <configuration>
  91. <modules>
  92. <module>${package}.resourcetab.SampleResourceTab</module>
  93. <module>${package}.page.SamplePage</module>
  94. </modules>
  95. <webappDirectory>target/classes</webappDirectory>
  96. <!-- do not break the following property on two lines -->
  97. <extraJvmArgs>-Xmx512m -Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory</extraJvmArgs>
  98. </configuration>
  99. <goals>
  100. <goal>compile</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-compiler-plugin</artifactId>
  108. <version>2.0.2</version>
  109. <configuration>
  110. <source>1.5</source>
  111. <target>1.5</target>
  112. <encoding>UTF-8</encoding>
  113. </configuration>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. </project>