pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>my.vaadin</groupId>
  6. <artifactId>app</artifactId>
  7. <packaging>war</packaging>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <name>app</name>
  10. <prerequisites>
  11. <maven>3</maven>
  12. </prerequisites>
  13. <properties>
  14. <vaadin.version>8.0.0</vaadin.version>
  15. <vaadin.plugin.version>8.0.0</vaadin.plugin.version>
  16. <jetty.plugin.version>9.3.9.v20160517</jetty.plugin.version>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <maven.compiler.source>1.8</maven.compiler.source>
  19. <maven.compiler.target>1.8</maven.compiler.target>
  20. <!-- If there are no local customisations, this can also be "fetch" or "cdn" -->
  21. <vaadin.widgetset.mode>local</vaadin.widgetset.mode>
  22. </properties>
  23. <repositories>
  24. <repository>
  25. <id>vaadin-addons</id>
  26. <url>http://maven.vaadin.com/vaadin-addons</url>
  27. </repository>
  28. </repositories>
  29. <dependencyManagement>
  30. <dependencies>
  31. <dependency>
  32. <groupId>com.vaadin</groupId>
  33. <artifactId>vaadin-bom</artifactId>
  34. <version>${vaadin.version}</version>
  35. <type>pom</type>
  36. <scope>import</scope>
  37. </dependency>
  38. </dependencies>
  39. </dependencyManagement>
  40. <dependencies>
  41. <dependency>
  42. <groupId>javax.servlet</groupId>
  43. <artifactId>javax.servlet-api</artifactId>
  44. <version>3.0.1</version>
  45. <scope>provided</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.vaadin</groupId>
  49. <artifactId>vaadin-server</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.vaadin</groupId>
  53. <artifactId>vaadin-push</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.vaadin</groupId>
  57. <artifactId>vaadin-client-compiled</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.vaadin</groupId>
  61. <artifactId>vaadin-themes</artifactId>
  62. </dependency>
  63. </dependencies>
  64. <build>
  65. <plugins>
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-war-plugin</artifactId>
  69. <version>3.0.0</version>
  70. <configuration>
  71. <failOnMissingWebXml>false</failOnMissingWebXml>
  72. <!-- Exclude an unnecessary file generated by the GWT compiler. -->
  73. <packagingExcludes>WEB-INF/classes/VAADIN/widgetsets/WEB-INF/**</packagingExcludes>
  74. </configuration>
  75. </plugin>
  76. <plugin>
  77. <groupId>com.vaadin</groupId>
  78. <artifactId>vaadin-maven-plugin</artifactId>
  79. <version>${vaadin.plugin.version}</version>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>update-theme</goal>
  84. <goal>update-widgetset</goal>
  85. <goal>compile</goal>
  86. <!-- Comment out compile-theme goal to use on-the-fly theme compilation -->
  87. <goal>compile-theme</goal>
  88. </goals>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-clean-plugin</artifactId>
  95. <version>3.0.0</version>
  96. <!-- Clean up also any pre-compiled themes -->
  97. <configuration>
  98. <filesets>
  99. <fileset>
  100. <directory>src/main/webapp/VAADIN/themes</directory>
  101. <includes>
  102. <include>**/styles.css</include>
  103. <include>**/styles.scss.cache</include>
  104. </includes>
  105. </fileset>
  106. </filesets>
  107. </configuration>
  108. </plugin>
  109. <!-- The Jetty plugin allows us to easily test the development build by
  110. running jetty:run on the command line. -->
  111. <plugin>
  112. <groupId>org.eclipse.jetty</groupId>
  113. <artifactId>jetty-maven-plugin</artifactId>
  114. <version>${jetty.plugin.version}</version>
  115. <configuration>
  116. <scanIntervalSeconds>2</scanIntervalSeconds>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. <profiles>
  122. <profile>
  123. <!-- Vaadin pre-release repositories -->
  124. <id>vaadin-prerelease</id>
  125. <activation>
  126. <activeByDefault>false</activeByDefault>
  127. </activation>
  128. <repositories>
  129. <repository>
  130. <id>vaadin-prereleases</id>
  131. <url>http://maven.vaadin.com/vaadin-prereleases</url>
  132. </repository>
  133. <repository>
  134. <id>vaadin-snapshots</id>
  135. <url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
  136. <releases>
  137. <enabled>false</enabled>
  138. </releases>
  139. <snapshots>
  140. <enabled>true</enabled>
  141. </snapshots>
  142. </repository>
  143. </repositories>
  144. <pluginRepositories>
  145. <pluginRepository>
  146. <id>vaadin-prereleases</id>
  147. <url>http://maven.vaadin.com/vaadin-prereleases</url>
  148. </pluginRepository>
  149. <pluginRepository>
  150. <id>vaadin-snapshots</id>
  151. <url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
  152. <releases>
  153. <enabled>false</enabled>
  154. </releases>
  155. <snapshots>
  156. <enabled>true</enabled>
  157. </snapshots>
  158. </pluginRepository>
  159. </pluginRepositories>
  160. </profile>
  161. </profiles>
  162. </project>