0

I'm using Intellij IDEA as IDE on a spring boot multi-module maven project.

But it keeps editing each project's .iml file and adds scope="PROVIDED" to all Tomcat dependencies. So, in order to run the project, I have to edit out all scope="PROVIDED" from these lines. It's not difficult or too time consuming, just very annoying.

Is there a way prevent this from happening? I've considered creating a small script, but I really don't want to pollute the workspace with some home-brewed solution.

gtludwig
  • 5,411
  • 10
  • 64
  • 90
  • 2
    Could you show us your POM? Or at least these aspects of it: (a) the `` tag; (b) the 'Tomcat dependencies" to which you refer and (c) any Spring dependencies. – glytching Sep 06 '17 at 16:09
  • I think I got it... there was a `provided` entry for the `spring-boot-starter-tomcat` artifact. I'm running tests now to check that removing the scope declaration won't affect too much. Thanks! – gtludwig Sep 06 '17 at 16:13
  • I used the approach described in the answer for this question: https://stackoverflow.com/questions/42299263/make-a-maven-dependency-provided-based-on-active-spring-profile – gtludwig Sep 07 '17 at 08:48

0 Answers0