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

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