Felix
Felix

Reputation: 4595

How to get rid of maven plugin configuration error in IntelliJ Idea

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.

Edited:

<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 Screenshot so it is clear what I mean:

enter image description here

Also the project module seems to have an error:

enter image description here

Upvotes: 1

Views: 1250

Answers (1)

Linuslabo
Linuslabo

Reputation: 1628

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

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.

Give a look at: Maven: How to configure native2ascii-maven-plugin

Upvotes: 1

Related Questions