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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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> ${project.build.outputDirectory}/VAADIN/themes/base/legacy-styles.scss</argument>
  119. <argument> ${project.build.outputDirectory}/VAADIN/themes/base/legacy-styles.css</argument>
  120. </arguments>
  121. </configuration>
  122. </execution>
  123. <execution>
  124. <id>compile-legacy-chameleon</id>
  125. <phase>process-resources</phase>
  126. <goals>
  127. <goal>exec</goal>
  128. </goals>
  129. <configuration>
  130. <classpathScope>compile</classpathScope>
  131. <executable>${java.home}/bin/java</executable>
  132. <arguments>
  133. <argument>-classpath</argument>
  134. <classpath />
  135. <argument>com.vaadin.sass.SassCompiler</argument>
  136. <argument> ${project.build.outputDirectory}/VAADIN/themes/chameleon/legacy-styles.scss</argument>
  137. <argument> ${project.build.outputDirectory}/VAADIN/themes/chameleon/legacy-styles.css</argument>
  138. </arguments>
  139. </configuration>
  140. </execution>
  141. <execution>
  142. <id>compile-legacy-liferay</id>
  143. <phase>process-resources</phase>
  144. <goals>
  145. <goal>exec</goal>
  146. </goals>
  147. <configuration>
  148. <classpathScope>compile</classpathScope>
  149. <executable>${java.home}/bin/java</executable>
  150. <arguments>
  151. <argument>-classpath</argument>
  152. <classpath />
  153. <argument>com.vaadin.sass.SassCompiler</argument>
  154. <argument> ${project.build.outputDirectory}/VAADIN/themes/liferay/legacy-styles.scss</argument>
  155. <argument> ${project.build.outputDirectory}/VAADIN/themes/liferay/legacy-styles.css</argument>
  156. </arguments>
  157. </configuration>
  158. </execution>
  159. <execution>
  160. <id>compile-legacy-reindeer</id>
  161. <phase>process-resources</phase>
  162. <goals>
  163. <goal>exec</goal>
  164. </goals>
  165. <configuration>
  166. <classpathScope>compile</classpathScope>
  167. <executable>${java.home}/bin/java</executable>
  168. <arguments>
  169. <argument>-classpath</argument>
  170. <classpath />
  171. <argument>com.vaadin.sass.SassCompiler</argument>
  172. <argument> ${project.build.outputDirectory}/VAADIN/themes/reindeer/legacy-styles.scss</argument>
  173. <argument> ${project.build.outputDirectory}/VAADIN/themes/reindeer/legacy-styles.css</argument>
  174. </arguments>
  175. </configuration>
  176. </execution>
  177. <execution>
  178. <id>compile-legacy-runo</id>
  179. <phase>process-resources</phase>
  180. <goals>
  181. <goal>exec</goal>
  182. </goals>
  183. <configuration>
  184. <classpathScope>compile</classpathScope>
  185. <executable>${java.home}/bin/java</executable>
  186. <arguments>
  187. <argument>-classpath</argument>
  188. <classpath />
  189. <argument>com.vaadin.sass.SassCompiler</argument>
  190. <argument> ${project.build.outputDirectory}/VAADIN/themes/runo/legacy-styles.scss</argument>
  191. <argument> ${project.build.outputDirectory}/VAADIN/themes/runo/legacy-styles.css</argument>
  192. </arguments>
  193. </configuration>
  194. </execution>
  195. <execution>
  196. <id>smart-sprite-reindeer</id>
  197. <phase>process-resources</phase>
  198. <goals>
  199. <goal>exec</goal>
  200. </goals>
  201. <configuration>
  202. <classpathScope>compile</classpathScope>
  203. <executable>${java.home}/bin/java</executable>
  204. <arguments>
  205. <argument>-classpath</argument>
  206. <classpath />
  207. <argument>org.carrot2.labs.smartsprites.SmartSprites</argument>
  208. <argument>--sprite-png-depth</argument>
  209. <argument>AUTO</argument>
  210. <argument>--css-file-encoding</argument>
  211. <argument>UTF-8</argument>
  212. <argument>--root-dir-path</argument>
  213. <argument>${project.build.outputDirectory}/VAADIN/themes/reindeer</argument>
  214. <argument>--log-level</argument>
  215. <argument>WARN</argument>
  216. </arguments>
  217. </configuration>
  218. </execution>
  219. <execution>
  220. <id>generate-export-package</id>
  221. <phase>package</phase>
  222. <goals>
  223. <goal>exec</goal>
  224. </goals>
  225. <configuration>
  226. <classpathScope>compile</classpathScope>
  227. <executable>${java.home}/bin/java</executable>
  228. <arguments>
  229. <argument>-Dvaadin.version=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</argument>
  230. <argument>-DincludeNumberPackages=0</argument>
  231. <argument>-classpath</argument>
  232. <classpath />
  233. <argument>com.vaadin.buildhelpers.GeneratePackageExports</argument>
  234. <argument>${project.build.directory}/${project.build.finalName}.${project.packaging}</argument>
  235. <argument>VAADIN/themes</argument>
  236. </arguments>
  237. </configuration>
  238. </execution>
  239. </executions>
  240. </plugin>
  241. <plugin>
  242. <artifactId>maven-antrun-plugin</artifactId>
  243. <executions>
  244. <execution>
  245. <id>repackage-reindeer</id>
  246. <phase>process-classes</phase>
  247. <goals>
  248. <goal>run</goal>
  249. </goals>
  250. <configuration>
  251. <target>
  252. <property name="reindeer.theme.path"
  253. value="${project.build.outputDirectory}/VAADIN/themes/reindeer/" />
  254. <move file="${reindeer.theme.path}/styles-sprite.css"
  255. tofile="${reindeer.theme.path}/styles.css" />
  256. <move file="${reindeer.theme.path}/legacy-styles-sprite.css"
  257. tofile="${reindeer.theme.path}/legacy-styles.css" />
  258. <gzip src="${reindeer.theme.path}/styles.css" destfile="${reindeer.theme.path}/styles.css.gz" />
  259. </target>
  260. </configuration>
  261. </execution>
  262. </executions>
  263. </plugin>
  264. <plugin>
  265. <groupId>org.apache.felix</groupId>
  266. <artifactId>maven-bundle-plugin</artifactId>
  267. <extensions>true</extensions>
  268. <configuration>
  269. <instructions>
  270. <Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</Bundle-Version>
  271. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  272. <!-- Export package is handled in exec plugin -->
  273. <Export-Package></Export-Package>
  274. <Import-Package></Import-Package>
  275. </instructions>
  276. </configuration>
  277. <executions>
  278. <execution>
  279. <id>bundle-manifest</id>
  280. <phase>prepare-package</phase>
  281. <goals>
  282. <goal>manifest</goal>
  283. </goals>
  284. </execution>
  285. </executions>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-jar-plugin</artifactId>
  290. <version>2.6</version>
  291. <configuration>
  292. <archive>
  293. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  294. <index>false</index>
  295. <manifest>
  296. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  297. </manifest>
  298. </archive>
  299. </configuration>
  300. </plugin>
  301. </plugins>
  302. <pluginManagement>
  303. <plugins>
  304. <plugin>
  305. <artifactId>maven-source-plugin</artifactId>
  306. <configuration>
  307. <skipSource>true</skipSource>
  308. </configuration>
  309. </plugin>
  310. <!--This plugin's configuration is used to store Eclipse m2e settings
  311. only. It has no influence on the Maven build itself. -->
  312. <plugin>
  313. <groupId>org.eclipse.m2e</groupId>
  314. <artifactId>lifecycle-mapping</artifactId>
  315. <version>1.0.0</version>
  316. <configuration>
  317. <lifecycleMappingMetadata>
  318. <pluginExecutions>
  319. <pluginExecution>
  320. <pluginExecutionFilter>
  321. <groupId>
  322. org.codehaus.mojo
  323. </groupId>
  324. <artifactId>
  325. exec-maven-plugin
  326. </artifactId>
  327. <versionRange>
  328. [1.4.0,)
  329. </versionRange>
  330. <goals>
  331. <goal>exec</goal>
  332. </goals>
  333. </pluginExecutionFilter>
  334. <action>
  335. <ignore />
  336. </action>
  337. </pluginExecution>
  338. </pluginExecutions>
  339. </lifecycleMappingMetadata>
  340. </configuration>
  341. </plugin>
  342. </plugins>
  343. </pluginManagement>
  344. </build>
  345. </project>