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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. <artifactId>vaadin-shared</artifactId>
  11. <name>vaadin-shared</name>
  12. <packaging>jar</packaging>
  13. <properties>
  14. <flute.version>1.3.0.gg2</flute.version>
  15. <streamhtmlparser.version>0.0.10.vaadin1</streamhtmlparser.version>
  16. </properties>
  17. <organization>
  18. <name>Vaadin Ltd</name>
  19. </organization>
  20. <url>https://vaadin.com/</url>
  21. <description>Vaadin shared</description>
  22. <dependencies>
  23. <!-- Actual dependencies -->
  24. <dependency>
  25. <groupId>com.vaadin.external.flute</groupId>
  26. <artifactId>flute</artifactId>
  27. <version>${flute.version}</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.vaadin.external.streamhtmlparser</groupId>
  31. <artifactId>streamhtmlparser-jsilver</artifactId>
  32. <version>${streamhtmlparser.version}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.vaadin.external.google</groupId>
  36. <artifactId>guava</artifactId>
  37. <version>${guava.version}</version>
  38. </dependency>
  39. <!-- Needed GWT dependencies. Required parts are packaged to jar -->
  40. <dependency>
  41. <groupId>com.vaadin.external.gwt</groupId>
  42. <artifactId>gwt-elemental</artifactId>
  43. <version>${vaadin.gwt.version}</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.vaadin.external.gwt</groupId>
  48. <artifactId>gwt-user</artifactId>
  49. <version>${vaadin.gwt.version}</version>
  50. <scope>provided</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>junit</groupId>
  54. <artifactId>junit</artifactId>
  55. <version>${junit.version}</version>
  56. <scope>test</scope>
  57. </dependency>
  58. </dependencies>
  59. <build>
  60. <plugins>
  61. <!-- Generated Version.java -->
  62. <plugin>
  63. <groupId>org.codehaus.mojo</groupId>
  64. <artifactId>templating-maven-plugin</artifactId>
  65. <version>1.0.0</version>
  66. <executions>
  67. <execution>
  68. <goals>
  69. <goal>filter-sources</goal>
  70. </goals>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <!-- Copy needed GWT dependencies to package -->
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-dependency-plugin</artifactId>
  78. <executions>
  79. <execution>
  80. <id>unpack-dependencies</id>
  81. <phase>generate-resources</phase>
  82. <goals>
  83. <goal>unpack</goal>
  84. </goals>
  85. <configuration>
  86. <artifactItems>
  87. <artifactItem>
  88. <groupId>com.vaadin.external.gwt</groupId>
  89. <artifactId>gwt-elemental</artifactId>
  90. <includes>
  91. elemental/json/**,
  92. elemental/util/Array*,
  93. elemental/util/Can*,
  94. elemental/util/Map*
  95. </includes>
  96. </artifactItem>
  97. <artifactItem>
  98. <groupId>com.vaadin.external.gwt</groupId>
  99. <artifactId>gwt-user</artifactId>
  100. <includes>
  101. com/google/gwt/*/shared/**,
  102. com/google/gwt/*/*/shared/**,
  103. com/google/web/bindery/*/shared/**,
  104. com/google/gwt/user/client/rpc/IsSerializable.*
  105. </includes>
  106. </artifactItem>
  107. </artifactItems>
  108. </configuration>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <plugin>
  113. <artifactId>maven-resources-plugin</artifactId>
  114. <executions>
  115. <!-- Copy .java files to package -->
  116. <execution>
  117. <id>copy-sources</id>
  118. <!-- here the phase you need -->
  119. <phase>prepare-package</phase>
  120. <goals>
  121. <goal>copy-resources</goal>
  122. </goals>
  123. <configuration>
  124. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  125. <resources>
  126. <resource>
  127. <directory>src/main/java</directory>
  128. <filtering>false</filtering>
  129. </resource>
  130. <resource>
  131. <directory>${project.build.directory}/generated-sources/java-templates</directory>
  132. <filtering>false</filtering>
  133. </resource>
  134. </resources>
  135. </configuration>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.apache.felix</groupId>
  141. <artifactId>maven-bundle-plugin</artifactId>
  142. <extensions>true</extensions>
  143. <configuration>
  144. <instructions>
  145. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  146. <Export-Package>com.vaadin.*;version="${project.version}",com.google.*;version="${project.version}",elemental.*;version="${project.version}"</Export-Package>
  147. <Import-Package>com.google.gwt.thirdparty.streamhtmlparser;version="${streamhtmlparser.version}",
  148. com.google.gwt.thirdparty.streamhtmlparser.impl;version="${streamhtmlparser.version}",
  149. com.google.gwt.thirdparty.streamhtmlparser.util;version="${streamhtmlparser.version}",
  150. org.w3c.flute.parser;version="${flute.version}",
  151. org.w3c.flute.parser.selectors;version="${flute.version}",
  152. org.w3c.flute.util;version="${flute.version}"</Import-Package>
  153. <Require-Bundle>com.google.gwt.thirdparty.guava;bundle-version="${guava.version}"</Require-Bundle>
  154. </instructions>
  155. </configuration>
  156. <executions>
  157. <execution>
  158. <id>bundle-manifest</id>
  159. <phase>prepare-package</phase>
  160. <goals>
  161. <goal>manifest</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-jar-plugin</artifactId>
  169. <configuration>
  170. <archive>
  171. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  172. <index>false</index>
  173. <manifest>
  174. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  175. </manifest>
  176. </archive>
  177. </configuration>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-surefire-plugin</artifactId>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </project>