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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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.11-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>net.revelc.code.formatter</groupId>
  127. <artifactId>formatter-maven-plugin</artifactId>
  128. </plugin>
  129. <plugin>
  130. <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
  131. <artifactId>whitespace-maven-plugin</artifactId>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-dependency-plugin</artifactId>
  136. <executions>
  137. <execution>
  138. <id>copy-font-icons</id>
  139. <phase>generate-sources</phase>
  140. <goals>
  141. <goal>unpack-dependencies</goal>
  142. </goals>
  143. <!-- VaadinIcons.java file -->
  144. <configuration>
  145. <includeGroupIds>com.vaadin</includeGroupIds>
  146. <includeArtifactIds>vaadin-icons</includeArtifactIds>
  147. <excludeTransitive>true</excludeTransitive>
  148. <includes>com/vaadin/icons/VaadinIcons.java</includes>
  149. <overWrite>true</overWrite>
  150. <outputDirectory>${project.build.directory}/vaadin-icons</outputDirectory>
  151. </configuration>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. <plugin>
  156. <groupId>org.codehaus.mojo</groupId>
  157. <artifactId>build-helper-maven-plugin</artifactId>
  158. <executions>
  159. <execution>
  160. <id>add-source</id>
  161. <phase>generate-sources</phase>
  162. <goals>
  163. <goal>add-source</goal>
  164. </goals>
  165. <configuration>
  166. <sources>
  167. <source>${project.build.directory}/vaadin-icons</source>
  168. </sources>
  169. </configuration>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <artifactId>maven-resources-plugin</artifactId>
  175. <executions>
  176. <!-- Copy .java files to package -->
  177. <execution>
  178. <id>copy-sources</id>
  179. <!-- here the phase you need -->
  180. <phase>process-resources</phase>
  181. <goals>
  182. <goal>copy-resources</goal>
  183. </goals>
  184. <configuration>
  185. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  186. <resources>
  187. <resource>
  188. <directory>src/main/resources</directory>
  189. <filtering>false</filtering>
  190. </resource>
  191. <resource>
  192. <directory>src/main/java</directory>
  193. <filtering>false</filtering>
  194. </resource>
  195. <resource>
  196. <directory>${project.build.directory}/vaadin-icons</directory>
  197. <filtering>false</filtering>
  198. </resource>
  199. </resources>
  200. </configuration>
  201. </execution>
  202. </executions>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-checkstyle-plugin</artifactId>
  207. <executions>
  208. <execution>
  209. <goals>
  210. <goal>checkstyle</goal>
  211. </goals>
  212. <phase>process-sources</phase>
  213. </execution>
  214. </executions>
  215. </plugin>
  216. <plugin>
  217. <artifactId>maven-antrun-plugin</artifactId>
  218. <executions>
  219. <execution>
  220. <id>compressbootstrap</id>
  221. <phase>prepare-package</phase>
  222. <goals>
  223. <goal>run</goal>
  224. </goals>
  225. <configuration>
  226. <target>
  227. <property name="vaadinBootstrap.js"
  228. location="${project.build.outputDirectory}/VAADIN/vaadinBootstrap.js" />
  229. <!-- Gzipped version -->
  230. <gzip src="${vaadinBootstrap.js}"
  231. destfile="${vaadinBootstrap.js}.gz" />
  232. </target>
  233. </configuration>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. <plugin>
  238. <groupId>biz.aQute.bnd</groupId>
  239. <artifactId>bnd-maven-plugin</artifactId>
  240. </plugin>
  241. <plugin>
  242. <groupId>org.apache.maven.plugins</groupId>
  243. <artifactId>maven-jar-plugin</artifactId>
  244. <configuration>
  245. <archive>
  246. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  247. <index>false</index>
  248. <manifest>
  249. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  250. </manifest>
  251. </archive>
  252. </configuration>
  253. <!-- Package src/test into a jar so that compatbility-server
  254. can use the same test classes, e.g. test beans -->
  255. <executions>
  256. <execution>
  257. <goals>
  258. <goal>test-jar</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-surefire-plugin</artifactId>
  266. </plugin>
  267. </plugins>
  268. <pluginManagement>
  269. <plugins>
  270. <!-- Make Eclipse add the source folder -->
  271. <plugin>
  272. <groupId>org.eclipse.m2e</groupId>
  273. <artifactId>lifecycle-mapping</artifactId>
  274. <version>1.0.0</version>
  275. <configuration>
  276. <lifecycleMappingMetadata>
  277. <pluginExecutions>
  278. <pluginExecution>
  279. <pluginExecutionFilter>
  280. <groupId>org.codehaus.mojo</groupId>
  281. <artifactId>build-helper-maven-plugin</artifactId>
  282. <versionRange>[1.0,)</versionRange>
  283. <goals>
  284. <goal>add-source</goal>
  285. <!--
  286. <goal>add-test-source</goal>
  287. <goal>add-resource</goal>
  288. <goal>add-test-resource</goal>
  289. <goal>maven-version</goal>
  290. <goal>parse-version</goal>
  291. -->
  292. </goals>
  293. </pluginExecutionFilter>
  294. <action>
  295. <execute>
  296. <runOnConfiguration>true</runOnConfiguration>
  297. <!-- <runOnIncremental>true</runOnIncremental> -->
  298. </execute>
  299. </action>
  300. </pluginExecution>
  301. </pluginExecutions>
  302. </lifecycleMappingMetadata>
  303. </configuration>
  304. </plugin>
  305. </plugins>
  306. </pluginManagement>
  307. </build>
  308. </project>