How to do remove a projects artifacts from the local maven repo?

后端 未结 3 525
终归单人心
终归单人心 2020-12-15 06:32

When running mvn install on a local multi module project it builds and install the projects artifacts into the local repo. mvn clean seems to clean

3条回答
  •  长情又很酷
    2020-12-15 06:59

    You can purge artifacts from your local repository, but why do you like to do this? Apart from that you can do that via maven-dependency-plugin:

    This will purge all project- and dependency artifacts

    mvn dependency:purge-local-repository -DreResolve=false
    

    This can be influenced by supplemental command line arguments (see the documentation) for further details.

提交回复
热议问题