Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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>com.googlecode.gwtquery</groupId>
  5. <artifactId>gwtquery-project</artifactId>
  6. <version>1.5-SNAPSHOT</version>
  7. </parent>
  8. <properties>
  9. <!-- valid emulations are FF17 IE8 IE9 Chrome, but only FF17 works. -->
  10. <gwt.test.htmlunit>FF17</gwt.test.htmlunit>
  11. <gwt.test.default>-ea -out ${basedir}/target/gwt-junit -checkAssertions</gwt.test.default>
  12. <gwt.args />
  13. </properties>
  14. <profiles>
  15. <profile>
  16. <!-- example:
  17. $ mvn clean test -Ptest-prod
  18. $ mvn clean test -Ptest-prod -Dgwt.test.htmlunit=FF17
  19. -->
  20. <id>test-prod</id>
  21. <properties>
  22. <gwt.args>-prod -runStyle HtmlUnit:${gwt.test.htmlunit}</gwt.args>
  23. </properties>
  24. </profile>
  25. <profile>
  26. <id>test-browser</id>
  27. <properties>
  28. <gwt.args>-draftCompile -style PRETTY -optimize 9 -prod -runStyle Manual:1 -XjsInteropMode JS</gwt.args>
  29. </properties>
  30. </profile>
  31. </profiles>
  32. <artifactId>gwtquery</artifactId>
  33. <packaging>jar</packaging>
  34. <name>Gwt Query Core API</name>
  35. <url>http://gquery.org</url>
  36. <dependencies>
  37. <dependency>
  38. <groupId>junit</groupId>
  39. <artifactId>junit</artifactId>
  40. <version>4.7</version>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.google.gwt</groupId>
  45. <artifactId>gwt-user</artifactId>
  46. <version>${gwtversion}</version>
  47. <scope>provided</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.google.gwt</groupId>
  51. <artifactId>gwt-dev</artifactId>
  52. <version>${gwtversion}</version>
  53. <scope>provided</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.google.gwt</groupId>
  57. <artifactId>gwt-elemental</artifactId>
  58. <version>${gwtversion}</version>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <resources>
  63. <resource>
  64. <directory>${basedir}/src/main/java</directory>
  65. </resource>
  66. <resource>
  67. <directory>${basedir}/src/main/super</directory>
  68. </resource>
  69. <resource>
  70. <directory>${project.build.directory}/generated-resources</directory>
  71. </resource>
  72. </resources>
  73. <testResources>
  74. <testResource>
  75. <directory>${basedir}/src/test/java</directory>
  76. </testResource>
  77. <testResource>
  78. <directory>${basedir}/src/test/resources</directory>
  79. </testResource>
  80. </testResources>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.codehaus.mojo</groupId>
  84. <artifactId>emma-maven-plugin</artifactId>
  85. <version>1.0-alpha-1</version>
  86. </plugin>
  87. <!-- We use standard surefire plugin to run gwt tests instead of
  88. gwt-maven so as we can run coverage analysis with emma:emma -->
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-surefire-plugin</artifactId>
  92. <configuration>
  93. <additionalClasspathElements>
  94. <additionalClasspathElement>${basedir}/src/main/java</additionalClasspathElement>
  95. <additionalClasspathElement>${basedir}/src/test/java</additionalClasspathElement>
  96. </additionalClasspathElements>
  97. <systemPropertyVariables>
  98. <java.awt.headless>true</java.awt.headless>
  99. <gwt.args>${gwt.test.default} ${gwt.args}</gwt.args>
  100. </systemPropertyVariables>
  101. <forkMode>always</forkMode>
  102. <includes>
  103. <include>**/*SuiteTest.class</include>
  104. </includes>
  105. <useSystemClassLoader>false</useSystemClassLoader>
  106. </configuration>
  107. </plugin>
  108. <!-- We include elemental json implementation for JVM so as people
  109. using GQuery json builders and ajax in server side don't have
  110. to include that dependency -->
  111. <plugin>
  112. <artifactId>maven-dependency-plugin</artifactId>
  113. <executions>
  114. <execution>
  115. <goals>
  116. <goal>unpack-dependencies</goal>
  117. </goals>
  118. <phase>generate-resources</phase>
  119. <configuration>
  120. <includeGroupIds>com.google.gwt</includeGroupIds>
  121. <includeArtifactIds>gwt-elemental</includeArtifactIds>
  122. <excludeTransitive>true</excludeTransitive>
  123. <includes>elemental/json/**/*</includes>
  124. <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
  125. </configuration>
  126. </execution>
  127. </executions>
  128. </plugin>
  129. <!-- mvn java-formatter:format -->
  130. <plugin>
  131. <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
  132. <artifactId>maven-java-formatter-plugin</artifactId>
  133. <version>0.4</version>
  134. <configuration>
  135. <configFile>src/main/code-style/gwt-format.xml</configFile>
  136. <directories>
  137. <directory>src/main/java</directory>
  138. </directories>
  139. </configuration>
  140. </plugin>
  141. <!-- mvn checkstyle:checkstyle -->
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-checkstyle-plugin</artifactId>
  145. <configuration>
  146. <configLocation>src/main/code-style/gwt-checkstyle.xml</configLocation>
  147. </configuration>
  148. <executions>
  149. <execution>
  150. <id>checkstyle</id>
  151. <phase>validate</phase>
  152. <goals>
  153. <goal>check</goal>
  154. </goals>
  155. <configuration>
  156. <failOnViolation>true</failOnViolation>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. </project>