pom created by gwt-maven-plugin-1.1-SNAPSHOT archetype


/ Published in: XML
Save to your folder(s)



Copy this code and paste it in your HTML
  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. <!--
  4. GWT-Maven archetype generated POM
  5. -->
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>fr.salvadordiaz.gwt.sample</groupId>
  8. <artifactId>maven-example</artifactId>
  9. <packaging>war</packaging>
  10. <version>1.0-SNAPSHOT</version>
  11. <name>gwt-maven-archetype-project</name>
  12.  
  13. <properties>
  14.  
  15. <!-- convenience to define GWT version in one place -->
  16. <gwt.version>1.6.4</gwt.version>
  17.  
  18. <!-- tell the compiler we can use 1.5 -->
  19. <maven.compiler.source>1.5</maven.compiler.source>
  20. <maven.compiler.target>1.5</maven.compiler.target>
  21.  
  22. </properties>
  23.  
  24. <dependencies>
  25.  
  26. <!-- GWT dependencies (from central repo) -->
  27. <dependency>
  28. <groupId>com.google.gwt</groupId>
  29. <artifactId>gwt-servlet</artifactId>
  30. <version>${gwt.version}</version>
  31. <scope>runtime</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.google.gwt</groupId>
  35. <artifactId>gwt-user</artifactId>
  36. <version>${gwt.version}</version>
  37. <scope>provided</scope>
  38. </dependency>
  39.  
  40. <!-- test -->
  41. <dependency>
  42. <groupId>junit</groupId>
  43. <artifactId>junit</artifactId>
  44. <version>4.4</version>
  45. <scope>test</scope>
  46. </dependency>
  47. </dependencies>
  48.  
  49. <build>
  50. <outputDirectory>war/WEB-INF/classes</outputDirectory>
  51. <plugins>
  52. <plugin>
  53. <groupId>org.codehaus.mojo</groupId>
  54. <artifactId>gwt-maven-plugin</artifactId>
  55. <version>1.1-SNAPSHOT</version>
  56. <executions>
  57. <execution>
  58. <goals>
  59. <goal>compile</goal>
  60. <goal>generateAsync</goal>
  61. <goal>test</goal>
  62. </goals>
  63. </execution>
  64. </executions>
  65. </plugin>
  66. <!--
  67. If you want to use the target/web.xml file mergewebxml produces,
  68. tell the war plugin to use it.
  69. Also, exclude what you want from the final artifact here.
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-war-plugin</artifactId>
  73. <configuration>
  74. <webXml>target/web.xml</webXml>
  75. <warSourceExcludes>.gwt-tmp/**</warSourceExcludes>
  76. </configuration>
  77. </plugin>
  78. -->
  79.  
  80. <plugin>
  81. <groupId>org.apache.maven.plugins</groupId>
  82. <artifactId>maven-compiler-plugin</artifactId>
  83. <version>2.0.2</version>
  84. <configuration>
  85. <source>${maven.compiler.source}</source>
  86. <target>${maven.compiler.target}</target>
  87. </configuration>
  88. </plugin>
  89. </plugins>
  90. </build>
  91.  
  92. </project>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.