how to use Maven to manage dependency in Web Facet? (resolved)
hi,
when i make dependency change in pom.xml, e.g. add a new dependency, the dependency is not automatically added to the Web Facet and I have to go to Web Facet, Web Settings tab, Add, Add Library and manually choose the new library to add to the facet.
According to IDEADEV-23941, IDEA should support dependency scope, so it knows which dependency I'm intended to put into the web app lib. I wonder if it's my own configuration problem or IDEA won't automatically add lib to Web facet. My IDEA is 8.1.3. thx.
Please sign in to leave a comment.
If you reimport your project (maven tab, reimport button), it should work.
However if you're using unstandard layout (eg, your doc root is not /src/main/webapp) you'll have to re-correct those again
Thanks Thibaut, that's exactly the problem.
I am using Maven for a GAE project that I've used the "default" Intellij GAE structure that the web folder is not in the standard layout. It works like a champ when i've fixed that. :-)
I think i've drawn the conclusion that it works too quickly. indeed, it doesn't work.:-(
Hi, Ming,
Do you still have the problem?
Could you please attach a sample project?
Thanks,
Anton Makeev
i have checked that my pom.xml does not contains:
<packaging>war</packaging>
after added the above line, IDEA will update the Web Facet dependency from the pom.xml . :-)
notice that, the current org.codehaus.mojo:google-app-engine-maven-plugin doesn't include the WAR packaging line.
Thanks a lot for all of your help. If no one has told me it should work, I probably will just think the IDEA Maven dependency management support is broken.