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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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-server</artifactId>
  11. <name>vaadin-server</name>
  12. <packaging>jar</packaging>
  13. <url>https://vaadin.com/</url>
  14. <description>Vaadin server</description>
  15. <dependencies>
  16. <!-- API DEPENDENCIES -->
  17. <!-- Liferay Portal Service -->
  18. <dependency>
  19. <groupId>com.liferay.portal</groupId>
  20. <artifactId>portal-service</artifactId>
  21. <version>${liferay.portal.version}</version>
  22. <scope>provided</scope>
  23. </dependency>
  24. <!--Servlet API -->
  25. <dependency>
  26. <groupId>javax.servlet</groupId>
  27. <artifactId>javax.servlet-api</artifactId>
  28. <scope>provided</scope>
  29. </dependency>
  30. <!--Portlet API -->
  31. <dependency>
  32. <groupId>javax.portlet</groupId>
  33. <artifactId>portlet-api</artifactId>
  34. <scope>provided</scope>
  35. </dependency>
  36. <!-- Google App Engine -->
  37. <dependency>
  38. <groupId>com.google.appengine</groupId>
  39. <artifactId>appengine-api-1.0-sdk</artifactId>
  40. <scope>provided</scope>
  41. </dependency>
  42. <!-- Bean Validation API -->
  43. <dependency>
  44. <groupId>javax.validation</groupId>
  45. <artifactId>validation-api</artifactId>
  46. <scope>provided</scope>
  47. <optional>true</optional>
  48. </dependency>
  49. <!-- Sass compiler -->
  50. <dependency>
  51. <groupId>${project.groupId}</groupId>
  52. <artifactId>vaadin-sass-compiler</artifactId>
  53. </dependency>
  54. <!-- LIBRARY DEPENDENCIES (compile time) -->
  55. <!-- Project modules -->
  56. <dependency>
  57. <groupId>${project.groupId}</groupId>
  58. <artifactId>vaadin-shared</artifactId>
  59. <version>${project.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>${project.groupId}</groupId>
  63. <artifactId>vaadin-push</artifactId>
  64. <version>${project.version}</version>
  65. <scope>provided</scope>
  66. </dependency>
  67. <!-- Jsoup for BootstrapHandler -->
  68. <dependency>
  69. <groupId>org.jsoup</groupId>
  70. <artifactId>jsoup</artifactId>
  71. </dependency>
  72. <!-- TESTING DEPENDENCIES -->
  73. <!-- Test dependencies -->
  74. <dependency>
  75. <groupId>commons-io</groupId>
  76. <artifactId>commons-io</artifactId>
  77. <scope>test</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>commons-lang</groupId>
  81. <artifactId>commons-lang</artifactId>
  82. <scope>test</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.hsqldb</groupId>
  86. <artifactId>hsqldb</artifactId>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.slf4j</groupId>
  91. <artifactId>slf4j-log4j12</artifactId>
  92. <scope>test</scope>
  93. </dependency>
  94. <!-- For manual testing with PostgreSQL (see SQLTestConstants) -->
  95. <!-- <dependency><groupId>postgresql</groupId><artifactId>postgresql</artifactId><version>9.1-901.jdbc3</version></dependency> -->
  96. </dependencies>
  97. <build>
  98. <plugins>
  99. <plugin>
  100. <artifactId>maven-resources-plugin</artifactId>
  101. <executions>
  102. <!-- Copy .java files to package -->
  103. <execution>
  104. <id>copy-sources</id>
  105. <!-- here the phase you need -->
  106. <phase>prepare-package</phase>
  107. <goals>
  108. <goal>copy-resources</goal>
  109. </goals>
  110. <configuration>
  111. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  112. <resources>
  113. <resource>
  114. <directory>src/main/resources</directory>
  115. <filtering>false</filtering>
  116. </resource>
  117. <resource>
  118. <directory>src/main/java</directory>
  119. <filtering>false</filtering>
  120. </resource>
  121. </resources>
  122. </configuration>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-checkstyle-plugin</artifactId>
  129. <executions>
  130. <execution>
  131. <goals>
  132. <goal>checkstyle</goal>
  133. </goals>
  134. <phase>process-sources</phase>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. <plugin>
  139. <artifactId>maven-antrun-plugin</artifactId>
  140. <executions>
  141. <execution>
  142. <id>compressbootstrap</id>
  143. <phase>prepare-package</phase>
  144. <goals>
  145. <goal>run</goal>
  146. </goals>
  147. <configuration>
  148. <target>
  149. <property name="vaadinBootstrap.js"
  150. location="${project.build.outputDirectory}/VAADIN/vaadinBootstrap.js" />
  151. <!-- Gzipped version -->
  152. <gzip src="${vaadinBootstrap.js}"
  153. destfile="${vaadinBootstrap.js}.gz" />
  154. </target>
  155. </configuration>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.apache.felix</groupId>
  161. <artifactId>maven-bundle-plugin</artifactId>
  162. <extensions>true</extensions>
  163. <configuration>
  164. <instructions>
  165. <Bundle-RequiredExecutionEnvironment>${osgi.execution.environment}</Bundle-RequiredExecutionEnvironment>
  166. <Bundle-Version>${osgi.bundle.version}</Bundle-Version>
  167. <Export-Package>com.vaadin.*;version="${osgi.bundle.version}"</Export-Package>
  168. <Import-Package>javax.servlet;version="${osgi.javax.servlet.version}",
  169. javax.servlet.http;version="${osgi.javax.servlet.version}",
  170. javax.validation;version="${javax.validation.version}";resolution:=optional,
  171. org.jsoup;version="${jsoup.version}",
  172. org.jsoup.parser;version="${jsoup.version}",
  173. org.jsoup.nodes;version="${jsoup.version}",
  174. org.jsoup.helper;version="${jsoup.version}",
  175. org.jsoup.safety;version="${jsoup.version}",
  176. org.jsoup.select;version="${jsoup.version}",
  177. javax.portlet;version="[${javax.portlet.version},3)";resolution:=optional,
  178. javax.portlet.filter;version="[${javax.portlet.version},3)";resolution:=optional,
  179. com.liferay.portal.kernel.util;resolution:=optional</Import-Package>
  180. <Require-Bundle>
  181. com.vaadin.shared;bundle-version="${osgi.bundle.version}",
  182. com.vaadin.push;bundle-version="${osgi.bundle.version}";resolution:=optional,
  183. com.vaadin.sass-compiler;bundle-version="${vaadin.sass.version}";resolution:=optional</Require-Bundle>
  184. </instructions>
  185. </configuration>
  186. <executions>
  187. <execution>
  188. <id>bundle-manifest</id>
  189. <phase>prepare-package</phase>
  190. <goals>
  191. <goal>manifest</goal>
  192. </goals>
  193. </execution>
  194. </executions>
  195. </plugin>
  196. <plugin>
  197. <groupId>org.apache.maven.plugins</groupId>
  198. <artifactId>maven-jar-plugin</artifactId>
  199. <configuration>
  200. <archive>
  201. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  202. <index>false</index>
  203. <manifest>
  204. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  205. </manifest>
  206. </archive>
  207. </configuration>
  208. <!-- Package src/test into a jar so that compatbility-server
  209. can use the same test classes, e.g. test beans -->
  210. <executions>
  211. <execution>
  212. <goals>
  213. <goal>test-jar</goal>
  214. </goals>
  215. </execution>
  216. </executions>
  217. </plugin>
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-surefire-plugin</artifactId>
  221. </plugin>
  222. </plugins>
  223. </build>
  224. </project>