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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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-themes</artifactId>
  11. <name>vaadin-themes</name>
  12. <packaging>jar</packaging>
  13. <url>https://vaadin.com/</url>
  14. <description>Vaadin themes</description>
  15. <dependencies>
  16. <!-- Maven plugin scans for vaadin-server... -->
  17. <dependency>
  18. <groupId>${project.groupId}</groupId>
  19. <artifactId>vaadin-server</artifactId>
  20. <version>${project.version}</version>
  21. <scope>provided</scope>
  22. </dependency>
  23. <dependency>
  24. <groupId>${project.groupId}</groupId>
  25. <artifactId>vaadin-buildhelpers</artifactId>
  26. <version>${project.version}</version>
  27. <scope>provided</scope>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.vaadin</groupId>
  31. <artifactId>vaadin-sass-compiler</artifactId>
  32. <scope>provided</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.carrotsearch</groupId>
  36. <artifactId>smartsprites</artifactId>
  37. <scope>provided</scope>
  38. </dependency>
  39. <!-- smartsprites dependency -->
  40. <dependency>
  41. <groupId>commons-io</groupId>
  42. <artifactId>commons-io</artifactId>
  43. <scope>provided</scope>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <plugins>
  48. <plugin>
  49. <artifactId>maven-resources-plugin</artifactId>
  50. <executions>
  51. <execution>
  52. <id>copy-theme-sources</id>
  53. <phase>generate-resources</phase>
  54. <goals>
  55. <goal>copy-resources</goal>
  56. </goals>
  57. <configuration>
  58. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  59. <resources>
  60. <resource>
  61. <directory>src/main/themes</directory>
  62. <filtering>false</filtering>
  63. <excludes>
  64. <exclude>**/valo/shared/_global.scss</exclude>
  65. </excludes>
  66. </resource>
  67. <resource>
  68. <directory>src/main/themes</directory>
  69. <filtering>true</filtering>
  70. <includes>
  71. <include>**/valo/shared/_global.scss</include>
  72. </includes>
  73. </resource>
  74. </resources>
  75. </configuration>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. <plugin>
  80. <groupId>com.vaadin</groupId>
  81. <artifactId>vaadin-maven-plugin</artifactId>
  82. <configuration>
  83. <compressTheme>true</compressTheme>
  84. <warSourceDirectory>${project.build.outputDirectory}</warSourceDirectory>
  85. </configuration>
  86. <executions>
  87. <execution>
  88. <phase>process-resources</phase>
  89. <goals>
  90. <goal>compile-theme</goal>
  91. </goals>
  92. </execution>
  93. </executions>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.codehaus.mojo</groupId>
  97. <artifactId>exec-maven-plugin</artifactId>
  98. <executions>
  99. <execution>
  100. <id>generate-export-package</id>
  101. <phase>package</phase>
  102. <goals>
  103. <goal>exec</goal>
  104. </goals>
  105. <configuration>
  106. <classpathScope>compile</classpathScope>
  107. <executable>${java.home}/bin/java</executable>
  108. <arguments>
  109. <argument>-Dvaadin.version=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</argument>
  110. <argument>-DincludeNumberPackages=0</argument>
  111. <argument>-classpath</argument>
  112. <classpath />
  113. <argument>com.vaadin.buildhelpers.GeneratePackageExports</argument>
  114. <argument>${project.build.directory}/${project.build.finalName}.${project.packaging}</argument>
  115. <argument>VAADIN/themes</argument>
  116. </arguments>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.felix</groupId>
  123. <artifactId>maven-bundle-plugin</artifactId>
  124. <extensions>true</extensions>
  125. <configuration>
  126. <instructions>
  127. <Bundle-Version>${osgi.bundle.version}</Bundle-Version>
  128. <Bundle-RequiredExecutionEnvironment>${osgi.execution.environment}</Bundle-RequiredExecutionEnvironment>
  129. <!-- Export package is handled in exec plugin -->
  130. <Export-Package></Export-Package>
  131. <Import-Package></Import-Package>
  132. </instructions>
  133. </configuration>
  134. <executions>
  135. <execution>
  136. <id>bundle-manifest</id>
  137. <phase>prepare-package</phase>
  138. <goals>
  139. <goal>manifest</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-jar-plugin</artifactId>
  147. <version>2.6</version>
  148. <configuration>
  149. <archive>
  150. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  151. <index>false</index>
  152. <manifest>
  153. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  154. </manifest>
  155. </archive>
  156. </configuration>
  157. </plugin>
  158. </plugins>
  159. <pluginManagement>
  160. <plugins>
  161. <plugin>
  162. <artifactId>maven-source-plugin</artifactId>
  163. <configuration>
  164. <skipSource>true</skipSource>
  165. </configuration>
  166. </plugin>
  167. <!--This plugin's configuration is used to store Eclipse
  168. m2e settings only. It has no influence on the Maven build itself. -->
  169. <plugin>
  170. <groupId>org.eclipse.m2e</groupId>
  171. <artifactId>lifecycle-mapping</artifactId>
  172. <version>1.0.0</version>
  173. <configuration>
  174. <lifecycleMappingMetadata>
  175. <pluginExecutions>
  176. <pluginExecution>
  177. <pluginExecutionFilter>
  178. <groupId>
  179. org.codehaus.mojo
  180. </groupId>
  181. <artifactId>
  182. exec-maven-plugin
  183. </artifactId>
  184. <versionRange>
  185. [1.4.0,)
  186. </versionRange>
  187. <goals>
  188. <goal>exec</goal>
  189. </goals>
  190. </pluginExecutionFilter>
  191. <action>
  192. <ignore />
  193. </action>
  194. </pluginExecution>
  195. </pluginExecutions>
  196. </lifecycleMappingMetadata>
  197. </configuration>
  198. </plugin>
  199. </plugins>
  200. </pluginManagement>
  201. </build>
  202. </project>