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.2KB

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