Maven pom.xml is marked with RED line, but Maven runs fine

Hi there,

The IntelliJ my Maven plugin config in pom.xml file as RED error with the following:

               <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.11</version>
                    <configuration>
                         <argLine>${env.MAVEN_OPTS}</argLine>
                    </configuration>
               </plugin>


The IntelliJ marks "env.MAVEN_OPTS" as error.

How can I get rid of this RED marking? The pom is working as we wanted, and it runs fine.

Thanks,
Zemian

2 comments

What is your OS? How do you set MAVEN_OPTS?

0

Hi,

Thanks for the reply. I am using Windows XP. We would use the MAVEN_OPTS value when running the project using Maven on command line, and usually set through the .profile (I am using cygwin). So our PC env has no MAVEN_OPTS defined, nor should the IDE have it defined. Our project works fine on its own, and in IntelliJ, and we don't need to run the full maven test suite inside the IDE, so I see no reason why IntelliJ needs to go on enforcing to users to define "${env.XXX}" value. I need this red error to stop highlighting.

Zemian.

0

Please sign in to leave a comment.