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

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