pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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.38</version>
  23. </dependency>
  24. <!-- This adds automatic compression of JavaScript and CSS when in production mode. -->
  25. <!-- This currently breaks the resin deployment
  26. (see https://github.com/TechEmpower/FrameworkBenchmarks/pull/1816#issuecomment-167749791)
  27. <dependency>
  28. <groupId>org.apache.tapestry</groupId>
  29. <artifactId>tapestry-webresources</artifactId>
  30. <version>${tapestry-release-version}</version>
  31. </dependency>
  32. -->
  33. <!-- Uncomment this to add support for file uploads:
  34. <dependency>
  35. <groupId>org.apache.tapestry</groupId>
  36. <artifactId>tapestry-upload</artifactId>
  37. <version>${tapestry-release-version}</version>
  38. </dependency>
  39. -->
  40. <!-- A dependency on either JUnit or TestNG is required, or the surefire plugin (which runs the tests)
  41. will fail, preventing Maven from packaging the WAR. Tapestry includes a large number
  42. of testing facilities designed for use with TestNG (http://testng.org/), so it's recommended. -->
  43. <dependency>
  44. <groupId>org.testng</groupId>
  45. <artifactId>testng</artifactId>
  46. <version>${testng-release-version}</version>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.easymock</groupId>
  51. <artifactId>easymock</artifactId>
  52. <version>${easymock-release-version}</version>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.tapestry</groupId>
  57. <artifactId>tapestry-test</artifactId>
  58. <version>${tapestry-release-version}</version>
  59. <scope>test</scope>
  60. </dependency>
  61. <!-- Provided by the servlet container, but sometimes referenced in the application
  62. code. -->
  63. <dependency>
  64. <groupId>javax.servlet</groupId>
  65. <artifactId>servlet-api</artifactId>
  66. <version>${servlet-api-release-version}</version>
  67. <scope>provided</scope>
  68. </dependency>
  69. <!-- Provide dependency to the Tapestry javadoc taglet which replaces the Maven component report -->
  70. <dependency>
  71. <groupId>org.apache.tapestry</groupId>
  72. <artifactId>tapestry-javadoc</artifactId>
  73. <version>${tapestry-release-version}</version>
  74. <scope>provided</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.fasterxml.jackson.core</groupId>
  78. <artifactId>jackson-databind</artifactId>
  79. <version>2.6.4</version>
  80. </dependency>
  81. </dependencies>
  82. <build>
  83. <finalName>tapestry</finalName>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-compiler-plugin</artifactId>
  88. <version>2.3.2</version>
  89. <configuration>
  90. <source>1.8</source>
  91. <target>1.8</target>
  92. <optimize>true</optimize>
  93. </configuration>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-surefire-plugin</artifactId>
  98. <version>2.7.2</version>
  99. <configuration>
  100. <systemPropertyVariables>
  101. <tapestry.execution-mode>Qa</tapestry.execution-mode>
  102. </systemPropertyVariables>
  103. </configuration>
  104. </plugin>
  105. <!-- Run the application using "mvn jetty:run" -->
  106. <plugin>
  107. <groupId>org.mortbay.jetty</groupId>
  108. <artifactId>jetty-maven-plugin</artifactId>
  109. <version>7.5.0.v20110901</version>
  110. <configuration>
  111. <systemProperties>
  112. <systemProperty>
  113. <name>tapestry.execution-mode</name>
  114. <value>development</value>
  115. </systemProperty>
  116. </systemProperties>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. <reporting/>
  122. <repositories>
  123. <repository>
  124. <id>maven-central</id>
  125. <url>https://repo1.maven.org/maven2</url>
  126. <snapshots>
  127. <enabled>false</enabled>
  128. </snapshots>
  129. </repository>
  130. <!-- This repository is only needed when the Tapestry version is a preview release, rather
  131. than a final release. -->
  132. <!-- <repository> -->
  133. <!-- <id>apache-staging</id> -->
  134. <!-- <url>https://repository.apache.org/content/groups/staging/</url> -->
  135. <!-- </repository> -->
  136. </repositories>
  137. <properties>
  138. <tapestry-release-version>5.4.3</tapestry-release-version>
  139. <servlet-api-release-version>2.5</servlet-api-release-version>
  140. <testng-release-version>5.14.10</testng-release-version>
  141. <easymock-release-version>3.0</easymock-release-version>
  142. </properties>
  143. </project>