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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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. <groupId>com.vaadin</groupId>
  11. <artifactId>vaadin-themes</artifactId>
  12. <name>vaadin-themes</name>
  13. <packaging>jar</packaging>
  14. <url>https://vaadin.com/</url>
  15. <description>Vaadin themes</description>
  16. <dependencies>
  17. <!-- Maven plugin scans for vaadin-server... -->
  18. <dependency>
  19. <groupId>${project.groupId}</groupId>
  20. <artifactId>vaadin-server</artifactId>
  21. <version>${project.version}</version>
  22. <scope>provided</scope>
  23. </dependency>
  24. <dependency>
  25. <groupId>${project.groupId}</groupId>
  26. <artifactId>vaadin-buildhelpers</artifactId>
  27. <version>${project.version}</version>
  28. <scope>provided</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.vaadin</groupId>
  32. <artifactId>vaadin-sass-compiler</artifactId>
  33. <version>${vaadin.sass.version}</version>
  34. <scope>provided</scope>
  35. </dependency>
  36. <!-- remove cssparser override once sass-compiler is updated -->
  37. <dependency>
  38. <groupId>net.sourceforge.cssparser</groupId>
  39. <artifactId>cssparser</artifactId>
  40. <version>0.9.11</version>
  41. <scope>provided</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.carrotsearch</groupId>
  45. <artifactId>smartsprites</artifactId>
  46. <version>0.2.10</version>
  47. <scope>provided</scope>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <plugins>
  52. <plugin>
  53. <artifactId>maven-resources-plugin</artifactId>
  54. <executions>
  55. <execution>
  56. <id>copy-theme-sources</id>
  57. <phase>generate-resources</phase>
  58. <goals>
  59. <goal>copy-resources</goal>
  60. </goals>
  61. <configuration>
  62. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  63. <resources>
  64. <resource>
  65. <directory>src/main/themes</directory>
  66. <filtering>false</filtering>
  67. <excludes>
  68. <exclude>**/base.scss</exclude>
  69. <exclude>**/valo/shared/_global.scss</exclude>
  70. </excludes>
  71. </resource>
  72. <resource>
  73. <directory>src/main/themes</directory>
  74. <filtering>true</filtering>
  75. <includes>
  76. <include>**/base.scss</include>
  77. <include>**/valo/shared/_global.scss</include>
  78. </includes>
  79. </resource>
  80. </resources>
  81. </configuration>
  82. </execution>
  83. </executions>
  84. </plugin>
  85. <plugin>
  86. <groupId>com.vaadin</groupId>
  87. <artifactId>vaadin-maven-plugin</artifactId>
  88. <configuration>
  89. <compressTheme>true</compressTheme>
  90. <warSourceDirectory>${project.build.outputDirectory}</warSourceDirectory>
  91. </configuration>
  92. <executions>
  93. <execution>
  94. <phase>process-resources</phase>
  95. <goals>
  96. <goal>compile-theme</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.codehaus.mojo</groupId>
  103. <artifactId>exec-maven-plugin</artifactId>
  104. <executions>
  105. <execution>
  106. <id>compile-legacy-base</id>
  107. <phase>process-resources</phase>
  108. <goals>
  109. <goal>exec</goal>
  110. </goals>
  111. <configuration>
  112. <classpathScope>compile</classpathScope>
  113. <executable>${java.home}/bin/java</executable>
  114. <arguments>
  115. <argument>-classpath</argument>
  116. <classpath />
  117. <argument>com.vaadin.sass.SassCompiler</argument>
  118. <argument>
  119. ${project.build.outputDirectory}/VAADIN/themes/base/legacy-styles.scss</argument>
  120. <argument>
  121. ${project.build.outputDirectory}/VAADIN/themes/base/legacy-styles.css</argument>
  122. </arguments>
  123. </configuration>
  124. </execution>
  125. <execution>
  126. <id>compile-legacy-chameleon</id>
  127. <phase>process-resources</phase>
  128. <goals>
  129. <goal>exec</goal>
  130. </goals>
  131. <configuration>
  132. <classpathScope>compile</classpathScope>
  133. <executable>${java.home}/bin/java</executable>
  134. <arguments>
  135. <argument>-classpath</argument>
  136. <classpath />
  137. <argument>com.vaadin.sass.SassCompiler</argument>
  138. <argument>
  139. ${project.build.outputDirectory}/VAADIN/themes/chameleon/legacy-styles.scss</argument>
  140. <argument>
  141. ${project.build.outputDirectory}/VAADIN/themes/chameleon/legacy-styles.css</argument>
  142. </arguments>
  143. </configuration>
  144. </execution>
  145. <execution>
  146. <id>compile-legacy-liferay</id>
  147. <phase>process-resources</phase>
  148. <goals>
  149. <goal>exec</goal>
  150. </goals>
  151. <configuration>
  152. <classpathScope>compile</classpathScope>
  153. <executable>${java.home}/bin/java</executable>
  154. <arguments>
  155. <argument>-classpath</argument>
  156. <classpath />
  157. <argument>com.vaadin.sass.SassCompiler</argument>
  158. <argument>
  159. ${project.build.outputDirectory}/VAADIN/themes/liferay/legacy-styles.scss</argument>
  160. <argument>
  161. ${project.build.outputDirectory}/VAADIN/themes/liferay/legacy-styles.css</argument>
  162. </arguments>
  163. </configuration>
  164. </execution>
  165. <execution>
  166. <id>compile-legacy-reindeer</id>
  167. <phase>process-resources</phase>
  168. <goals>
  169. <goal>exec</goal>
  170. </goals>
  171. <configuration>
  172. <classpathScope>compile</classpathScope>
  173. <executable>${java.home}/bin/java</executable>
  174. <arguments>
  175. <argument>-classpath</argument>
  176. <classpath />
  177. <argument>com.vaadin.sass.SassCompiler</argument>
  178. <argument>
  179. ${project.build.outputDirectory}/VAADIN/themes/reindeer/legacy-styles.scss</argument>
  180. <argument>
  181. ${project.build.outputDirectory}/VAADIN/themes/reindeer/legacy-styles.css</argument>
  182. </arguments>
  183. </configuration>
  184. </execution>
  185. <execution>
  186. <id>compile-legacy-runo</id>
  187. <phase>process-resources</phase>
  188. <goals>
  189. <goal>exec</goal>
  190. </goals>
  191. <configuration>
  192. <classpathScope>compile</classpathScope>
  193. <executable>${java.home}/bin/java</executable>
  194. <arguments>
  195. <argument>-classpath</argument>
  196. <classpath />
  197. <argument>com.vaadin.sass.SassCompiler</argument>
  198. <argument>
  199. ${project.build.outputDirectory}/VAADIN/themes/runo/legacy-styles.scss</argument>
  200. <argument>
  201. ${project.build.outputDirectory}/VAADIN/themes/runo/legacy-styles.css</argument>
  202. </arguments>
  203. </configuration>
  204. </execution>
  205. <execution>
  206. <id>smart-sprite-reindeer</id>
  207. <phase>process-resources</phase>
  208. <goals>
  209. <goal>exec</goal>
  210. </goals>
  211. <configuration>
  212. <classpathScope>compile</classpathScope>
  213. <executable>${java.home}/bin/java</executable>
  214. <arguments>
  215. <argument>-classpath</argument>
  216. <classpath />
  217. <argument>org.carrot2.labs.smartsprites.SmartSprites</argument>
  218. <argument>--sprite-png-depth</argument>
  219. <argument>AUTO</argument>
  220. <argument>--css-file-encoding</argument>
  221. <argument>UTF-8</argument>
  222. <argument>--root-dir-path</argument>
  223. <argument>${project.build.outputDirectory}/VAADIN/themes/reindeer</argument>
  224. <argument>--log-level</argument>
  225. <argument>WARN</argument>
  226. </arguments>
  227. </configuration>
  228. </execution>
  229. <execution>
  230. <id>generate-export-package</id>
  231. <phase>package</phase>
  232. <goals>
  233. <goal>exec</goal>
  234. </goals>
  235. <configuration>
  236. <classpathScope>compile</classpathScope>
  237. <executable>${java.home}/bin/java</executable>
  238. <arguments>
  239. <argument>-Dvaadin.version=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</argument>
  240. <argument>-DincludeNumberPackages=0</argument>
  241. <argument>-classpath</argument>
  242. <classpath />
  243. <argument>com.vaadin.buildhelpers.GeneratePackageExports</argument>
  244. <argument>${project.build.directory}/${project.build.finalName}.${project.packaging}</argument>
  245. <argument>VAADIN/themes</argument>
  246. </arguments>
  247. </configuration>
  248. </execution>
  249. </executions>
  250. </plugin>
  251. <plugin>
  252. <artifactId>maven-antrun-plugin</artifactId>
  253. <executions>
  254. <execution>
  255. <id>repackage-reindeer</id>
  256. <phase>process-classes</phase>
  257. <goals>
  258. <goal>run</goal>
  259. </goals>
  260. <configuration>
  261. <target>
  262. <property name="reindeer.theme.path"
  263. value="${project.build.outputDirectory}/VAADIN/themes/reindeer/" />
  264. <move
  265. file="${reindeer.theme.path}/styles-sprite.css"
  266. tofile="${reindeer.theme.path}/styles.css" />
  267. <move
  268. file="${reindeer.theme.path}/legacy-styles-sprite.css"
  269. tofile="${reindeer.theme.path}/legacy-styles.css" />
  270. <gzip
  271. src="${reindeer.theme.path}/styles.css"
  272. destfile="${reindeer.theme.path}/styles.css.gz" />
  273. </target>
  274. </configuration>
  275. </execution>
  276. </executions>
  277. </plugin>
  278. <plugin>
  279. <groupId>org.apache.felix</groupId>
  280. <artifactId>maven-bundle-plugin</artifactId>
  281. <extensions>true</extensions>
  282. <configuration>
  283. <instructions>
  284. <Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</Bundle-Version>
  285. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  286. <!-- Export package is handled in exec plugin -->
  287. <Export-Package></Export-Package>
  288. <Import-Package></Import-Package>
  289. </instructions>
  290. </configuration>
  291. <executions>
  292. <execution>
  293. <id>bundle-manifest</id>
  294. <phase>prepare-package</phase>
  295. <goals>
  296. <goal>manifest</goal>
  297. </goals>
  298. </execution>
  299. </executions>
  300. </plugin>
  301. <plugin>
  302. <groupId>org.apache.maven.plugins</groupId>
  303. <artifactId>maven-jar-plugin</artifactId>
  304. <version>2.6</version>
  305. <configuration>
  306. <archive>
  307. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  308. <index>false</index>
  309. <manifest>
  310. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  311. </manifest>
  312. </archive>
  313. </configuration>
  314. </plugin>
  315. </plugins>
  316. <pluginManagement>
  317. <plugins>
  318. <plugin>
  319. <artifactId>maven-source-plugin</artifactId>
  320. <configuration>
  321. <skipSource>true</skipSource>
  322. </configuration>
  323. </plugin>
  324. <!--This plugin's configuration is used to store Eclipse
  325. m2e settings only. It has no influence on the Maven build itself. -->
  326. <plugin>
  327. <groupId>org.eclipse.m2e</groupId>
  328. <artifactId>lifecycle-mapping</artifactId>
  329. <version>1.0.0</version>
  330. <configuration>
  331. <lifecycleMappingMetadata>
  332. <pluginExecutions>
  333. <pluginExecution>
  334. <pluginExecutionFilter>
  335. <groupId>
  336. org.codehaus.mojo
  337. </groupId>
  338. <artifactId>
  339. exec-maven-plugin
  340. </artifactId>
  341. <versionRange>
  342. [1.4.0,)
  343. </versionRange>
  344. <goals>
  345. <goal>exec</goal>
  346. </goals>
  347. </pluginExecutionFilter>
  348. <action>
  349. <ignore />
  350. </action>
  351. </pluginExecution>
  352. </pluginExecutions>
  353. </lifecycleMappingMetadata>
  354. </configuration>
  355. </plugin>
  356. </plugins>
  357. </pluginManagement>
  358. </build>
  359. </project>