maven project : wrong setting of the webapp web directory

When using maven, one can configure the maven-war-plugin to use a different web content root than the default src/main/webapp.

this is done using
maven-war-plugin 2.0.1 true webapp ]]>

and is necessary in some cases (especially when the project has to work with RAD/Eclipse WTP).

currently when importing such a pom in IDEA, the web facet is created but is incorrectly configured with the default src/main/webapp (and as a result the web.xml is not found either).

I'm still seeing this in 7925
Want to me to create a JIRA issue ? or are you already aware of it ?

2 comments
Comment actions Permalink

Hello Thibaut,

Yes, please file a JIRA issue. It's very unlikely that we'll be able to fix
it in 7.0.4, but it will most likely be addressed in Diana.

When using maven, one can configure the maven-war-plugin to use a
different web content root than the default src/main/webapp.

this is done using
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.1</version>
<inherited>true</inherited>
<configuration>
<webappDirectory>webapp</webappDirectory>
</configuration>
</plugin>
and is necessary in some cases (especially when the project has to
work with RAD/Eclipse WTP).

currently when importing such a pom in IDEA, the web facet is created
but is incorrectly configured with the default src/main/webapp (and as
a result the web.xml is not found either).

I'm still seeing this in 7925
Want to me to create a JIRA issue ? or are you already aware of it ?

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.