What does purge-local-repository actually purge?

前端 未结 3 2247
栀梦
栀梦 2021-02-19 19:02

I am running the following command from within a maven project directory:

mvn dependency:purge-local-repository

What is the expected behavior?<

3条回答
  •  眼角桃花
    2021-02-19 19:25

    Using same purge but in details, If project A and project B (Jar) build on local and Project A depends on B (which is in local Repo) can be resolved like

    mvn dependency:purge-local-repository -Dinclude=com.xxxx.projectB:projectB

    and add the dependency in Project A will resolve the issue.

    
                    com.xxxx.projectB
                    projectB
                    ${project.version}
                
    

    Hope this helps,

提交回复
热议问题