Home > OS >  How to make Intellj Idea write dependencies into POM files?
How to make Intellj Idea write dependencies into POM files?

Time:11-17

I use Project Structure - Libraries to install dependencies while coding, then Shift F10 for test runs, and it works fine. But when I use Maven - package to package the project, it won't work because of missing dependencies in POM files. What I'm doing now is to copy-paste every dependencies into POM file for the final packaging, and I'm wondering if there is a better way to do that, or maybe a better way to package a Springboot project into a jar file?

CodePudding user response:

I wonder if the Dependencies tool window is what you are asking for. This is a IntelliJ tool that let you search among dependencies and add a new dependency to the pom-file by clicking a button. It is available at View | Tool Windows | Dependencies. See this enter image description here

  • Related