How do I exclude a properties file when deploy

Posted by Huy on Stack Overflow See other posts from Stack Overflow or by Huy
Published on 2010-05-05T15:47:34Z Indexed on 2010/05/05 17:38 UTC
Read the original article Hit count: 148

Filed under:
|
|

I want to include this file when running locally, but exclude it when deploy. I tried the following the doesn't seem to work.

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
     <version>2.3</version>
     <executions>
       <execution>
     <phase>package</phase>
     <goals>
       <goal>jar</goal>
     </goals>
     <configuration>
       <excludes>
         <exclude>filename.properties</exclude>
       </excludes>
     </configuration>
      </execution>
    </executions>
 </plugin>

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about jar