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

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