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

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