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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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.1-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-service.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. <!-- Bean Validation API -->
  37. <dependency>
  38. <groupId>javax.validation</groupId>
  39. <artifactId>validation-api</artifactId>
  40. <scope>provided</scope>
  41. <optional>true</optional>
  42. </dependency>
  43. <!-- Sass compiler -->
  44. <dependency>
  45. <groupId>${project.groupId}</groupId>
  46. <artifactId>vaadin-sass-compiler</artifactId>
  47. </dependency>
  48. <!-- LIBRARY DEPENDENCIES (compile time) -->
  49. <!-- Project modules -->
  50. <dependency>
  51. <groupId>${project.groupId}</groupId>
  52. <artifactId>vaadin-shared</artifactId>
  53. <version>${project.version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>${project.groupId}</groupId>
  57. <artifactId>vaadin-push</artifactId>
  58. <version>${project.version}</version>
  59. <scope>provided</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.vaadin</groupId>
  63. <artifactId>vaadin-icons</artifactId>
  64. </dependency>
  65. <!-- Jsoup for BootstrapHandler -->
  66. <dependency>
  67. <groupId>org.jsoup</groupId>
  68. <artifactId>jsoup</artifactId>
  69. </dependency>
  70. <!-- Small reflection library -->
  71. <dependency>
  72. <groupId>com.googlecode.gentyref</groupId>
  73. <artifactId>gentyref</artifactId>
  74. <version>1.2.0</version>
  75. </dependency>
  76. <!-- TESTING DEPENDENCIES -->
  77. <!-- Test dependencies -->
  78. <dependency>
  79. <groupId>commons-io</groupId>
  80. <artifactId>commons-io</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>commons-lang</groupId>
  85. <artifactId>commons-lang</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.hsqldb</groupId>
  90. <artifactId>hsqldb</artifactId>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.slf4j</groupId>
  95. <artifactId>slf4j-log4j12</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. <!-- For manual testing with PostgreSQL (see SQLTestConstants) -->
  99. <!-- <dependency><groupId>postgresql</groupId><artifactId>postgresql</artifactId><version>9.1-901.jdbc3</version></dependency> -->
  100. </dependencies>
  101. <build>
  102. <plugins>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-dependency-plugin</artifactId>
  106. <version>3.0.0</version>
  107. <executions>
  108. <execution>
  109. <id>copy-font-icons</id>
  110. <phase>generate-sources</phase>
  111. <goals>
  112. <goal>unpack-dependencies</goal>
  113. </goals>
  114. <!-- VaadinIcons.java file -->
  115. <configuration>
  116. <includeGroupIds>com.vaadin</includeGroupIds>
  117. <includeArtifactIds>vaadin-icons</includeArtifactIds>
  118. <excludeTransitive>true</excludeTransitive>
  119. <includes>com/vaadin/icons/VaadinIcons.java</includes>
  120. <overWrite>true</overWrite>
  121. <outputDirectory>${project.build.directory}/vaadin-icons</outputDirectory>
  122. </configuration>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.codehaus.mojo</groupId>
  128. <artifactId>build-helper-maven-plugin</artifactId>
  129. <version>3.0.0</version>
  130. <executions>
  131. <execution>
  132. <id>add-source</id>
  133. <phase>generate-sources</phase>
  134. <goals>
  135. <goal>add-source</goal>
  136. </goals>
  137. <configuration>
  138. <sources>
  139. <source>${project.build.directory}/vaadin-icons</source>
  140. </sources>
  141. </configuration>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <plugin>
  146. <artifactId>maven-resources-plugin</artifactId>
  147. <executions>
  148. <!-- Copy .java files to package -->
  149. <execution>
  150. <id>copy-sources</id>
  151. <!-- here the phase you need -->
  152. <phase>process-resources</phase>
  153. <goals>
  154. <goal>copy-resources</goal>
  155. </goals>
  156. <configuration>
  157. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  158. <resources>
  159. <resource>
  160. <directory>src/main/resources</directory>
  161. <filtering>false</filtering>
  162. </resource>
  163. <resource>
  164. <directory>src/main/java</directory>
  165. <filtering>false</filtering>
  166. </resource>
  167. <resource>
  168. <directory>${project.build.directory}/vaadin-icons</directory>
  169. <filtering>false</filtering>
  170. </resource>
  171. </resources>
  172. </configuration>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-checkstyle-plugin</artifactId>
  179. <executions>
  180. <execution>
  181. <goals>
  182. <goal>checkstyle</goal>
  183. </goals>
  184. <phase>process-sources</phase>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. <plugin>
  189. <artifactId>maven-antrun-plugin</artifactId>
  190. <executions>
  191. <execution>
  192. <id>compressbootstrap</id>
  193. <phase>prepare-package</phase>
  194. <goals>
  195. <goal>run</goal>
  196. </goals>
  197. <configuration>
  198. <target>
  199. <property name="vaadinBootstrap.js"
  200. location="${project.build.outputDirectory}/VAADIN/vaadinBootstrap.js" />
  201. <!-- Gzipped version -->
  202. <gzip src="${vaadinBootstrap.js}"
  203. destfile="${vaadinBootstrap.js}.gz" />
  204. </target>
  205. </configuration>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.apache.felix</groupId>
  211. <artifactId>maven-bundle-plugin</artifactId>
  212. <extensions>true</extensions>
  213. <configuration>
  214. <instructions>
  215. <Bundle-RequiredExecutionEnvironment>${osgi.execution.environment}</Bundle-RequiredExecutionEnvironment>
  216. <Bundle-Version>${osgi.bundle.version}</Bundle-Version>
  217. <Export-Package>VAADIN;version="${osgi.bundle.version}",com.vaadin.*;version="${osgi.bundle.version}"</Export-Package>
  218. <!-- Note that Liferay 6 does not use OSGi, and the dependency is optional for non-Liferay deployments -->
  219. <Import-Package>javax.servlet;version="${osgi.javax.servlet.version}",
  220. javax.servlet.http;version="${osgi.javax.servlet.version}",
  221. javax.validation;version="${javax.validation.version}";resolution:=optional,
  222. org.jsoup;version="${jsoup.version}",
  223. org.jsoup.parser;version="${jsoup.version}",
  224. org.jsoup.nodes;version="${jsoup.version}",
  225. org.jsoup.helper;version="${jsoup.version}",
  226. org.jsoup.safety;version="${jsoup.version}",
  227. org.jsoup.select;version="${jsoup.version}",
  228. javax.portlet;version="[${javax.portlet.version},3)";resolution:=optional,
  229. javax.portlet.filter;version="[${javax.portlet.version},3)";resolution:=optional,
  230. com.liferay.portal.kernel.util;version="[7,8)";resolution:=optional</Import-Package>
  231. <Require-Bundle>
  232. com.vaadin.shared;bundle-version="${osgi.bundle.version}",
  233. com.vaadin.push;bundle-version="${osgi.bundle.version}";resolution:=optional,
  234. com.vaadin.sass-compiler;bundle-version="${vaadin.sass.version}";resolution:=optional</Require-Bundle>
  235. </instructions>
  236. </configuration>
  237. <executions>
  238. <execution>
  239. <id>bundle-manifest</id>
  240. <phase>prepare-package</phase>
  241. <goals>
  242. <goal>manifest</goal>
  243. </goals>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-jar-plugin</artifactId>
  250. <configuration>
  251. <archive>
  252. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  253. <index>false</index>
  254. <manifest>
  255. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  256. </manifest>
  257. </archive>
  258. </configuration>
  259. <!-- Package src/test into a jar so that compatbility-server
  260. can use the same test classes, e.g. test beans -->
  261. <executions>
  262. <execution>
  263. <goals>
  264. <goal>test-jar</goal>
  265. </goals>
  266. </execution>
  267. </executions>
  268. </plugin>
  269. <plugin>
  270. <groupId>org.apache.maven.plugins</groupId>
  271. <artifactId>maven-surefire-plugin</artifactId>
  272. </plugin>
  273. </plugins>
  274. <pluginManagement>
  275. <plugins>
  276. <!-- Make Eclipse add the source folder -->
  277. <plugin>
  278. <groupId>org.eclipse.m2e</groupId>
  279. <artifactId>lifecycle-mapping</artifactId>
  280. <version>1.0.0</version>
  281. <configuration>
  282. <lifecycleMappingMetadata>
  283. <pluginExecutions>
  284. <pluginExecution>
  285. <pluginExecutionFilter>
  286. <groupId>org.codehaus.mojo</groupId>
  287. <artifactId>build-helper-maven-plugin</artifactId>
  288. <versionRange>[1.0,)</versionRange>
  289. <goals>
  290. <goal>add-source</goal>
  291. <!--
  292. <goal>add-test-source</goal>
  293. <goal>add-resource</goal>
  294. <goal>add-test-resource</goal>
  295. <goal>maven-version</goal>
  296. <goal>parse-version</goal>
  297. -->
  298. </goals>
  299. </pluginExecutionFilter>
  300. <action>
  301. <execute>
  302. <runOnConfiguration>true</runOnConfiguration>
  303. <!-- <runOnIncremental>true</runOnIncremental> -->
  304. </execute>
  305. </action>
  306. </pluginExecution>
  307. </pluginExecutions>
  308. </lifecycleMappingMetadata>
  309. </configuration>
  310. </plugin>
  311. </plugins>
  312. </pluginManagement>
  313. </build>
  314. </project>