You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by xanadu72 <su...@gmail.com> on 2011/05/10 22:43:00 UTC
Re: Eclipse plugin WTP and servlet version
The jst.web version can be configured defining a dependency on Servlet-API
artifact :
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>servlet-api</artifactId>
<version>6.0.32</version>
</dependency>
If this example you will get
<faceted-project>
<fixed facet="jst.java"/>
<fixed facet="jst.web"/>
<installed facet="jst.web" version="6.0"/>
<installed facet="jst.java" version="1.4"/>
</faceted-project>
More details available at http://java-tutorial.ch/maven/eclipse-web-app
Maven Eclipse Webapp tutorial
Antonio Parolini wrote:
>
> Hello,
>
> We are using tomcat 4.1.31 under Eclipse and WTP. The problem is that the
> eclipse plugin only genereate a WTP config file with the 2.4 servlet
> version value. Our Tomcat version is using servlet 2.3, thus our
> workaround is to change this by hand afterward after the eclipse:eclipse
> maven call.
>
> If we dont change this value, the only probleme is that we cannot add the
> webapp to a server. The is no big deal with this, i agree. It is just a
> bit enoying though.
>
> Is there a way to force the jst.web to 2.3 instead of 2.4 ? ( It seems
> hardcoded in the pluging to me..)
>
> <faceted-project>
> <fixed facet="jst.java"/>
> <fixed facet="jst.web"/>
> <installed facet="jst.web" version="2.4"/>
> <installed facet="jst.java" version="1.4"/>
> </faceted-project>
>
> Thanks in advance.
>
> Antonio Parolini
>
--
View this message in context: http://maven.40175.n5.nabble.com/Eclipse-plugin-WTP-and-servlet-version-tp68775p4385608.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org