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

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