如何摆脱IntelliJ Idea中的maven插件配置错误

时间:2016-04-12 12:53:43

标签: maven intellij-idea

我在 IntelliJ Idea 中为<src /><dest />设置了此红色。是否可以修复pom.xml解析错误?

优先考虑的方法是不禁用支票。

编辑:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>native2ascii-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>native2ascii-utf8-resources</id>
            <goals>
                <goal>native2ascii</goal>
            </goals>
            <configuration>
                <src>src/main/resources</src>
                <encoding>UTF8</encoding>
                <dest>target/classes</dest>
            </configuration>
        </execution>
    </executions>
</plugin>

IntelliJ Idea屏幕截图所以很清楚我的意思:

enter image description here

项目模块似乎也有错误:

enter image description here

1 个答案:

答案 0 :(得分:1)

IntelliJ highliths为红色无效元素(基于插件XSD)。

对native2ascii-maven-plugin的 src dest 标记的支持因版本而异。 (1.0-beta-1和1.0-alpha-1 atm)。

检查您的精确版本的文档。

看看:Maven: How to configure native2ascii-maven-plugin