无法执行 Maven 目标来构建 Tapestry 5。4.x 来自入门指南或使用 Maven 的示例源

Cannot execute Maven goal to build Tapestry 5.4.x from Getting started guide nor from the example source using Maven

我尝试在本地执行 Maven 目标来构建和 运行 Apache Tapestry 5。4.x 但它总是失败:

我尝试过的想法:

  1. IntelliJ 官方插件架构类型
  2. tapestry.org
  3. 开始
  4. 来自 GitHub 的酒店预订示例。

Maven/Java版本

tobia@FooDesktop MINGW64 ~/IdeaProjects
$ mvn --version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.0\bin\..
Java version: 1.8.0_191, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_191\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

错误

入门:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: org                                                                  .apache.maven.archetype.exception.ArchetypeGenerationFailure: Error merging velocity templates: Lexical error,   Encountered: "\ufffd" (65                                                                  533), after : "" at archetype-resources/src/main/webapp/mybootstrap/fonts/glyphicons-halflings-regular.eot[line 16, column 21] -> [Help 1]

示例:

[ERROR] /C:/Users/tobia/IdeaProjects/tapestry5-hotel-booking/src/main/java/com/tap5/hotelbooking/services/BasicAuthenticator.java:[87,13] try-with-resources is not supported in -source 1.5

有关更多信息,请参阅附加到此的 stracktraces:GitHub Gist

在我将这个问题发布到官方邮件列表之后。以下 Maven 命令有效:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate \
     -DarchetypeGroupId=org.apache.tapestry \
     -DarchetypeArtifactId=quickstart \
     -DarchetypeVersion=5.4.4 \
     -DarchetypeRepository=local