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

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