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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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-client-compiled</artifactId>
  12. <name>vaadin-client-compiled</name>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <widgetset.name>com.vaadin.DefaultWidgetSet</widgetset.name>
  16. <widgetset.style>OBF</widgetset.style>
  17. <widgetset.local.workers>6</widgetset.local.workers>
  18. </properties>
  19. <url>https://vaadin.com/</url>
  20. <description>Vaadin client compiled</description>
  21. <dependencies>
  22. <dependency>
  23. <groupId>${project.groupId}</groupId>
  24. <artifactId>vaadin-server</artifactId>
  25. <version>${project.version}</version>
  26. <scope>provided</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>${project.groupId}</groupId>
  30. <artifactId>vaadin-client</artifactId>
  31. <version>${project.version}</version>
  32. <scope>provided</scope>
  33. </dependency>
  34. <dependency>
  35. <groupId>${project.groupId}</groupId>
  36. <artifactId>vaadin-client-compiler</artifactId>
  37. <version>${project.version}</version>
  38. <scope>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>${project.groupId}</groupId>
  42. <artifactId>vaadin-buildhelpers</artifactId>
  43. <version>${project.version}</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. </dependencies>
  47. <build>
  48. <plugins>
  49. <plugin>
  50. <groupId>org.codehaus.mojo</groupId>
  51. <artifactId>exec-maven-plugin</artifactId>
  52. <executions>
  53. <execution>
  54. <phase>generate-resources</phase>
  55. <goals>
  56. <goal>exec</goal>
  57. </goals>
  58. <configuration>
  59. <classpathScope>compile</classpathScope>
  60. <executable>${java.home}/bin/java</executable>
  61. <arguments>
  62. <!-- TODO: Do we need these? -->
  63. <!-- <jvmarg value="-Xss8M" /> -->
  64. <!-- <jvmarg value="-XX:MaxPermSize=256M" /> -->
  65. <jvmarg value="-Djava.awt.headless=true" />
  66. <argument>-Dgwt.persistentunitcachedir=${project.build.directory}/compile</argument>
  67. <argument>-DvFailIfNotSerializable=true</argument>
  68. <argument>-classpath</argument>
  69. <classpath />
  70. <argument>com.google.gwt.dev.Compiler</argument>
  71. <argument>-workDir</argument>
  72. <argument>${project.build.directory}/compile</argument>
  73. <argument>-logLevel</argument>
  74. <argument>TRACE</argument>
  75. <argument>-war</argument>
  76. <!-- This will write the result directly to target/classes for packaging -->
  77. <argument>${project.build.outputDirectory}/VAADIN/widgetsets/</argument>
  78. <argument>-style</argument>
  79. <argument>${widgetset.style}</argument>
  80. <argument>-localWorkers</argument>
  81. <argument>${widgetset.local.workers}</argument>
  82. <argument>-strict</argument>
  83. <!-- Move unnecessary stuff to compile folder -->
  84. <argument>-deploy</argument>
  85. <argument>${project.build.directory}/compile</argument>
  86. <argument>-extra</argument>
  87. <argument>${project.build.directory}/compile</argument>
  88. <argument>${widgetset.name}</argument>
  89. </arguments>
  90. </configuration>
  91. </execution>
  92. <execution>
  93. <id>generate-export-package</id>
  94. <phase>package</phase>
  95. <goals>
  96. <goal>exec</goal>
  97. </goals>
  98. <configuration>
  99. <classpathScope>compile</classpathScope>
  100. <executable>${java.home}/bin/java</executable>
  101. <arguments>
  102. <argument>-Dvaadin.version=${project.version}</argument>
  103. <argument>-DincludeNumberPackages=1</argument>
  104. <argument>-classpath</argument>
  105. <classpath />
  106. <argument>com.vaadin.buildhelpers.GeneratePackageExports</argument>
  107. <argument>${project.build.directory}/${project.build.finalName}.${project.packaging}</argument>
  108. <argument>VAADIN/widgetsets</argument>
  109. </arguments>
  110. </configuration>
  111. </execution>
  112. </executions>
  113. </plugin>
  114. <plugin>
  115. <groupId>org.apache.felix</groupId>
  116. <artifactId>maven-bundle-plugin</artifactId>
  117. <extensions>true</extensions>
  118. <configuration>
  119. <instructions>
  120. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  121. <!-- Export package is handled in exec plugin -->
  122. <Export-Package></Export-Package>
  123. <Import-Package></Import-Package>
  124. </instructions>
  125. </configuration>
  126. <executions>
  127. <execution>
  128. <id>bundle-manifest</id>
  129. <phase>prepare-package</phase>
  130. <goals>
  131. <goal>manifest</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-jar-plugin</artifactId>
  139. <version>2.6</version>
  140. <configuration>
  141. <archive>
  142. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  143. <index>false</index>
  144. <manifest>
  145. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  146. </manifest>
  147. </archive>
  148. </configuration>
  149. </plugin>
  150. </plugins>
  151. <pluginManagement>
  152. <plugins>
  153. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  154. <plugin>
  155. <groupId>org.eclipse.m2e</groupId>
  156. <artifactId>lifecycle-mapping</artifactId>
  157. <version>1.0.0</version>
  158. <configuration>
  159. <lifecycleMappingMetadata>
  160. <pluginExecutions>
  161. <pluginExecution>
  162. <pluginExecutionFilter>
  163. <groupId>
  164. org.codehaus.mojo
  165. </groupId>
  166. <artifactId>
  167. exec-maven-plugin
  168. </artifactId>
  169. <versionRange>
  170. [1.4.0,)
  171. </versionRange>
  172. <goals>
  173. <goal>exec</goal>
  174. </goals>
  175. </pluginExecutionFilter>
  176. <action>
  177. <ignore />
  178. </action>
  179. </pluginExecution>
  180. </pluginExecutions>
  181. </lifecycleMappingMetadata>
  182. </configuration>
  183. </plugin>
  184. </plugins>
  185. </pluginManagement>
  186. </build>
  187. </project>