pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>hello</groupId>
  5. <artifactId>hello</artifactId>
  6. <version>1.0-SNAPSHOT</version>
  7. <packaging>war</packaging>
  8. <name>hello Tapestry 5 Application</name>
  9. <dependencies>
  10. <!-- Too set up an application with a database, change the artifactId below to
  11. tapestry-hibernate, and add a dependency on your JDBC driver. You'll also
  12. need to add Hibernate configuration files, such as hibernate.cfg.xml. -->
  13. <dependency>
  14. <groupId>org.apache.tapestry</groupId>
  15. <artifactId>tapestry-hibernate</artifactId>
  16. <version>${tapestry-release-version}</version>
  17. </dependency>
  18. <!-- MySQL JDBC driver -->
  19. <dependency>
  20. <groupId>mysql</groupId>
  21. <artifactId>mysql-connector-java</artifactId>
  22. <version>5.1.23</version>
  23. </dependency>
  24. <!-- This adds automatic compression of JavaScript and CSS when in production mode. -->
  25. <dependency>
  26. <groupId>org.apache.tapestry</groupId>
  27. <artifactId>tapestry-yuicompressor</artifactId>
  28. <version>${tapestry-release-version}</version>
  29. </dependency>
  30. <!-- Uncomment this to add support for file uploads:
  31. <dependency>
  32. <groupId>org.apache.tapestry</groupId>
  33. <artifactId>tapestry-upload</artifactId>
  34. <version>${tapestry-release-version}</version>
  35. </dependency>
  36. -->
  37. <!-- A dependency on either JUnit or TestNG is required, or the surefire plugin (which runs the tests)
  38. will fail, preventing Maven from packaging the WAR. Tapestry includes a large number
  39. of testing facilities designed for use with TestNG (http://testng.org/), so it's recommended. -->
  40. <dependency>
  41. <groupId>org.testng</groupId>
  42. <artifactId>testng</artifactId>
  43. <version>${testng-release-version}</version>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.easymock</groupId>
  48. <artifactId>easymock</artifactId>
  49. <version>${easymock-release-version}</version>
  50. <scope>test</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.tapestry</groupId>
  54. <artifactId>tapestry-test</artifactId>
  55. <version>${tapestry-release-version}</version>
  56. <scope>test</scope>
  57. </dependency>
  58. <!-- Provided by the servlet container, but sometimes referenced in the application
  59. code. -->
  60. <dependency>
  61. <groupId>javax.servlet</groupId>
  62. <artifactId>servlet-api</artifactId>
  63. <version>${servlet-api-release-version}</version>
  64. <scope>provided</scope>
  65. </dependency>
  66. <!-- Provide dependency to the Tapestry javadoc taglet which replaces the Maven component report -->
  67. <dependency>
  68. <groupId>org.apache.tapestry</groupId>
  69. <artifactId>tapestry-javadoc</artifactId>
  70. <version>${tapestry-release-version}</version>
  71. <scope>provided</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.fasterxml.jackson.core</groupId>
  75. <artifactId>jackson-databind</artifactId>
  76. <version>2.3.0</version>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <finalName>tapestry</finalName>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-compiler-plugin</artifactId>
  85. <version>2.3.2</version>
  86. <configuration>
  87. <source>1.7</source>
  88. <target>1.7</target>
  89. <optimize>true</optimize>
  90. </configuration>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-surefire-plugin</artifactId>
  95. <version>2.7.2</version>
  96. <configuration>
  97. <systemPropertyVariables>
  98. <tapestry.execution-mode>Qa</tapestry.execution-mode>
  99. </systemPropertyVariables>
  100. </configuration>
  101. </plugin>
  102. <!-- Run the application using "mvn jetty:run" -->
  103. <plugin>
  104. <groupId>org.mortbay.jetty</groupId>
  105. <artifactId>jetty-maven-plugin</artifactId>
  106. <version>7.5.0.v20110901</version>
  107. <configuration>
  108. <systemProperties>
  109. <systemProperty>
  110. <name>tapestry.execution-mode</name>
  111. <value>development</value>
  112. </systemProperty>
  113. </systemProperties>
  114. </configuration>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. <reporting/>
  119. <repositories>
  120. <!-- This repository is only needed when the Tapestry version is a preview release, rather
  121. than a final release. -->
  122. <repository>
  123. <id>apache-staging</id>
  124. <url>https://repository.apache.org/content/groups/staging/</url>
  125. </repository>
  126. </repositories>
  127. <properties>
  128. <tapestry-release-version>5.3.6</tapestry-release-version>
  129. <servlet-api-release-version>2.5</servlet-api-release-version>
  130. <testng-release-version>5.14.10</testng-release-version>
  131. <easymock-release-version>3.0</easymock-release-version>
  132. </properties>
  133. </project>