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.9KB

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