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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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-server</artifactId>
  12. <name>vaadin-server</name>
  13. <packaging>jar</packaging>
  14. <url>https://vaadin.com/</url>
  15. <description>Vaadin server</description>
  16. <dependencies>
  17. <!-- API DEPENDENCIES -->
  18. <!-- Liferay Portal Service -->
  19. <dependency>
  20. <groupId>com.liferay.portal</groupId>
  21. <artifactId>portal-service</artifactId>
  22. <version>${liferay.portal.version}</version>
  23. <scope>provided</scope>
  24. </dependency>
  25. <!--Servlet API version 3.0 -->
  26. <dependency>
  27. <groupId>javax.servlet</groupId>
  28. <artifactId>javax.servlet-api</artifactId>
  29. <version>${javax.servlet.version}</version>
  30. <scope>provided</scope>
  31. </dependency>
  32. <!--Portlet API version 2.0 (JSR-286) -->
  33. <dependency>
  34. <groupId>javax.portlet</groupId>
  35. <artifactId>portlet-api</artifactId>
  36. <version>${javax.portlet.version}</version>
  37. <scope>provided</scope>
  38. </dependency>
  39. <!-- Google App Engine -->
  40. <dependency>
  41. <groupId>com.google.appengine</groupId>
  42. <artifactId>appengine-api-1.0-sdk</artifactId>
  43. <version>${google.appengine.version}</version>
  44. <scope>provided</scope>
  45. </dependency>
  46. <!-- Bean Validation API -->
  47. <dependency>
  48. <groupId>javax.validation</groupId>
  49. <artifactId>validation-api</artifactId>
  50. <version>${javax.validation.version}</version>
  51. <scope>provided</scope>
  52. </dependency>
  53. <!-- Sass compiler -->
  54. <dependency>
  55. <groupId>com.vaadin</groupId>
  56. <artifactId>vaadin-sass-compiler</artifactId>
  57. <version>${vaadin.sass.version}</version>
  58. </dependency>
  59. <!-- LIBRARY DEPENDENCIES (compile time) -->
  60. <!-- Project modules -->
  61. <dependency>
  62. <groupId>com.vaadin</groupId>
  63. <artifactId>vaadin-shared</artifactId>
  64. <version>${project.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.vaadin</groupId>
  68. <artifactId>vaadin-push</artifactId>
  69. <version>${project.version}</version>
  70. <scope>provided</scope>
  71. </dependency>
  72. <!-- Jsoup for BootstrapHandler -->
  73. <dependency>
  74. <groupId>org.jsoup</groupId>
  75. <artifactId>jsoup</artifactId>
  76. <version>${jsoup.version}</version>
  77. </dependency>
  78. <!-- TESTING DEPENDENCIES -->
  79. <!-- Test frameworks & related -->
  80. <dependency>
  81. <groupId>junit</groupId>
  82. <artifactId>junit</artifactId>
  83. <version>${junit.version}</version>
  84. <scope>test</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.mockito</groupId>
  88. <artifactId>mockito-all</artifactId>
  89. <version>1.9.5</version>
  90. <scope>test</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.hamcrest</groupId>
  94. <artifactId>hamcrest-all</artifactId>
  95. <version>1.3</version>
  96. <scope>test</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.easymock</groupId>
  100. <artifactId>easymock</artifactId>
  101. <version>3.0</version>
  102. <scope>test</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.hsqldb</groupId>
  106. <artifactId>hsqldb</artifactId>
  107. <version>2.2.6</version>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>commons-io</groupId>
  112. <artifactId>commons-io</artifactId>
  113. <version>${commons-io.version}</version>
  114. <scope>test</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>commons-lang</groupId>
  118. <artifactId>commons-lang</artifactId>
  119. <version>2.6</version>
  120. <scope>test</scope>
  121. </dependency>
  122. <!-- Bean Validation implementation -->
  123. <dependency>
  124. <groupId>org.slf4j</groupId>
  125. <artifactId>slf4j-log4j12</artifactId>
  126. <version>1.6.1</version>
  127. <scope>test</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.hibernate</groupId>
  131. <artifactId>hibernate-validator</artifactId>
  132. <version>4.2.0.Final</version>
  133. <scope>test</scope>
  134. </dependency>
  135. <!-- For manual testing with PostgreSQL (see SQLTestConstants) -->
  136. <!-- <dependency><groupId>postgresql</groupId><artifactId>postgresql</artifactId><version>9.1-901.jdbc3</version></dependency> -->
  137. <!-- Needed GWT dependencies. Required parts are packaged to jar -->
  138. <dependency>
  139. <groupId>com.vaadin.external.gwt</groupId>
  140. <artifactId>gwt-user</artifactId>
  141. <version>${vaadin.gwt.version}</version>
  142. <scope>provided</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.vaadin.external.gwt</groupId>
  146. <artifactId>gwt-elemental</artifactId>
  147. <version>${vaadin.gwt.version}</version>
  148. <scope>provided</scope>
  149. </dependency>
  150. </dependencies>
  151. <build>
  152. <plugins>
  153. <!-- Copy needed GWT dependencies to package -->
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-dependency-plugin</artifactId>
  157. <executions>
  158. <execution>
  159. <id>unpack-dependencies</id>
  160. <phase>generate-resources</phase>
  161. <goals>
  162. <goal>unpack</goal>
  163. </goals>
  164. <configuration>
  165. <artifactItems>
  166. <artifactItem>
  167. <groupId>com.vaadin.external.gwt</groupId>
  168. <artifactId>gwt-user</artifactId>
  169. </artifactItem>
  170. </artifactItems>
  171. <includes>com/google/gwt/*/server/**</includes>
  172. </configuration>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <plugin>
  177. <artifactId>maven-resources-plugin</artifactId>
  178. <executions>
  179. <!-- Copy .java files to package -->
  180. <execution>
  181. <id>copy-sources</id>
  182. <!-- here the phase you need -->
  183. <phase>prepare-package</phase>
  184. <goals>
  185. <goal>copy-resources</goal>
  186. </goals>
  187. <configuration>
  188. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  189. <resources>
  190. <resource>
  191. <directory>src/main/resources</directory>
  192. <filtering>false</filtering>
  193. </resource>
  194. <resource>
  195. <directory>src/main/java</directory>
  196. <filtering>false</filtering>
  197. </resource>
  198. </resources>
  199. </configuration>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. <plugin>
  204. <artifactId>maven-antrun-plugin</artifactId>
  205. <executions>
  206. <execution>
  207. <id>compressbootstrap</id>
  208. <phase>prepare-package</phase>
  209. <goals>
  210. <goal>run</goal>
  211. </goals>
  212. <configuration>
  213. <target>
  214. <property name="vaadinBootstrap.js"
  215. location="${project.build.outputDirectory}/VAADIN/vaadinBootstrap.js" />
  216. <!-- Gzipped version -->
  217. <gzip src="${vaadinBootstrap.js}" destfile="${vaadinBootstrap.js}.gz" />
  218. </target>
  219. </configuration>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.apache.felix</groupId>
  225. <artifactId>maven-bundle-plugin</artifactId>
  226. <extensions>true</extensions>
  227. <configuration>
  228. <instructions>
  229. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  230. <Export-Package>com.vaadin.*;version="${project.version}",com.google.*;version="${project.version}"</Export-Package>
  231. <Import-Package>javax.servlet;version="${javax.servlet.version}",
  232. javax.servlet.http;version="${javax.servlet.version}",
  233. javax.validation;version="${javax.validation.version}";resolution:=optional,
  234. org.jsoup;version="${jsoup.version}",
  235. org.jsoup.parser;version="${jsoup.version}",
  236. org.jsoup.nodes;version="${jsoup.version}",
  237. org.jsoup.helper;version="${jsoup.version}",
  238. org.jsoup.safety;version="${jsoup.version}",
  239. org.jsoup.select;version="${jsoup.version}",
  240. javax.portlet;version="[${javax.portlet.version},3)";resolution:=optional,
  241. javax.portlet.filter;version="[${javax.portlet.version},3)";resolution:=optional,
  242. com.liferay.portal.kernel.util;resolution:=optional</Import-Package>
  243. <Require-Bundle>com.google.gwt.thirdparty.guava;bundle-version="${guava.version}",
  244. com.vaadin.shared;bundle-version="${project.version}",
  245. com.vaadin.push;bundle-version="${project.version}";resolution:=optional,
  246. com.vaadin.sass-compiler;bundle-version="${vaadin.sass.version}";resolution:=optional"</Require-Bundle>
  247. </instructions>
  248. </configuration>
  249. <executions>
  250. <execution>
  251. <id>bundle-manifest</id>
  252. <phase>prepare-package</phase>
  253. <goals>
  254. <goal>manifest</goal>
  255. </goals>
  256. </execution>
  257. </executions>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.apache.maven.plugins</groupId>
  261. <artifactId>maven-jar-plugin</artifactId>
  262. <configuration>
  263. <archive>
  264. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  265. <index>false</index>
  266. <manifest>
  267. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  268. </manifest>
  269. </archive>
  270. </configuration>
  271. </plugin>
  272. <plugin>
  273. <groupId>org.apache.maven.plugins</groupId>
  274. <artifactId>maven-surefire-plugin</artifactId>
  275. </plugin>
  276. </plugins>
  277. </build>
  278. </project>