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

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