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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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>7.7.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. <organization>
  15. <name>Vaadin Ltd</name>
  16. </organization>
  17. <url>https://vaadin.com/</url>
  18. <description>Vaadin themes</description>
  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. <version>${vaadin.sass.version}</version>
  37. <scope>provided</scope>
  38. </dependency>
  39. <!-- remove cssparser override once sass-compiler is updated -->
  40. <dependency>
  41. <groupId>net.sourceforge.cssparser</groupId>
  42. <artifactId>cssparser</artifactId>
  43. <version>0.9.11</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.carrotsearch</groupId>
  48. <artifactId>smartsprites</artifactId>
  49. <version>0.2.10</version>
  50. <scope>provided</scope>
  51. </dependency>
  52. </dependencies>
  53. <build>
  54. <resources>
  55. <resource>
  56. <directory>src/main/resources</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/resources</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. <plugins>
  73. <plugin>
  74. <groupId>com.vaadin</groupId>
  75. <artifactId>vaadin-maven-plugin</artifactId>
  76. <version>${vaadin.plugin.version}</version>
  77. <configuration>
  78. <compressTheme>true</compressTheme>
  79. <warSourceDirectory>${project.build.outputDirectory}</warSourceDirectory>
  80. </configuration>
  81. <executions>
  82. <execution>
  83. <phase>process-resources</phase>
  84. <goals>
  85. <goal>compile-theme</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.codehaus.mojo</groupId>
  92. <artifactId>exec-maven-plugin</artifactId>
  93. <executions>
  94. <execution>
  95. <id>smart-sprite-reindeer</id>
  96. <phase>process-resources</phase>
  97. <goals>
  98. <goal>exec</goal>
  99. </goals>
  100. <configuration>
  101. <classpathScope>compile</classpathScope>
  102. <executable>${java.home}/bin/java</executable>
  103. <arguments>
  104. <argument>-classpath</argument>
  105. <classpath />
  106. <argument>org.carrot2.labs.smartsprites.SmartSprites</argument>
  107. <argument>--sprite-png-depth</argument>
  108. <argument>AUTO</argument>
  109. <argument>--css-file-encoding</argument>
  110. <argument>UTF-8</argument>
  111. <argument>--root-dir-path</argument>
  112. <argument>${project.build.outputDirectory}/VAADIN/themes/reindeer</argument>
  113. <argument>--log-level</argument>
  114. <argument>WARN</argument>
  115. </arguments>
  116. </configuration>
  117. </execution>
  118. <execution>
  119. <id>generate-export-package</id>
  120. <phase>package</phase>
  121. <goals>
  122. <goal>exec</goal>
  123. </goals>
  124. <configuration>
  125. <classpathScope>compile</classpathScope>
  126. <executable>${java.home}/bin/java</executable>
  127. <arguments>
  128. <argument>-Dvaadin.version=${project.version}</argument>
  129. <argument>-DincludeNumberPackages=0</argument>
  130. <argument>-classpath</argument>
  131. <classpath />
  132. <argument>com.vaadin.buildhelpers.GeneratePackageExports</argument>
  133. <argument>${project.build.directory}/${project.build.finalName}.${project.packaging}</argument>
  134. <argument>VAADIN/themes</argument>
  135. </arguments>
  136. </configuration>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. <plugin>
  141. <artifactId>maven-antrun-plugin</artifactId>
  142. <executions>
  143. <execution>
  144. <id>repackage-reindeer</id>
  145. <phase>process-classes</phase>
  146. <goals>
  147. <goal>run</goal>
  148. </goals>
  149. <configuration>
  150. <target>
  151. <property name="reindeer.theme.path"
  152. value="${project.build.outputDirectory}/VAADIN/themes/reindeer/" />
  153. <move file="${reindeer.theme.path}/styles-sprite.css"
  154. tofile="${reindeer.theme.path}/styles.css" />
  155. <gzip src="${reindeer.theme.path}/styles.css" destfile="${reindeer.theme.path}/styles.css.gz" />
  156. </target>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.felix</groupId>
  163. <artifactId>maven-bundle-plugin</artifactId>
  164. <extensions>true</extensions>
  165. <configuration>
  166. <instructions>
  167. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  168. <!-- Export package is handled in exec plugin -->
  169. <Export-Package></Export-Package>
  170. <Import-Package></Import-Package>
  171. </instructions>
  172. </configuration>
  173. <executions>
  174. <execution>
  175. <id>bundle-manifest</id>
  176. <phase>prepare-package</phase>
  177. <goals>
  178. <goal>manifest</goal>
  179. </goals>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-jar-plugin</artifactId>
  186. <version>2.6</version>
  187. <configuration>
  188. <archive>
  189. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  190. <index>false</index>
  191. <manifest>
  192. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  193. </manifest>
  194. </archive>
  195. </configuration>
  196. </plugin>
  197. </plugins>
  198. <pluginManagement>
  199. <plugins>
  200. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  201. <plugin>
  202. <groupId>org.eclipse.m2e</groupId>
  203. <artifactId>lifecycle-mapping</artifactId>
  204. <version>1.0.0</version>
  205. <configuration>
  206. <lifecycleMappingMetadata>
  207. <pluginExecutions>
  208. <pluginExecution>
  209. <pluginExecutionFilter>
  210. <groupId>
  211. org.codehaus.mojo
  212. </groupId>
  213. <artifactId>
  214. exec-maven-plugin
  215. </artifactId>
  216. <versionRange>
  217. [1.4.0,)
  218. </versionRange>
  219. <goals>
  220. <goal>exec</goal>
  221. </goals>
  222. </pluginExecutionFilter>
  223. <action>
  224. <ignore />
  225. </action>
  226. </pluginExecution>
  227. </pluginExecutions>
  228. </lifecycleMappingMetadata>
  229. </configuration>
  230. </plugin>
  231. </plugins>
  232. </pluginManagement>
  233. </build>
  234. </project>