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

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