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

后端 未结 3 519
终归单人心
终归单人心 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:40

    Best is to implement a release strategy, i.e. as long as the artifacts under development appending the version with SNAPSHOT. Maven then automatically updates the artifacts in the local repository when you run install. Once you have completed the development you remove the SNAPSHOT and release the version (i.e. via deploy). If further development is required you could increase the version number and append it again with SNAPSHOT.

提交回复
热议问题