Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The Maven dependency plugin has a <a href="http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html" rel="noreferrer">purge-local-repository</a> goal that allows you to delete the dependencies for a given project from the local repository, if this is run say once a day on each project the snapshots will not accumulate.</p> <hr> <p>Alternatively there's a more scorched-earth approach you could take. As the problem is typically the timestamped snapshot artifacts, you could use the <a href="http://maven.apache.org/plugins/maven-antrun-plugin/" rel="noreferrer">maven-antrun-plugin</a> to delete all files that match the resource collection pattern.</p> <p>For example (note this might need some tweaking as I've done it from memory):</p> <pre><code>&lt;plugin&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;delete&gt; &lt;fileset dir="${settings.localRepository}"&gt; &lt;include name="**/*.jar"/&gt; &lt;exclude name="**/*.pom"/&gt; &lt;exclude name="**/*.war"/&gt; &lt;exclude name="**/*.ear"/&gt; &lt;exclude name="**/*.md5"/&gt; &lt;exclude name="**/*.sha"/&gt; &lt;!--any other extensions?...--&gt; &lt;!--match the timestamp pattern--&gt; &lt;containsregexp expression="[0-9]{8}.[0-9]{6}-[0-9]+"/&gt; &lt;/fileset&gt; &lt;/delete&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload