How to exclude folder from mvn clean install

I have one folder which has information about some templates. But that is not required in builds, because only for infomration we are maintaing.
On top that mvn clean install is taking more time to get complete.

Can you tell me How to exclude this folder from mvn clean install.

.




 

You can exclude using resources like below:

<build>

      <resources>

            <resource>

                <directory>src/main/resources</directory>

                <excludes>

                    <exclude>xml_templates/*</exclude>

                </excludes>

            </resource>

      </resources>

 
Post a Reply
Captcha Image