Why is there so many maven plugins/code not recognised by IDEA?

A lot of code is red in the pom files but there is no problem running the goals... E.g code like this..:

<build>
        <defaultGoal>compile</defaultGoal>
        <directory>target</directory>
        <outputDirectory>target/classes</outputDirectory>      red
        <finalName>${artifactId}-${version}</finalName>
        <testOutputDirectory>target/test-classes</testOutputDirectory>      red
        <sourceDirectory>src/main/java</sourceDirectory>       red
        <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>      red
        <testSourceDirectory>src/test/java</testSourceDirectory>          red

......
</build>

Shows that much red code... Am I missing something or isn't the maven support in IDEA any good?


Regards,

BTJ

2 comments

It is probably red because you are redefining the default values to themselves and these entries are not needed.

0

No, that's not it... IDEA is complaining about "Can not resolve directory..." And nevertheless, IDEA should not show code as red just because I am redefining default values to themselves...

And also, IDEA does not recognise code like this as well..:

<plugin>
    <inherited>true</inherited>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>        red
.....

<plugin>
    <inherited>true</inherited>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-deploy-plugin</artifactId>          red



IDEA says " Plugin '<name>' not found..."

But IDEA finds some plugins,not sure what's the difference?


BTJ

0

Please sign in to leave a comment.