开发者

Changed pom but didn't affect to module

开发者 https://www.devze.com 2023-04-04 17:50 出处:网络
I use Inte开发者_高级运维lliJ IDEA and running a Maven application. My application uses some other modules, projects. I changed version of one module\'s dependencies(I changed a hibernate dependency\'

I use Inte开发者_高级运维lliJ IDEA and running a Maven application. My application uses some other modules, projects. I changed version of one module's dependencies(I changed a hibernate dependency' artifact id from hibernate to hibernate-core and changed version too).

However when I see my dependency tree I still see the old library. What should I do. Should I clean, install or do something like that for that module(I tried install but couldn't passed tests, is skipping tests is a good idea and how can I do that?).

Any ideas?


You have to rebuild and install your module (the one with Hibernate dependency) at least to the local repository (mvn clean install), then update dependencies in other modules which use your module. In Eclipse it's called Update Depcendecies, I suppose IntelliJ IDEA has a similar feature.

If your module does not compile or test fails, fix them first or install it only to the local repository. Later you can delete them from your local repo.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号