Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sometimes you want to filter out stuff in your war file that want to use for development and testing, but don't want to have included in your production environment. An example is deployment environment specific properties files that you want to have on your classpath (during dev/test), but not in your .war (so that an adminstator an  admin  can twiddle the properties without cracking open your .war).

...

  • now change your pom file to include the following directives in the <build> block:
Code Block
   <build>
    <finalName>findFiles</finalName>
    <plugins>
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-beta-1</version>
          <configuration>
              <warSourceExcludes>**/*.jsp</warSourceExcludes>
          </configuration>
      </plugin>
    </plugins>
  </build>

...