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.

495 lines
20 KiB

10 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
10 years ago
  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/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.edurekademo.tutorial</groupId>
  6. <artifactId>addressbook</artifactId>
  7. <packaging>war</packaging>
  8. <version>2.0</version>
  9. <name>Vaadin Addressbook example</name>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <failOnMissingWebXml>false</failOnMissingWebXml>
  13. <vaadin.version>8.0.0.alpha2</vaadin.version>
  14. <vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
  15. </properties>
  16. <repositories>
  17. <repository>
  18. <id>vaadin-prereleases</id>
  19. <name>Vaadin Pre-releases</name>
  20. <url>https://maven.vaadin.com/vaadin-prereleases</url>
  21. </repository>
  22. <!-- Essential Vaadin artifacts are in maven central, but maven.vaadin.com
  23. contains a huge set of additional libraries. See vaadin.com/directory -->
  24. <repository>
  25. <id>vaadin-addons</id>
  26. <url>http://maven.vaadin.com/vaadin-addons</url>
  27. </repository>
  28. <repository>
  29. <id>vaadin-snapshots</id>
  30. <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
  31. <releases>
  32. <enabled>false</enabled>
  33. </releases>
  34. <snapshots>
  35. <enabled>true</enabled>
  36. </snapshots>
  37. </repository>
  38. </repositories>
  39. <pluginRepositories>
  40. <pluginRepository>
  41. <id>vaadin-snapshots</id>
  42. <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
  43. <releases>
  44. <enabled>false</enabled>
  45. </releases>
  46. <snapshots>
  47. <enabled>true</enabled>
  48. </snapshots>
  49. </pluginRepository>
  50. </pluginRepositories>
  51. <dependencies>
  52. <dependency>
  53. <groupId>com.vaadin</groupId>
  54. <artifactId>vaadin-compatibility-server</artifactId>
  55. <version>${vaadin.version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.vaadin</groupId>
  59. <artifactId>vaadin-compatibility-shared</artifactId>
  60. <version>${vaadin.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.vaadin</groupId>
  64. <artifactId>vaadin-compatibility-client-compiled</artifactId>
  65. <version>${vaadin.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.vaadin</groupId>
  69. <artifactId>vaadin-themes</artifactId>
  70. <version>${vaadin.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>javax.servlet</groupId>
  74. <artifactId>javax.servlet-api</artifactId>
  75. <version>3.0.1</version>
  76. <scope>compile</scope>
  77. </dependency>
  78. <!-- The huge set of awesome Java libraries are available as such
  79. for Vaadin developers, you should take the advantage of those. In this app
  80. we just use the commons-beanutils to help implementing the fake backend. -->
  81. <dependency>
  82. <groupId>commons-beanutils</groupId>
  83. <artifactId>commons-beanutils</artifactId>
  84. <version>1.9.2</version>
  85. <type>jar</type>
  86. </dependency>
  87. <!-- LOGGING -->
  88. <dependency>
  89. <groupId>log4j</groupId>
  90. <artifactId>log4j</artifactId>
  91. <version>1.2.9</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.slf4j</groupId>
  95. <artifactId>slf4j-api</artifactId>
  96. <version>1.7.7</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.slf4j</groupId>
  100. <artifactId>slf4j-simple</artifactId>
  101. <version>1.7.7</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.slf4j</groupId>
  105. <artifactId>slf4j-log4j12</artifactId>
  106. <version>1.7.7</version>
  107. </dependency>
  108. <!-- TESTING -->
  109. <dependency>
  110. <groupId>junit</groupId>
  111. <artifactId>junit</artifactId>
  112. <version>4.12</version>
  113. <scope>test</scope>
  114. </dependency>
  115. <!-- COMMONS -->
  116. <dependency>
  117. <groupId>commons-httpclient</groupId>
  118. <artifactId>commons-httpclient</artifactId>
  119. <version>3.1</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.commons</groupId>
  123. <artifactId>commons-lang3</artifactId>
  124. <version>3.1</version>
  125. </dependency>
  126. <!-- JSON -->
  127. <dependency>
  128. <groupId>org.json</groupId>
  129. <artifactId>json</artifactId>
  130. <version>20140107</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.codehaus.jackson</groupId>
  134. <artifactId>jackson-jaxrs</artifactId>
  135. <version>1.9.4</version>
  136. </dependency>
  137. <!-- XML -->
  138. <dependency>
  139. <groupId>com.sun.xml.security</groupId>
  140. <artifactId>xml-security-impl</artifactId>
  141. <version>1.0</version>
  142. </dependency>
  143. </dependencies>
  144. <build>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-compiler-plugin</artifactId>
  149. <version>3.2</version>
  150. <configuration>
  151. <source>1.8</source>
  152. <target>1.8</target>
  153. </configuration>
  154. </plugin>
  155. <plugin>
  156. <groupId>org.eclipse.jetty</groupId>
  157. <artifactId>jetty-maven-plugin</artifactId>
  158. <version>9.2.3.v20140905</version>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-surefire-plugin</artifactId>
  163. <version>2.19.1</version>
  164. <configuration>
  165. <parallel>methods</parallel>
  166. <threadCount>10</threadCount>
  167. <includes>
  168. <include>**/Test*.java</include>
  169. <include>**/Test.java</include>
  170. <include>**/TestCase.java</include>
  171. </includes>
  172. <excludes>
  173. <exclude>**/*Abstract*Test.java</exclude>
  174. </excludes>
  175. </configuration>
  176. </plugin>
  177. </plugins>
  178. <finalName>addressbook</finalName>
  179. </build>
  180. <reporting>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-surefire-report-plugin</artifactId>
  185. <version>2.19.1</version>
  186. </plugin>
  187. </plugins>
  188. </reporting>
  189. <profiles>
  190. <profile>
  191. <id>development</id>
  192. <activation>
  193. <activeByDefault>true</activeByDefault>
  194. </activation>
  195. </profile>
  196. <profile>
  197. <id>metrics</id>
  198. <build>
  199. <plugins>
  200. <!-- CHECKSTYLE -->
  201. <!--<plugin>-->
  202. <!--<artifactId>maven-checkstyle-plugin</artifactId>-->
  203. <!--<version>2.9.1</version>-->
  204. <!--<dependencies>-->
  205. <!--<dependency>-->
  206. <!--<groupId>com.wakaleo.gameoflife</groupId>-->
  207. <!--<artifactId>gameoflife-build</artifactId>-->
  208. <!--<version>${project.version}</version>-->
  209. <!--</dependency>-->
  210. <!--</dependencies>-->
  211. <!--<configuration>-->
  212. <!--<configLocation>custom-checkstyle.xml</configLocation>-->
  213. <!--</configuration>-->
  214. <!--</plugin>-->
  215. <!-- PMD -->
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-pmd-plugin</artifactId>
  219. <version>3.2</version>
  220. <configuration>
  221. <targetJdk>1.6</targetJdk>
  222. <aggregate>true</aggregate>
  223. <format>xml</format>
  224. <!-- CPD options -->
  225. <minimumTokens>20</minimumTokens>
  226. <!--<ignoreIdentifiers>true</ignoreIdentifiers>-->
  227. <failOnViolation>true</failOnViolation>
  228. <failurePriority>2</failurePriority>
  229. </configuration>
  230. </plugin>
  231. <!-- FINDBUGS -->
  232. <plugin>
  233. <artifactId>findbugs-maven-plugin</artifactId>
  234. <version>2.4.0</version>
  235. <configuration>
  236. <effort>Max</effort>
  237. <xmlOutput>true</xmlOutput>
  238. </configuration>
  239. </plugin>
  240. </plugins>
  241. </build>
  242. </profile>
  243. <profile>
  244. <id>maven3</id>
  245. <activation>
  246. <activeByDefault>true</activeByDefault>
  247. </activation>
  248. <build>
  249. <plugins>
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-enforcer-plugin</artifactId>
  253. <version>1.0</version>
  254. <executions>
  255. <execution>
  256. <id>enforce-versions</id>
  257. <goals>
  258. <goal>enforce</goal>
  259. </goals>
  260. <configuration>
  261. <rules>
  262. <requireMavenVersion>
  263. <version>[3.0,)</version>
  264. </requireMavenVersion>
  265. </rules>
  266. </configuration>
  267. </execution>
  268. </executions>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.apache.maven.plugins</groupId>
  272. <artifactId>maven-site-plugin</artifactId>
  273. <version>3.3</version>
  274. <configuration>
  275. <reportPlugins>
  276. <plugin>
  277. <artifactId>maven-project-info-reports-plugin</artifactId>
  278. <version>2.7</version>
  279. </plugin>
  280. <plugin>
  281. <groupId>org.jacoco</groupId>
  282. <artifactId>jacoco-maven-plugin</artifactId>
  283. <version>0.7.2.201409121644</version>
  284. </plugin>
  285. <plugin>
  286. <groupId>org.apache.maven.plugins</groupId>
  287. <artifactId>maven-checkstyle-plugin</artifactId>
  288. <version>3.0.1</version>
  289. <!--<configuration>-->
  290. <!--<configLocation>gol-checkstyle.xml</configLocation>-->
  291. <!--</configuration>-->
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-pmd-plugin</artifactId>
  296. <version>3.2</version>
  297. <configuration>
  298. <targetJdk>1.6</targetJdk>
  299. <aggregate>true</aggregate>
  300. <format>xml</format>
  301. <rulesets>
  302. <ruleset>/pmd-rules.xml</ruleset>
  303. </rulesets>
  304. <!-- CPD options -->
  305. <minimumTokens>20</minimumTokens>
  306. <ignoreIdentifiers>true</ignoreIdentifiers>
  307. </configuration>
  308. </plugin>
  309. <plugin>
  310. <groupId>org.codehaus.mojo</groupId>
  311. <artifactId>findbugs-maven-plugin</artifactId>
  312. <version>2.4.0</version>
  313. <configuration>
  314. <effort>Max</effort>
  315. <xmlOutput>true</xmlOutput>
  316. </configuration>
  317. </plugin>
  318. <plugin>
  319. <artifactId>maven-javadoc-plugin</artifactId>
  320. <version>2.9.1</version>
  321. <configuration>
  322. <source>1.6</source>
  323. <doclet>
  324. gr.spinellis.umlgraph.doclet.UmlGraphDoc
  325. </doclet>
  326. <docletArtifact>
  327. <groupId>gr.spinellis</groupId>
  328. <artifactId>UmlGraph</artifactId>
  329. <version>4.6</version>
  330. </docletArtifact>
  331. <additionalparam>
  332. -inferrel -inferdep -hide java.* -collpackages
  333. java.util.* -attributes -operations
  334. -enumerations -enumconstants
  335. </additionalparam>
  336. </configuration>
  337. </plugin>
  338. <plugin>
  339. <groupId>org.apache.maven.plugins</groupId>
  340. <artifactId>maven-jxr-plugin</artifactId>
  341. <version>2.4</version>
  342. </plugin>
  343. </reportPlugins>
  344. </configuration>
  345. <dependencies>
  346. <dependency>
  347. <groupId>com.edurekademo.tutorial</groupId>
  348. <artifactId>addressbook</artifactId>
  349. <version>${project.version}</version>
  350. </dependency>
  351. </dependencies>
  352. </plugin>
  353. </plugins>
  354. </build>
  355. </profile>
  356. <profile>
  357. <id>maven2</id>
  358. <build>
  359. <plugins>
  360. <plugin>
  361. <groupId>org.apache.maven.plugins</groupId>
  362. <artifactId>maven-enforcer-plugin</artifactId>
  363. <version>1.0</version>
  364. <executions>
  365. <execution>
  366. <id>enforce-versions</id>
  367. <goals>
  368. <goal>enforce</goal>
  369. </goals>
  370. <configuration>
  371. <rules>
  372. <requireMavenVersion>
  373. <version>[2.0.9, 2.2.1]</version>
  374. </requireMavenVersion>
  375. </rules>
  376. </configuration>
  377. </execution>
  378. </executions>
  379. </plugin>
  380. <plugin>
  381. <groupId>org.apache.maven.plugins</groupId>
  382. <artifactId>maven-site-plugin</artifactId>
  383. <version>2.1.1</version>
  384. <dependencies>
  385. <dependency>
  386. <groupId>com.edurekademo.tutorial</groupId>
  387. <artifactId>addressbook</artifactId>
  388. <version>${project.version}</version>
  389. </dependency>
  390. </dependencies>
  391. </plugin>
  392. </plugins>
  393. </build>
  394. <reporting>
  395. <plugins>
  396. <plugin>
  397. <groupId>org.codehaus.mojo</groupId>
  398. <artifactId>cobertura-maven-plugin</artifactId>
  399. <version>${cobertura.version}</version>
  400. <configuration>
  401. <formats>
  402. <format>html</format>
  403. <format>xml</format>
  404. </formats>
  405. </configuration>
  406. </plugin>
  407. <plugin>
  408. <groupId>org.apache.maven.plugins</groupId>
  409. <artifactId>maven-pmd-plugin</artifactId>
  410. <version>2.5</version>
  411. <configuration>
  412. <targetJdk>1.6</targetJdk>
  413. <aggregate>true</aggregate>
  414. <format>xml</format>
  415. <rulesets>
  416. <ruleset>/pmd-rules.xml</ruleset>
  417. </rulesets>
  418. <!-- CPD options -->
  419. <minimumTokens>20</minimumTokens>
  420. <ignoreIdentifiers>true</ignoreIdentifiers>
  421. </configuration>
  422. </plugin>
  423. <plugin>
  424. <groupId>org.apache.maven.plugins</groupId>
  425. <artifactId>maven-checkstyle-plugin</artifactId>
  426. <version>2.9.1</version>
  427. <configuration>
  428. <configLocation>addressbook-build/checkstyle.xml</configLocation>
  429. </configuration>
  430. </plugin>
  431. <plugin>
  432. <groupId>org.codehaus.mojo</groupId>
  433. <artifactId>findbugs-maven-plugin</artifactId>
  434. <version>2.4.0</version>
  435. <configuration>
  436. <effort>Max</effort>
  437. <xmlOutput>true</xmlOutput>
  438. </configuration>
  439. </plugin>
  440. <plugin>
  441. <artifactId>maven-javadoc-plugin</artifactId>
  442. <version>2.7</version>
  443. <configuration>
  444. <source>1.6</source>
  445. <doclet>
  446. gr.spinellis.umlgraph.doclet.UmlGraphDoc
  447. </doclet>
  448. <docletArtifact>
  449. <groupId>gr.spinellis</groupId>
  450. <artifactId>UmlGraph</artifactId>
  451. <version>4.6</version>
  452. </docletArtifact>
  453. <additionalparam>
  454. -inferrel -inferdep -hide java.* -collpackages
  455. java.util.* -attributes -operations
  456. -enumerations -enumconstants
  457. </additionalparam>
  458. </configuration>
  459. </plugin>
  460. <plugin>
  461. <groupId>org.apache.maven.plugins</groupId>
  462. <artifactId>maven-jxr-plugin</artifactId>
  463. <version>2.1</version>
  464. </plugin>
  465. </plugins>
  466. </reporting>
  467. </profile>
  468. </profiles>
  469. </project>