How to ignore .java files when compiling using maven?

Ale*_*dru 4 java maven-2 compilation

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.

Col*_*ert 11

使用maven编译器插件和exclude选项:

  <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>
Run Code Online (Sandbox Code Playgroud)

资源: