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

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