2010-09-01 69 views

回答

10

使用Maven編譯器插件和排除選項:

<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> 

資源:

+0

您好,我試過這一信息。排除過濾器不能正常工作。建議plz什麼可能出錯 – user170114 2011-04-27 11:07:23

+0

請發佈您的POM – Nachtgold 2013-02-27 13:40:05

+0

f第一資源鏈接被破壞... – 2013-05-24 09:23:00