【问题标题】:Error creating quickstar maven project IntelliJ创建 quickstar maven 项目 IntelliJ 时出错
【发布时间】:2018-11-13 10:43:52
【问题描述】:

当我尝试使用快速入门原型创建 Maven 项目时出现以下错误。我正在使用 IntelliJ 2018。

这是我要做的步骤:

Select archetype

Maven configuration

这是错误:

[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" (65533), after : "" at archetype-resources/src/main/webapp/mybootstrap/fonts/glyphicons-halflings-regular.eot[line 16, column 21] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] Maven execution terminated abnormally (exit code 1)

pomp.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>TestMaven</groupId>
    <artifactId>TestMaven</artifactId>
    <version>1.0-SNAPSHOT</version>


</project>

而且项目是空的,只有 pomp.xml 和 intellij 文件。

足够的声望添加图片。

【问题讨论】:

标签: maven intellij-idea tapestry


【解决方案1】:

这可能是与 maven-archetype-plugin:3.0.1 的现有兼容性问题。

好吧,要解决这个问题,您可以使用maven-archetype-plugin:2.4 而不是maven-archetype-plugin:3.0.1

而且我认为在这种情况下它们之间没有太大差异。

只需使用这个 maven 参数:

 -DarchetypeVersion=2.4 org.apache.maven.plugins:maven-archetype-plugin:2.4:generate

【讨论】:

    猜你喜欢
    • 2019-07-20
    • 1970-01-01
    • 2016-02-10
    • 1970-01-01
    • 1970-01-01
    • 2019-01-27
    • 1970-01-01
    • 2017-04-21
    相关资源
    最近更新 更多