[JBoss.org] servlet-api question

July 20, 2011

Dear *,

Yesterday someone asked me how to include  javax.servlet-3.0.jar in his JBoss AS 7 Project in using Maven.

My answer was to go to the JBoss community repository web interface – see URL below –
and search for the “servlet-api” then insert in his project’s pom.xml the follwoing content under the <dependencies></dependencies> stanzas :

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>3.0</version>

<scope>provided</scope>

</dependency>

Rem : https://repository.jboss.org/nexus/index.html

BR

Frederic😉

2 Responses to “[JBoss.org] servlet-api question”

  1. Phil said

    You’d probably want 3.0 instead of 2.5 (that’s what was asked in the introduction), and you probably want the scope to be set to ‘provided’ – otherwise you’ll get a nice warning message from your app server – assuming this is for a webapp, obviously.

    Cheers,

    Phil

    • Frederic Hornain said

      Hi Phil,

      You are absolutely right.
      Sorry for that,
      Indeed I mentioned 2.5 because I am using it instead of 3.0 which is in Alpha.

      Thanks for your relevant comments.

      BR
      Frederic😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: