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

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