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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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-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>JavaSE-1.6</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/VBrowserDetails*,
  117. com/vaadin/shared/data/sort/SortDirection*
  118. </includes>
  119. <excludes>
  120. com/vaadin/shared/**/*Rpc.*,
  121. com/vaadin/shared/**/*Rpc$*.*,
  122. com/vaadin/shared/**/*State.*,
  123. com/vaadin/shared/**/*State$*.*
  124. </excludes>
  125. </artifactItem>
  126. <artifactItem>
  127. <groupId>com.vaadin</groupId>
  128. <artifactId>vaadin-client-compiler</artifactId>
  129. <includes>
  130. com/vaadin/sass/linker/*.*
  131. </includes>
  132. </artifactItem>
  133. <artifactItem>
  134. <groupId>com.vaadin</groupId>
  135. <artifactId>vaadin-themes</artifactId>
  136. <includes>
  137. /VAADIN/themes/valo/**,
  138. /VAADIN/themes/base/**
  139. </includes>
  140. <outputDirectory>${project.build.directory}/themes</outputDirectory>
  141. </artifactItem>
  142. </artifactItems>
  143. </configuration>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. <plugin>
  148. <artifactId>maven-resources-plugin</artifactId>
  149. <executions>
  150. <!-- Copy .java files to package -->
  151. <execution>
  152. <id>copy-sources</id>
  153. <!-- here the phase you need -->
  154. <phase>prepare-package</phase>
  155. <goals>
  156. <goal>copy-resources</goal>
  157. </goals>
  158. <configuration>
  159. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  160. <resources>
  161. <resource>
  162. <directory>src/main/java</directory>
  163. <filtering>false</filtering>
  164. </resource>
  165. </resources>
  166. </configuration>
  167. </execution>
  168. <execution>
  169. <id>copy-themes</id>
  170. <!-- here the phase you need -->
  171. <phase>prepare-package</phase>
  172. <goals>
  173. <goal>copy-resources</goal>
  174. </goals>
  175. <configuration>
  176. <outputDirectory>${project.build.outputDirectory}/com/vaadin/themes/public</outputDirectory>
  177. <resources>
  178. <resource>
  179. <directory>${project.build.directory}/themes/VAADIN/themes</directory>
  180. <filtering>false</filtering>
  181. </resource>
  182. </resources>
  183. </configuration>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-checkstyle-plugin</artifactId>
  190. <executions>
  191. <execution>
  192. <goals>
  193. <goal>checkstyle</goal>
  194. </goals>
  195. <phase>process-sources</phase>
  196. </execution>
  197. </executions>
  198. </plugin>
  199. <plugin>
  200. <groupId>org.codehaus.mojo</groupId>
  201. <artifactId>exec-maven-plugin</artifactId>
  202. <executions>
  203. <execution>
  204. <id>generate-export-package</id>
  205. <phase>package</phase>
  206. <goals>
  207. <goal>exec</goal>
  208. </goals>
  209. <configuration>
  210. <classpathScope>compile</classpathScope>
  211. <executable>${java.home}/bin/java</executable>
  212. <arguments>
  213. <argument>-Dvaadin.version=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</argument>
  214. <argument>-DincludeNumberPackages=1</argument>
  215. <argument>-classpath</argument>
  216. <classpath/>
  217. <argument>com.vaadin.buildhelpers.GeneratePackageExports</argument>
  218. <argument>${project.build.directory}/${project.build.finalName}.${project.packaging}
  219. </argument>
  220. <argument>com/vaadin</argument>
  221. </arguments>
  222. </configuration>
  223. </execution>
  224. </executions>
  225. </plugin>
  226. <plugin>
  227. <groupId>org.apache.maven.plugins</groupId>
  228. <artifactId>maven-jar-plugin</artifactId>
  229. <version>2.6</version>
  230. <configuration>
  231. <archive>
  232. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  233. <index>false</index>
  234. <manifest>
  235. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  236. </manifest>
  237. </archive>
  238. </configuration>
  239. </plugin>
  240. </plugins>
  241. </build>
  242. </project>