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

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