Hello,

I started a new little web application for in-house use (I will be using
basically the Spring Framework.) Below you will find the pom.xml for the
app (code-named proteus.)

Management decided some time ago to use Ubuntu Server 6.06 for the
production servers, and Ubuntu has "native" Tomcat 5.0.30 packages which
run rather nice. According to the documentation, Tomcat 5.0.30 implements
the Servlet 2.4 and JavaServer Pages 2.0 specifications, which is OK with
me. I'd like to create the web application so that it will strictly
conform to those version numbers (see pom.xml.)

The problem that I'm having is that Spring requires (and uses)
servlet-api-2.3, and when building the application package it will bundle
it. So my question is this: how can I instruct Spring to use the
servlet-api-2.4 dependency, which is the one I'm using?

Best regards,
Amit.

This is what pom.xml has:

<?xml version="1.0" encoding="UTF-8" ?>

<project              xmlns="http://maven.apache.org/POM/4.0.0";
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 <modelVersion>4.0.0</modelVersion>
 <groupId>com.example.application</groupId>
 <artifactId>proteus</artifactId>
 <packaging>war</packaging>
 <version>20070505</version>
 <name>proteus</name>

 <dependencies>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>4.3</version>
     <scope>test</scope>
   </dependency>

   <dependency>
     <groupId>javax.servlet</groupId>
     <artifactId>jstl</artifactId>
     <version>1.1.2</version>
   </dependency>

   <dependency>
     <groupId>javax.servlet</groupId>
     <artifactId>servlet-api</artifactId>
     <version>2.4</version>
     <scope>provided</scope>
   </dependency>

   <dependency>
     <groupId>javax.servlet.jsp</groupId>
     <artifactId>jsp-api</artifactId>
     <version>2.0</version>
     <scope>provided</scope>
   </dependency>

   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring</artifactId>
     <version>2.0.4</version>
   </dependency>
 </dependencies>

 <build>
   <finalName>proteus</finalName>

   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-compiler-plugin</artifactId>
       <configuration>
         <debug>true</debug>
         <encoding>UTF-8</encoding>
         <optimize>false</optimize>
         <source>1.5</source>
         <target>1.5</target>
       </configuration>
     </plugin>

     <plugin>
       <groupId>org.mortbay.jetty</groupId>
       <artifactId>maven-jetty-plugin</artifactId>
       <version>6.1.3</version>
       <configuration>
         <contextPath>/</contextPath>
         <connectors>
           <connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
             <port>58082</port>
             <maxIdleTime>60000</maxIdleTime>
           </connector>
         </connectors>
         <scanIntervalSeconds>5</scanIntervalSeconds>
       </configuration>
     </plugin>
   </plugins>
 </build>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to