You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "julian.slonko" <ju...@gmail.com> on 2009/01/09 13:21:26 UTC

RE: Cleaning local repository

Hi,

For the sake of real clean build I had also a need to delete my project
branch from a local repository.
I used maven-clean-plugin:

    <plugins>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
          <inherited>false</inherited>
          <configuration>
            <filesets>
              <fileset>
               
<directory>${settings.localRepository}/my/project</directory>
                <includes>
                  <include>**/*</include>                 
                </includes>
                <!--excludes>
                  <exclude>**/important.log</exclude>
                  <exclude>**/another-important.log</exclude>
                </excludes-->
                <followSymlinks>false</followSymlinks>
              </fileset>
            </filesets>
          </configuration>
        </plugin>
    </plugins>

Plugin is configured in the main parent pom and to disable deleting local
repository when child moduls are built <inherited/> must be set to false.

I hope this helps you.
Regards
Julian Slonko
-- 
View this message in context: http://www.nabble.com/Cleaning-local-repository-tp21114004p21371271.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org