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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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.10-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. <dependency>
  25. <groupId>org.osgi</groupId>
  26. <artifactId>osgi.core</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.osgi</groupId>
  30. <artifactId>osgi.cmpn</artifactId>
  31. </dependency>
  32. </dependencies>
  33. <build>
  34. <plugins>
  35. <plugin>
  36. <groupId>net.revelc.code.formatter</groupId>
  37. <artifactId>formatter-maven-plugin</artifactId>
  38. </plugin>
  39. <plugin>
  40. <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
  41. <artifactId>whitespace-maven-plugin</artifactId>
  42. </plugin>
  43. <!-- Generated Version.java -->
  44. <plugin>
  45. <groupId>org.codehaus.mojo</groupId>
  46. <artifactId>templating-maven-plugin</artifactId>
  47. <version>1.0.0</version>
  48. <executions>
  49. <execution>
  50. <goals>
  51. <goal>filter-sources</goal>
  52. </goals>
  53. </execution>
  54. </executions>
  55. </plugin>
  56. <!-- Copy needed GWT dependencies to package -->
  57. <plugin>
  58. <groupId>org.apache.maven.plugins</groupId>
  59. <artifactId>maven-dependency-plugin</artifactId>
  60. <executions>
  61. <execution>
  62. <id>unpack-dependencies</id>
  63. <phase>generate-resources</phase>
  64. <goals>
  65. <goal>unpack</goal>
  66. </goals>
  67. <configuration>
  68. <artifactItems>
  69. <artifactItem>
  70. <groupId>com.google.gwt</groupId>
  71. <artifactId>gwt-elemental</artifactId>
  72. <includes>
  73. elemental/json/**,
  74. elemental/util/Array*,
  75. elemental/util/Can*,
  76. elemental/util/Map*
  77. </includes>
  78. </artifactItem>
  79. </artifactItems>
  80. </configuration>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. <!-- Unpacked Dependencies as source -->
  85. <plugin>
  86. <groupId>org.codehaus.mojo</groupId>
  87. <artifactId>build-helper-maven-plugin</artifactId>
  88. <!-- Needs extra source folder for unpacked dependencies -->
  89. <executions>
  90. <execution>
  91. <id>add-source-path</id>
  92. <phase>generate-sources</phase>
  93. <goals>
  94. <goal>add-source</goal>
  95. </goals>
  96. <configuration>
  97. <sources>
  98. <source>${dependency.unpack.directory}</source>
  99. </sources>
  100. </configuration>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. <plugin>
  105. <artifactId>maven-resources-plugin</artifactId>
  106. <executions>
  107. <!-- Copy .java files to package -->
  108. <execution>
  109. <id>copy-sources</id>
  110. <!-- here the phase you need -->
  111. <phase>process-resources</phase>
  112. <goals>
  113. <goal>copy-resources</goal>
  114. </goals>
  115. <configuration>
  116. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  117. <resources>
  118. <resource>
  119. <directory>src/main/java</directory>
  120. <filtering>false</filtering>
  121. </resource>
  122. <resource>
  123. <directory>${project.build.directory}/generated-sources/java-templates</directory>
  124. <filtering>false</filtering>
  125. </resource>
  126. </resources>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <groupId>biz.aQute.bnd</groupId>
  133. <artifactId>bnd-maven-plugin</artifactId>
  134. </plugin>
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-jar-plugin</artifactId>
  138. <configuration>
  139. <archive>
  140. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  141. <index>false</index>
  142. <manifest>
  143. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  144. </manifest>
  145. </archive>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-checkstyle-plugin</artifactId>
  151. <executions>
  152. <execution>
  153. <goals>
  154. <goal>checkstyle</goal>
  155. </goals>
  156. <phase>process-sources</phase>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-surefire-plugin</artifactId>
  163. </plugin>
  164. </plugins>
  165. </build>
  166. </project>