Intellij maven dependency prefer local code

前端 未结 6 2326
野趣味
野趣味 2020-12-30 09:28

i\'m working on a project in which i have an android application project which has pom dependencies on other projects something like this:



        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-30 10:00

    You can add a module dependency in IntelliJ: File->Project Settings->Modules click on the module -> click Dependencies tab and then click the green '+' sign and choose '3. Module dependency'.. add the module on which you want to depend locally and click the blue arrows to bring the module above the Maven dependencies.

提交回复
热议问题