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 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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-widgets</artifactId>
  11. <name>vaadin-widgets</name>
  12. <packaging>jar</packaging>
  13. <url>https://vaadin.com/</url>
  14. <description>Vaadin widgets</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>${project.groupId}</groupId>
  18. <artifactId>vaadin-client</artifactId>
  19. <version>${project.version}</version>
  20. <scope>provided</scope>
  21. </dependency>
  22. <dependency>
  23. <groupId>${project.groupId}</groupId>
  24. <artifactId>vaadin-shared</artifactId>
  25. <version>${project.version}</version>
  26. <scope>provided</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>${project.groupId}</groupId>
  30. <artifactId>vaadin-client-compiler</artifactId>
  31. <version>${project.version}</version>
  32. <scope>provided</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>${project.groupId}</groupId>
  36. <artifactId>vaadin-themes</artifactId>
  37. <version>${project.version}</version>
  38. <scope>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>${project.groupId}</groupId>
  42. <artifactId>vaadin-buildhelpers</artifactId>
  43. <version>${project.version}</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. </dependencies>
  47. <build>
  48. <plugins>
  49. <plugin>
  50. <groupId>org.apache.felix</groupId>
  51. <artifactId>maven-bundle-plugin</artifactId>
  52. <extensions>true</extensions>
  53. <configuration>
  54. <instructions>
  55. <Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</Bundle-Version>
  56. <Bundle-RequiredExecutionEnvironment>${osgi.execution.environment}</Bundle-RequiredExecutionEnvironment>
  57. <!-- Export package is handled in exec plugin -->
  58. <Export-Package></Export-Package>
  59. <Import-Package></Import-Package>
  60. </instructions>
  61. </configuration>
  62. <executions>
  63. <execution>
  64. <id>bundle-manifest</id>
  65. <phase>prepare-package</phase>
  66. <goals>
  67. <goal>manifest</goal>
  68. </goals>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-dependency-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <id>unpack-dependencies</id>
  78. <phase>generate-resources</phase>
  79. <goals>
  80. <goal>unpack</goal>
  81. </goals>
  82. <configuration>
  83. <artifactItems>
  84. <artifactItem>
  85. <groupId>com.vaadin</groupId>
  86. <artifactId>vaadin-client</artifactId>
  87. <includes>
  88. com/vaadin/*.gwt.xml,
  89. com/vaadin/client/BrowserInfo*,
  90. com/vaadin/client/AnimationUtil*,
  91. com/vaadin/client/ComputedStyle*,
  92. com/vaadin/client/DeferredWorker*,
  93. com/vaadin/client/Profiler*,
  94. com/vaadin/client/StyleConstants*,
  95. com/vaadin/client/WidgetUtil*,
  96. com/vaadin/client/ui/FocusUtil*,
  97. com/vaadin/client/data/**,
  98. com/vaadin/client/widget/**,
  99. com/vaadin/client/Focusable*,
  100. com/vaadin/client/widgets/**,
  101. com/vaadin/client/renderers/**,
  102. com/vaadin/client/ui/SubPartAware*,
  103. com/vaadin/client/ui/VProgressBar*,
  104. com/vaadin/client/ui/dd/DragAndDropHandler*,
  105. com/vaadin/client/ui/dd/DragHandle*,
  106. com/vaadin/client/VSchedulerImpl*
  107. </includes>
  108. </artifactItem>
  109. <artifactItem>
  110. <groupId>com.vaadin</groupId>
  111. <artifactId>vaadin-shared</artifactId>
  112. <includes>
  113. com/vaadin/shared/ui/grid/*.*,
  114. com/vaadin/shared/ui/grid/**/*.*,
  115. com/vaadin/shared/util/SharedUtil*,
  116. com/vaadin/shared/Registration*,
  117. com/vaadin/shared/VBrowserDetails*,
  118. com/vaadin/shared/data/sort/SortDirection*
  119. </includes>
  120. <excludes>
  121. com/vaadin/shared/**/*Rpc.*,
  122. com/vaadin/shared/**/*Rpc$*.*,
  123. com/vaadin/shared/**/*State.*,
  124. com/vaadin/shared/**/*State$*.*
  125. </excludes>
  126. </artifactItem>
  127. <artifactItem>
  128. <groupId>com.vaadin</groupId>
  129. <artifactId>vaadin-client-compiler</artifactId>
  130. <includes>
  131. com/vaadin/sass/linker/*.*
  132. </includes>
  133. </artifactItem>
  134. <artifactItem>
  135. <groupId>com.vaadin</groupId>
  136. <artifactId>vaadin-themes</artifactId>
  137. <includes>
  138. /VAADIN/themes/valo/**,
  139. /VAADIN/themes/base/**
  140. </includes>
  141. <outputDirectory>${project.build.directory}/themes</outputDirectory>
  142. </artifactItem>
  143. </artifactItems>
  144. </configuration>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. <plugin>
  149. <artifactId>maven-resources-plugin</artifactId>
  150. <executions>
  151. <!-- Copy .java files to package -->
  152. <execution>
  153. <id>copy-sources</id>
  154. <!-- here the phase you need -->
  155. <phase>prepare-package</phase>
  156. <goals>
  157. <goal>copy-resources</goal>
  158. </goals>
  159. <configuration>
  160. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  161. <resources>
  162. <resource>
  163. <directory>src/main/java</directory>
  164. <filtering>false</filtering>
  165. </resource>
  166. </resources>
  167. </configuration>
  168. </execution>
  169. <execution>
  170. <id>copy-themes</id>
  171. <!-- here the phase you need -->
  172. <phase>prepare-package</phase>
  173. <goals>
  174. <goal>copy-resources</goal>
  175. </goals>
  176. <configuration>
  177. <outputDirectory>${project.build.outputDirectory}/com/vaadin/themes/public</outputDirectory>
  178. <resources>
  179. <resource>
  180. <directory>${project.build.directory}/themes/VAADIN/themes</directory>
  181. <filtering>false</filtering>
  182. </resource>
  183. </resources>
  184. </configuration>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-checkstyle-plugin</artifactId>
  191. <executions>
  192. <execution>
  193. <goals>
  194. <goal>checkstyle</goal>
  195. </goals>
  196. <phase>process-sources</phase>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.codehaus.mojo</groupId>
  202. <artifactId>exec-maven-plugin</artifactId>
  203. <executions>
  204. <execution>
  205. <id>generate-export-package</id>
  206. <phase>package</phase>
  207. <goals>
  208. <goal>exec</goal>
  209. </goals>
  210. <configuration>
  211. <classpathScope>compile</classpathScope>
  212. <executable>${java.home}/bin/java</executable>
  213. <arguments>
  214. <argument>-Dvaadin.version=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</argument>
  215. <argument>-DincludeNumberPackages=1</argument>
  216. <argument>-classpath</argument>
  217. <classpath />
  218. <argument>com.vaadin.buildhelpers.GeneratePackageExports</argument>
  219. <argument>${project.build.directory}/${project.build.finalName}.${project.packaging}
  220. </argument>
  221. <argument>com/vaadin</argument>
  222. </arguments>
  223. </configuration>
  224. </execution>
  225. </executions>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-jar-plugin</artifactId>
  230. <version>2.6</version>
  231. <configuration>
  232. <archive>
  233. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  234. <index>false</index>
  235. <manifest>
  236. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  237. </manifest>
  238. </archive>
  239. </configuration>
  240. </plugin>
  241. </plugins>
  242. </build>
  243. </project>