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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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-parent</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <groupId>com.vaadin</groupId>
  11. <artifactId>vaadin-push</artifactId>
  12. <name>Vaadin Push</name>
  13. <packaging>jar</packaging>
  14. <version>7.7.0-SNAPSHOT</version>
  15. <properties>
  16. <atmosphere.runtime.version>2.2.7.vaadin1</atmosphere.runtime.version>
  17. <atmosphere.js.version>2.2.6.vaadin4</atmosphere.js.version>
  18. </properties>
  19. <organization>
  20. <name>Vaadin Ltd</name>
  21. </organization>
  22. <url>https://vaadin.com/</url>
  23. <description>Vaadin server push support</description>
  24. <dependencies>
  25. <!-- Atmosphere -->
  26. <dependency>
  27. <groupId>com.vaadin.external.atmosphere</groupId>
  28. <artifactId>atmosphere-runtime</artifactId>
  29. <version>${atmosphere.runtime.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.vaadin.external.atmosphere.client</groupId>
  33. <artifactId>jquery</artifactId>
  34. <version>${atmosphere.js.version}</version>
  35. <type>war</type>
  36. <scope>provided</scope>
  37. </dependency>
  38. </dependencies>
  39. <build>
  40. <plugins>
  41. <plugin>
  42. <artifactId>maven-antrun-plugin</artifactId>
  43. <version>1.8</version>
  44. <executions>
  45. <execution>
  46. <id>default-cli</id>
  47. <phase>generate-resources</phase>
  48. <goals>
  49. <goal>run</goal>
  50. </goals>
  51. <!-- <inherited>false</inherited> -->
  52. <configuration>
  53. <target>
  54. <property name="jquery.unpack" location="${project.build.directory}/temp" />
  55. <property name="vaadinPush.js"
  56. location="${project.build.outputDirectory}/VAADIN/vaadinPush.debug.js" />
  57. <property name="templates.dir"
  58. location="${project.build.sourceDirectory}/../templates" />
  59. <!-- Unzip to temp dir -->
  60. <unzip
  61. src="${maven.dependency.com.vaadin.external.atmosphere.client.jquery.war.path}"
  62. dest="${jquery.unpack}">
  63. <patternset>
  64. <include name="**/jquery.atmosphere.js" />
  65. </patternset>
  66. <mapper type="flatten" />
  67. </unzip>
  68. <loadfile srcfile="${templates.dir}/jquery-1.11.0.js"
  69. property="jquery.js.contents" />
  70. <loadfile srcfile="${jquery.unpack}/jquery.atmosphere.js"
  71. property="jquery.atmosphere.js.contents" />
  72. <loadfile srcfile="${templates.dir}/vaadinPush.js.tpl"
  73. property="vaadinPush.js.contents">
  74. <filterchain>
  75. <replacetokens begintoken="@" endtoken="@">
  76. <token key="jquery.js" value="${jquery.js.contents}" />
  77. <token key="jquery.atmosphere.js" value="${jquery.atmosphere.js.contents}" />
  78. </replacetokens>
  79. </filterchain>
  80. </loadfile>
  81. <!-- Non-obfuscated version for debugging -->
  82. <echo file="${vaadinPush.js}">${vaadinPush.js.contents}</echo>
  83. </target>
  84. </configuration>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. <plugin>
  89. <groupId>net.alchim31.maven</groupId>
  90. <artifactId>yuicompressor-maven-plugin</artifactId>
  91. <version>1.5.1</version>
  92. <executions>
  93. <execution>
  94. <id>minifyjs</id>
  95. <phase>process-resources</phase>
  96. <goals>
  97. <goal>compress</goal>
  98. </goals>
  99. </execution>
  100. </executions>
  101. <configuration>
  102. <sourceDirectory>${project.build.outputDirectory}/VAADIN</sourceDirectory>
  103. <includes>
  104. <include>vaadinPush.debug.js</include>
  105. </includes>
  106. <outputDirectory>${project.build.outputDirectory}/VAADIN</outputDirectory>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-antrun-plugin</artifactId>
  111. <version>1.8</version>
  112. <executions>
  113. <execution>
  114. <id>compresspush</id>
  115. <phase>compile</phase>
  116. <goals>
  117. <goal>run</goal>
  118. </goals>
  119. <configuration>
  120. <target>
  121. <property name="vaadinPush.debug.js"
  122. location="${project.build.outputDirectory}/VAADIN/vaadinPush.debug.js" />
  123. <property name="vaadinPush-min.js"
  124. location="${project.build.outputDirectory}/VAADIN/vaadinPush.debug-min.js" />
  125. <property name="vaadinPush.js"
  126. location="${project.build.outputDirectory}/VAADIN/vaadinPush.js" />
  127. <move file="${vaadinPush-min.js}" tofile="${vaadinPush.js}" />
  128. <!-- Gzipped versions -->
  129. <gzip src="${vaadinPush.debug.js}" destfile="${vaadinPush.debug.js}.gz" />
  130. <gzip src="${vaadinPush.js}" destfile="${vaadinPush.js}.gz" />
  131. </target>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.felix</groupId>
  138. <artifactId>maven-bundle-plugin</artifactId>
  139. <extensions>true</extensions>
  140. <configuration>
  141. <instructions>
  142. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  143. <Export-Package>VAADIN</Export-Package>
  144. <Require-Bundle>com.vaadin.external.atmosphere.runtime;bundle-version="${atmosphere.runtime.version}";visibility:=reexport</Require-Bundle>
  145. </instructions>
  146. </configuration>
  147. <executions>
  148. <execution>
  149. <id>bundle-manifest</id>
  150. <phase>process-classes</phase>
  151. <goals>
  152. <goal>manifest</goal>
  153. </goals>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-jar-plugin</artifactId>
  160. <version>2.6</version>
  161. <configuration>
  162. <archive>
  163. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  164. <index>false</index>
  165. <manifest>
  166. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  167. </manifest>
  168. </archive>
  169. </configuration>
  170. </plugin>
  171. </plugins>
  172. <pluginManagement>
  173. <plugins>
  174. <!--This plugin's configuration is used to store Eclipse m2e settings
  175. only. It has no influence on the Maven build itself. -->
  176. <plugin>
  177. <groupId>org.eclipse.m2e</groupId>
  178. <artifactId>lifecycle-mapping</artifactId>
  179. <version>1.0.0</version>
  180. <configuration>
  181. <lifecycleMappingMetadata>
  182. <pluginExecutions>
  183. <pluginExecution>
  184. <pluginExecutionFilter>
  185. <groupId>
  186. org.apache.maven.plugins
  187. </groupId>
  188. <artifactId>
  189. maven-antrun-plugin
  190. </artifactId>
  191. <versionRange>
  192. [1.8,)
  193. </versionRange>
  194. <goals>
  195. <goal>run</goal>
  196. </goals>
  197. </pluginExecutionFilter>
  198. <action>
  199. <ignore></ignore>
  200. </action>
  201. </pluginExecution>
  202. </pluginExecutions>
  203. </lifecycleMappingMetadata>
  204. </configuration>
  205. </plugin>
  206. </plugins>
  207. </pluginManagement>
  208. </build>
  209. </project>