Hi,

I spent lot of time want to exclude some jsps for compilation, I tried
different configurations in pom.xml, but couldn't get it work
I am using jspc-maven-plugin for pre-compilation. I want to exclude
header.jsp during compilation. Here is my fragment of pom:
.....................

 <build>
     *<resources>
         <resource>
            <directory>${basedir}/src/main/webapp</directory>
            <excludes>
                 <exclude>include/header.jsp</exclude>    -----> header.jsp
is under include directory of src/main/webapp
            </excludes>
      </resource>
    </resources>*
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jspc-maven-plugin</artifactId>
        <executions>
           <execution>
               <id>jspc</id>
                  <goals>
                     <goal>compile</goal>
                  </goals>
           </execution>
         </executions>
         <configuration>
            <webXml>${basedir}/target/jspweb.xml</webXml>
            <injectString>&lt;!-- [INSERT FRAGMENT HERE]
--&gt;</injectString>

            *    <excludes>
                        <exclude>**/header.jsp</exclude>
                </excludes>*
        </configuration>
      </plugin>

....

But when I run 'mvn -e install', I still can see it try to compile
header.jsp, which is having compile error.

Could someone please help me.
Thanks a lot.
Maria

Reply via email to