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

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