Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Maven integration

I imported a Maven project into IntelliJ, but it seems like it's ignoring the <configuration> specified for the surefire plugin

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.5</version>
            <configuration>
                <argLine>-Djava.endorsed.dirs=${settings.localRepository}/com/sun/metro/webservices-api/2.0.1
                </argLine>
                <excludes>
                    <exclude>**/CacheStoreTest.java</exclude>
                </excludes>
            </configuration>
        </plugin>

When I run the tests from within the IDE, it picks up the webservices-api.jar bundled with JDK6 instead of the version from my Maven repository and it also runs the tests in CacheStoreTest even though I've indicated they should be excluded.

like image 225
Dónal Avatar asked Nov 14 '22 02:11

Dónal


1 Answers

It's a known issue, please watch/vote.

like image 122
CrazyCoder Avatar answered Dec 16 '22 19:12

CrazyCoder