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

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