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

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