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

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