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

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