如何摆脱IntelliJ Idea中的maven插件配置错误 [英] How to get rid of maven plugin configuration error in IntelliJ Idea

查看:863
本文介绍了如何摆脱IntelliJ Idea中的maven插件配置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的< src /> < dest /> IntelliJ Idea 。是否可以修复 pom.xml 解析错误?

I have this red color for <src /> and <dest /> in IntelliJ Idea. Is it possible to fix the pom.xml parsing error?

预先设置的方法是不禁用检查。

Prefferred way is to not disable the checks.

已编辑:

<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屏幕截图所以很清楚我的意思:

IntelliJ Idea Screenshot so it is clear what I mean:

项目模块似乎也有错误:

Also the project module seems to have an error:

推荐答案

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

IntelliJ highliths as red not valid elements (based on plugin XSDs).

对native2ascii-maven-plugin的 src dest 标记的支持各不相同在版本中。 (1.0-beta-1和1.0-alpha-1 atm)。

Support of src and dest tags for native2ascii-maven-plugin varies among versions. (1.0-beta-1 and 1.0-alpha-1 atm).

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

Check the docs of your precise version.

给看看: Maven的:如何配置的native2ascii - Maven的插件

这篇关于如何摆脱IntelliJ Idea中的maven插件配置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆