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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. <parent>
  6. <groupId>com.vaadin</groupId>
  7. <artifactId>vaadin-root</artifactId>
  8. <version>7.7.0-SNAPSHOT</version>
  9. </parent>
  10. <groupId>com.vaadin</groupId>
  11. <artifactId>vaadin-client</artifactId>
  12. <name>vaadin-client</name>
  13. <packaging>jar</packaging>
  14. <url>https://vaadin.com/</url>
  15. <description>Vaadin client</description>
  16. <dependencies>
  17. <!-- LIBRARY DEPENDENCIES (compile time) -->
  18. <!-- Project modules -->
  19. <dependency>
  20. <groupId>com.vaadin</groupId>
  21. <artifactId>vaadin-shared</artifactId>
  22. <version>${project.version}</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.vaadin</groupId>
  26. <artifactId>vaadin-server</artifactId>
  27. <version>${project.version}</version>
  28. <exclusions>
  29. <exclusion>
  30. <groupId>com.vaadin</groupId>
  31. <artifactId>vaadin-sass-compiler</artifactId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <!-- gwt-user dependencies -->
  36. <dependency>
  37. <groupId>org.w3c.css</groupId>
  38. <artifactId>sac</artifactId>
  39. <version>1.3</version>
  40. </dependency>
  41. <!-- Bean Validation API -->
  42. <dependency>
  43. <groupId>javax.validation</groupId>
  44. <artifactId>validation-api</artifactId>
  45. <version>${javax.validation.version}</version>
  46. <scope>provided</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>javax.validation</groupId>
  50. <artifactId>validation-api</artifactId>
  51. <version>${javax.validation.version}</version>
  52. <classifier>sources</classifier>
  53. </dependency>
  54. <!-- Testing dependencies -->
  55. <dependency>
  56. <groupId>junit</groupId>
  57. <artifactId>junit</artifactId>
  58. <version>4.11</version>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.easymock</groupId>
  63. <artifactId>easymock</artifactId>
  64. <version>3.0</version>
  65. <scope>test</scope>
  66. </dependency>
  67. <!-- Needed GWT dependencies. Required parts are packaged to jar -->
  68. <dependency>
  69. <groupId>com.vaadin.external.gwt</groupId>
  70. <artifactId>gwt-user</artifactId>
  71. <version>${vaadin.gwt.version}</version>
  72. <scope>provided</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.vaadin.external.gwt</groupId>
  76. <artifactId>gwt-elemental</artifactId>
  77. <version>${vaadin.gwt.version}</version>
  78. <scope>provided</scope>
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <plugins>
  83. <!-- Copy needed GWT dependencies to package -->
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-dependency-plugin</artifactId>
  87. <executions>
  88. <execution>
  89. <id>unpack-dependencies</id>
  90. <phase>generate-resources</phase>
  91. <goals>
  92. <goal>unpack</goal>
  93. </goals>
  94. <configuration>
  95. <artifactItems>
  96. <artifactItem>
  97. <groupId>com.vaadin.external.gwt</groupId>
  98. <artifactId>gwt-user</artifactId>
  99. <excludes>
  100. META-INF/**,
  101. **/*.gwtar,
  102. com/google/gwt/*/server/**,
  103. com/google/gwt/*/shared/**,
  104. com/google/gwt/*/*/shared/**,
  105. com/google/web/bindery/*/shared/**,
  106. com/google/gwt/user/client/rpc/IsSerializable.*,
  107. com/google/gwt/thirdparty/streamhtmlparser/**,
  108. org/w3c/**,
  109. javax/servlet/**
  110. </excludes>
  111. </artifactItem>
  112. <artifactItem>
  113. <groupId>com.vaadin.external.gwt</groupId>
  114. <artifactId>gwt-elemental</artifactId>
  115. <excludes>META-INF/**</excludes>
  116. </artifactItem>
  117. </artifactItems>
  118. </configuration>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. <plugin>
  123. <artifactId>maven-resources-plugin</artifactId>
  124. <executions>
  125. <!-- Copy .java files to package -->
  126. <execution>
  127. <id>copy-sources</id>
  128. <!-- here the phase you need -->
  129. <phase>prepare-package</phase>
  130. <goals>
  131. <goal>copy-resources</goal>
  132. </goals>
  133. <configuration>
  134. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  135. <resources>
  136. <resource>
  137. <directory>src/main/resources</directory>
  138. <filtering>false</filtering>
  139. </resource>
  140. <resource>
  141. <directory>src/main/java</directory>
  142. <filtering>false</filtering>
  143. </resource>
  144. </resources>
  145. </configuration>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.felix</groupId>
  151. <artifactId>maven-bundle-plugin</artifactId>
  152. <extensions>true</extensions>
  153. <configuration>
  154. <instructions>
  155. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  156. <Export-Package>com.vaadin.*;version="${project.version}",com.google.*;version="${project.version}"</Export-Package>
  157. <Import-Package></Import-Package>
  158. </instructions>
  159. </configuration>
  160. <executions>
  161. <execution>
  162. <id>bundle-manifest</id>
  163. <phase>prepare-package</phase>
  164. <goals>
  165. <goal>manifest</goal>
  166. </goals>
  167. </execution>
  168. </executions>
  169. </plugin>
  170. <plugin>
  171. <groupId>org.apache.maven.plugins</groupId>
  172. <artifactId>maven-jar-plugin</artifactId>
  173. <configuration>
  174. <archive>
  175. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  176. <index>false</index>
  177. <manifest>
  178. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  179. </manifest>
  180. <manifestEntries>
  181. <Vaadin-Package-Version>1</Vaadin-Package-Version>
  182. <Vaadin-Widgetsets>com.vaadin.DefaultWidgetSet</Vaadin-Widgetsets>
  183. </manifestEntries>
  184. </archive>
  185. </configuration>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-surefire-plugin</artifactId>
  190. </plugin>
  191. </plugins>
  192. </build>
  193. </project>