Skip to content

Instantly share code, notes, and snippets.

@rnetonet
Forked from mkutz/mvn-clean-recursive
Last active January 8, 2025 10:18
Show Gist options
  • Save rnetonet/fa41b224f34bfd0a0ede59567e097460 to your computer and use it in GitHub Desktop.
Save rnetonet/fa41b224f34bfd0a0ede59567e097460 to your computer and use it in GitHub Desktop.

Revisions

  1. rnetonet revised this gist Jan 8, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mvn-clean-recursive
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,4 @@
    # executes mvn clean for all sub directories containing a pom.xml
    #

    find . -name "pom.xml" -execdir mvn clean install -f {} \;
    find . -name "pom.xml" -exec mvn clean install package -U -f '{}' \;
  2. rnetonet revised this gist Jan 7, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mvn-clean-recursive
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,4 @@
    # executes mvn clean for all sub directories containing a pom.xml
    #

    find . -name "pom.xml" -exec mvn clean -f '{}' \;
    find . -name "pom.xml" -execdir mvn clean install -f {} \;
  3. rnetonet revised this gist Nov 19, 2024. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Get-ChildItem -Directory | ForEach-Object {
    Set-Location $_.FullName
    mvn dependency:purge-local-repository
    Set-Location ..
    }
  4. rnetonet revised this gist Nov 19, 2024. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions powershell
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Get-ChildItem -Directory | ForEach-Object {
    Set-Location $_.FullName
    mvn -U clean install
    Set-Location ..
    }
  5. @mkutz mkutz created this gist Apr 18, 2018.
    7 changes: 7 additions & 0 deletions mvn-clean-recursive
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/usr/bin/env bash

    #
    # executes mvn clean for all sub directories containing a pom.xml
    #

    find . -name "pom.xml" -exec mvn clean -f '{}' \;