I have .java files in my source directory that don't compile yet due to some API change. I would like to fix sources one by one and it would be useful to ignore some of them to run tests.
Asked
Active
Viewed 5,317 times
1 Answers
11
With the maven compiler plugin and the exclude option:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*Point*.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
Resources:

Joachim Sauer
- 302,674
- 57
- 556
- 614

Colin Hebert
- 91,525
- 15
- 160
- 151
-
hi, i tried this.The exclude filter is not working.Suggest plz what could have gone wrong – user170114 Apr 27 '11 at 11:07
-
In fairness this answer is now three years old, a lot of things happened since. – Colin Hebert May 24 '13 at 09:26