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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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-parent</artifactId>
  8. <version>1.1.0</version>
  9. </parent>
  10. <artifactId>vaadin-root</artifactId>
  11. <name>vaadin-root</name>
  12. <packaging>pom</packaging>
  13. <version>7.7-SNAPSHOT</version>
  14. <prerequisites>
  15. <maven>3.1.0</maven>
  16. </prerequisites>
  17. <properties>
  18. <maven.compiler.source>1.6</maven.compiler.source>
  19. <maven.compiler.target>1.6</maven.compiler.target>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  22. <!-- Used version numbers for dependencies -->
  23. <commons-io.version>2.4</commons-io.version>
  24. <google.appengine.version>1.7.7</google.appengine.version>
  25. <jsoup.version>1.8.3</jsoup.version>
  26. <liferay.portal.version>6.0.2</liferay.portal.version>
  27. <vaadin.sass.version>0.9.13</vaadin.sass.version>
  28. <vaadin.gwt.version>2.7.0.vaadin7</vaadin.gwt.version>
  29. <vaadin.plugin.version>7.7.0</vaadin.plugin.version>
  30. <javax.portlet.version>2.0</javax.portlet.version>
  31. <javax.servlet.version>3.0.1</javax.servlet.version>
  32. <javax.validation.version>1.0.0.GA</javax.validation.version>
  33. <!-- Test dependencies -->
  34. <junit.version>4.11</junit.version>
  35. <!-- Atmosphere versions -->
  36. <!-- Note that this should be kept in sync with the class Constants -->
  37. <atmosphere.runtime.version>2.2.13.vaadin1</atmosphere.runtime.version>
  38. <atmosphere.js.version>2.2.13.vaadin5</atmosphere.js.version>
  39. <!-- Dependency unpack directory -->
  40. <dependency.unpack.directory>${project.build.directory}/dependency-unpack</dependency.unpack.directory>
  41. <!-- Cannot use 9.3 or 9.4 because they sometimes reset the connection too early in case of errors -->
  42. <jetty.version>9.4.14.v20181114</jetty.version>
  43. <phantomjs.version>2.1.1</phantomjs.version>
  44. </properties>
  45. <!-- TODO: remove this after maven plugin has been released -->
  46. <pluginRepositories>
  47. <pluginRepository>
  48. <id>vaadin-prereleases</id>
  49. <url>http://maven.vaadin.com/vaadin-prereleases</url>
  50. </pluginRepository>
  51. </pluginRepositories>
  52. <organization>
  53. <name>Vaadin Ltd</name>
  54. </organization>
  55. <url>https://vaadin.com/</url>
  56. <description>Vaadin Framework Root Pom</description>
  57. <licenses>
  58. <license>
  59. <name>Apache License Version 2.0</name>
  60. <distribution>repo</distribution>
  61. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  62. </license>
  63. </licenses>
  64. <scm>
  65. <connection>scm:https:https://github.com/vaadin/vaadin.git</connection>
  66. <developerConnection>scm:https:https://github.com/vaadin/vaadin.git</developerConnection>
  67. <url>https://github.com/vaadin/vaadin</url>
  68. </scm>
  69. <modules>
  70. <module>buildhelpers</module>
  71. <module>shared</module>
  72. <module>push</module>
  73. <module>server</module>
  74. <module>client</module>
  75. <module>client-compiler</module>
  76. <module>client-compiled</module>
  77. <module>themes</module>
  78. <module>widgets</module>
  79. <module>uitest</module>
  80. <module>liferay</module>
  81. <module>all</module>
  82. <!-- Nexus staging bug needs the last module to be deployed. -->
  83. <module>bom</module>
  84. </modules>
  85. <build>
  86. <pluginManagement>
  87. <plugins>
  88. <plugin>
  89. <artifactId>maven-clean-plugin</artifactId>
  90. <version>3.0.0</version>
  91. </plugin>
  92. <plugin>
  93. <artifactId>maven-compiler-plugin</artifactId>
  94. <version>3.5.1</version>
  95. </plugin>
  96. <plugin>
  97. <artifactId>maven-deploy-plugin</artifactId>
  98. <version>2.8.2</version>
  99. </plugin>
  100. <plugin>
  101. <artifactId>maven-install-plugin</artifactId>
  102. <version>2.5.2</version>
  103. </plugin>
  104. <plugin>
  105. <artifactId>maven-resources-plugin</artifactId>
  106. <!-- Downgraded due to filtering related bug -->
  107. <version>2.6</version>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-site-plugin</artifactId>
  111. <version>3.5</version>
  112. </plugin>
  113. <plugin>
  114. <artifactId>maven-jar-plugin</artifactId>
  115. <version>2.6</version>
  116. </plugin>
  117. <plugin>
  118. <artifactId>maven-assembly-plugin</artifactId>
  119. <version>2.6</version>
  120. </plugin>
  121. <plugin>
  122. <artifactId>maven-surefire-plugin</artifactId>
  123. <version>2.19.1</version>
  124. </plugin>
  125. <plugin>
  126. <artifactId>maven-failsafe-plugin</artifactId>
  127. <version>2.19.1</version>
  128. </plugin>
  129. <plugin>
  130. <groupId>com.github.klieber</groupId>
  131. <artifactId>phantomjs-maven-plugin</artifactId>
  132. <version>0.7</version>
  133. </plugin>
  134. <plugin>
  135. <artifactId>maven-antrun-plugin</artifactId>
  136. <version>1.8</version>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.felix</groupId>
  140. <artifactId>maven-bundle-plugin</artifactId>
  141. <version>3.0.1</version>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-dependency-plugin</artifactId>
  146. <version>2.10</version>
  147. <configuration>
  148. <outputDirectory>${dependency.unpack.directory}</outputDirectory>
  149. <overWriteReleases>false</overWriteReleases>
  150. <overWriteSnapshots>true</overWriteSnapshots>
  151. </configuration>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.codehaus.mojo</groupId>
  155. <artifactId>exec-maven-plugin</artifactId>
  156. <version>1.4.0</version>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.codehaus.mojo</groupId>
  160. <artifactId>versions-maven-plugin</artifactId>
  161. <version>2.3</version>
  162. </plugin>
  163. <plugin>
  164. <groupId>org.codehaus.mojo</groupId>
  165. <artifactId>build-helper-maven-plugin</artifactId>
  166. <version>1.10</version>
  167. </plugin>
  168. <plugin>
  169. <artifactId>maven-source-plugin</artifactId>
  170. <version>3.0.0</version>
  171. </plugin>
  172. <plugin>
  173. <groupId>com.vaadin</groupId>
  174. <artifactId>vaadin-maven-plugin</artifactId>
  175. <version>${vaadin.plugin.version}</version>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-checkstyle-plugin</artifactId>
  180. <version>2.17</version>
  181. <dependencies>
  182. <!-- Needed because of a JavadocMethodCheck bug in
  183. 6.11 -->
  184. <dependency>
  185. <groupId>com.puppycrawl.tools</groupId>
  186. <artifactId>checkstyle</artifactId>
  187. <version>6.17</version>
  188. </dependency>
  189. </dependencies>
  190. <configuration>
  191. <configLocation>../checkstyle/vaadin-checkstyle.xml</configLocation>
  192. <headerLocation>../checkstyle/header</headerLocation>
  193. <suppressionsLocation>../checkstyle/suppressions.xml</suppressionsLocation>
  194. <encoding>UTF-8</encoding>
  195. <consoleOutput>false</consoleOutput>
  196. <failsOnError>false</failsOnError>
  197. <linkXRef>false</linkXRef>
  198. </configuration>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.codehaus.mojo</groupId>
  202. <artifactId>animal-sniffer-maven-plugin</artifactId>
  203. <version>1.15</version>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.eclipse.m2e</groupId>
  207. <artifactId>lifecycle-mapping</artifactId>
  208. <version>1.0.0</version>
  209. <configuration>
  210. <lifecycleMappingMetadata>
  211. <pluginExecutions>
  212. <pluginExecution>
  213. <pluginExecutionFilter>
  214. <groupId>
  215. org.apache.maven.plugins
  216. </groupId>
  217. <artifactId>
  218. maven-antrun-plugin
  219. </artifactId>
  220. <versionRange>
  221. [1.8,)
  222. </versionRange>
  223. <goals>
  224. <goal>run</goal>
  225. </goals>
  226. </pluginExecutionFilter>
  227. <action>
  228. <ignore></ignore>
  229. </action>
  230. </pluginExecution>
  231. </pluginExecutions>
  232. </lifecycleMappingMetadata>
  233. </configuration>
  234. </plugin>
  235. </plugins>
  236. </pluginManagement>
  237. <plugins>
  238. <plugin>
  239. <groupId>org.codehaus.mojo</groupId>
  240. <artifactId>build-helper-maven-plugin</artifactId>
  241. <version>1.8</version>
  242. <executions>
  243. <execution>
  244. <id>parse-version</id>
  245. <goals>
  246. <goal>parse-version</goal>
  247. </goals>
  248. </execution>
  249. </executions>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.codehaus.mojo</groupId>
  253. <artifactId>animal-sniffer-maven-plugin</artifactId>
  254. <executions>
  255. <execution>
  256. <id>java6compatibility</id>
  257. <phase>test</phase>
  258. <goals>
  259. <goal>check</goal>
  260. </goals>
  261. <configuration>
  262. <signature>
  263. <groupId>org.codehaus.mojo.signature</groupId>
  264. <artifactId>java16</artifactId>
  265. <version>1.0</version>
  266. </signature>
  267. <ignores>
  268. <ignore>com.google.gwt.*</ignore>
  269. </ignores>
  270. </configuration>
  271. </execution>
  272. </executions>
  273. </plugin>
  274. <!-- Unpacked Dependencies as resource -->
  275. <plugin>
  276. <groupId>org.codehaus.mojo</groupId>
  277. <artifactId>build-helper-maven-plugin</artifactId>
  278. <!-- Needs extra resource folder for unpacked dependencies -->
  279. <executions>
  280. <execution>
  281. <id>add-dependency-resources</id>
  282. <phase>generate-resources</phase>
  283. <goals>
  284. <goal>add-resource</goal>
  285. </goals>
  286. <configuration>
  287. <resources>
  288. <resource>
  289. <directory>${dependency.unpack.directory}</directory>
  290. <filtering>false</filtering>
  291. </resource>
  292. </resources>
  293. </configuration>
  294. </execution>
  295. </executions>
  296. </plugin>
  297. </plugins>
  298. </build>
  299. <profiles>
  300. <profile>
  301. <id>slowtest</id>
  302. <modules>
  303. <module>test</module>
  304. </modules>
  305. </profile>
  306. <profile>
  307. <!-- Snapshot build only builds artifacts that are deployed or
  308. needed by them -->
  309. <id>snapshot</id>
  310. <properties>
  311. <vaadin.plugin.version>${project.version}</vaadin.plugin.version>
  312. </properties>
  313. <build>
  314. <plugins>
  315. <plugin>
  316. <artifactId>maven-source-plugin</artifactId>
  317. <executions>
  318. <execution>
  319. <id>sources-jar</id>
  320. <phase>package</phase>
  321. <goals>
  322. <goal>jar</goal>
  323. </goals>
  324. <configuration>
  325. <!-- Only include java files -->
  326. <includes>
  327. <include>**/*.java</include>
  328. </includes>
  329. </configuration>
  330. </execution>
  331. </executions>
  332. </plugin>
  333. <plugin>
  334. <artifactId>maven-javadoc-plugin</artifactId>
  335. <version>2.10.3</version>
  336. <executions>
  337. <execution>
  338. <id>generate-javadoc</id>
  339. <goals>
  340. <goal>jar</goal>
  341. </goals>
  342. <configuration>
  343. <failOnError>false</failOnError>
  344. </configuration>
  345. </execution>
  346. </executions>
  347. </plugin>
  348. </plugins>
  349. </build>
  350. </profile>
  351. <profile>
  352. <id>release</id>
  353. <activation>
  354. <activeByDefault>false</activeByDefault>
  355. </activation>
  356. <properties>
  357. <vaadin.plugin.version>${project.version}</vaadin.plugin.version>
  358. </properties>
  359. <build>
  360. <plugins>
  361. <plugin>
  362. <artifactId>maven-source-plugin</artifactId>
  363. <executions>
  364. <execution>
  365. <id>sources-jar</id>
  366. <phase>package</phase>
  367. <goals>
  368. <goal>jar</goal>
  369. </goals>
  370. <configuration>
  371. <!-- Only include java files -->
  372. <includes>
  373. <include>**/*.java</include>
  374. </includes>
  375. </configuration>
  376. </execution>
  377. </executions>
  378. </plugin>
  379. <plugin>
  380. <artifactId>maven-javadoc-plugin</artifactId>
  381. <version>2.10.3</version>
  382. <executions>
  383. <execution>
  384. <id>generate-javadoc</id>
  385. <goals>
  386. <goal>jar</goal>
  387. </goals>
  388. <configuration>
  389. <failOnError>false</failOnError>
  390. </configuration>
  391. </execution>
  392. </executions>
  393. </plugin>
  394. <plugin>
  395. <groupId>org.sonatype.plugins</groupId>
  396. <artifactId>nexus-staging-maven-plugin</artifactId>
  397. <version>1.6.7</version>
  398. <extensions>true</extensions>
  399. </plugin>
  400. </plugins>
  401. </build>
  402. </profile>
  403. <profile>
  404. <!-- This profile is disjoint with default profile. It allows
  405. to prevent running build for all available modules but restricts a number
  406. of modules to specified here only (which allows to avoid long time compilation
  407. for projects that are not needed since japicmp works with compiled classes).
  408. ! -->
  409. <id>apicmp</id>
  410. <modules>
  411. <module>server</module>
  412. <module>push</module>
  413. <module>client</module>
  414. <module>client-compiler</module>
  415. <module>shared</module>
  416. </modules>
  417. <repositories>
  418. <repository>
  419. <id>vaadin-prereleases</id>
  420. <url>http://maven.vaadin.com/vaadin-prereleases</url>
  421. </repository>
  422. </repositories>
  423. <build>
  424. <plugins>
  425. <plugin>
  426. <groupId>com.github.siom79.japicmp</groupId>
  427. <artifactId>japicmp-maven-plugin</artifactId>
  428. <version>0.9.1</version>
  429. <configuration>
  430. <oldVersion>
  431. <dependency>
  432. <groupId>${project.groupId}</groupId>
  433. <artifactId>${project.artifactId}</artifactId>
  434. <version>${vaadin.api.reference.version}</version>
  435. <type>jar</type>
  436. </dependency>
  437. </oldVersion>
  438. <newVersion>
  439. <file>
  440. <path>${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}</path>
  441. </file>
  442. </newVersion>
  443. <parameter>
  444. <ignoreMissingClasses>true</ignoreMissingClasses>
  445. <onlyModified>true</onlyModified>
  446. <skipDiffReport>true</skipDiffReport>
  447. <skipXmlReport>true</skipXmlReport>
  448. <ignoreMissingOldVersion>true</ignoreMissingOldVersion>
  449. <ignoreMissingNewVersion>true</ignoreMissingNewVersion>
  450. </parameter>
  451. </configuration>
  452. <executions>
  453. <execution>
  454. <phase>verify</phase>
  455. <goals>
  456. <goal>cmp</goal>
  457. </goals>
  458. </execution>
  459. </executions>
  460. </plugin>
  461. </plugins>
  462. </build>
  463. </profile>
  464. </profiles>
  465. </project>