You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "daniel.green" <oc...@gmail.com> on 2009/05/25 01:08:42 UTC

Determining real GAV for java.servlet:servlet-api

I have one dependency left to determine the GAV for in a massive project
overhaul. The original GAV data was as follows:

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.0</version>  
    <scope>system</scope>
    <systemPath>
        ${basedir}/../configuration-sets/redacted/lib/jsp-api.jar
    </systemPath>
</dependency>

But I don't believe it. Here's the file: 
http://www.nabble.com/file/p23699126/servlet-api.jar servlet-api.jar 

The manifest is: 

Manifest-Version: 1.0
Specification-Title: JBoss
Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)
Ant-Version: Apache Ant 1.6.5
Implementation-Title: JBoss [Trinity]
Specification-Vendor: JBoss (http://www.jboss.org/)
Specification-Version: 4.2.2.GA
Implementation-Vendor-Id: http://www.jboss.org/
Implementation-Version: 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=20
 0710221139)
Implementation-Vendor: JBoss Inc.
Implementation-URL: http://www.jboss.org/

What GAV data should I be using? What repository would I find it in?
-- 
View this message in context: http://www.nabble.com/Determining-real-GAV-for-java.servlet%3Aservlet-api-tp23699126p23699126.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


Re: Re : Determining real GAV for java.servlet:servlet-api

Posted by Anders Hammar <an...@hammar.net>.
True. For this jar (servlet-api) it shouldn't really matter. However,
other jars (xml parsers for instance) that are involved in unit tests
it would matter.

/A

On Mon, May 25, 2009 at 09:35, Julien HENRY <he...@yahoo.fr> wrote:
> Correct me if I am wrong but I think servlet-api should be set to "provided" scope so it doesn't really matter if this is not exactly the same JAR as long as the interfaces are the same.
>
>
> Regards,
>
> Julien
>
>
> ________________________________
> De : Anders Hammar <an...@hammar.net>
> À : Maven Users List <us...@maven.apache.org>
> Envoyé le : Lundi, 25 Mai 2009, 8h28mn 17s
> Objet : Re: Determining real GAV for java.servlet:servlet-api
>
> Ok, so it the servlet api jar version for JBoss 4.2.2 you're looking
> for? I think that would be version "2.5-brew" in JBoss terms (not 2.4
> as I wrote in my last mail). It's outlined in JBoss' build script:
> http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_2_2_GA/build/build-thirdparty.xml
>
> You'll find it here:
> http://repository.jboss.org/sun-servlet/2.5-brew/
> (Still not a maven repo.)
>
> Yes, it's mess with JBoss jars...
>
> /Anders
>
> On Mon, May 25, 2009 at 08:17, daniel.green <oc...@gmail.com> wrote:
>>
>> Gah, I posted the wrong GAV data. The correct one has java-servlet as the
>> artifact id. The given does in fact work for jsp-api, just not for
>> java-servlet.
>>
>>
>> Wayne Fay wrote:
>>>
>>>>    <groupId>javax.servlet</groupId>
>>>>    <artifactId>jsp-api</artifactId>
>>>>    <version>2.0</version>
>>>
>>> Any reason this won't work?
>>>   <groupId>javax.servlet</groupId>
>>>   <artifactId>jsp-api</artifactId>
>>>   <version>2.0</version>
>>>
>>> Taken from:
>>> http://repo1.maven.org/maven2/javax/servlet/jsp-api/2.0/jsp-api-2.0.pom
>>>
>>> Wayne
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/Determining-real-GAV-for-java.servlet%3Aservlet-api-tp23699126p23701698.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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re : Determining real GAV for java.servlet:servlet-api

Posted by Julien HENRY <he...@yahoo.fr>.
Correct me if I am wrong but I think servlet-api should be set to "provided" scope so it doesn't really matter if this is not exactly the same JAR as long as the interfaces are the same.


Regards,

Julien


________________________________
De : Anders Hammar <an...@hammar.net>
À : Maven Users List <us...@maven.apache.org>
Envoyé le : Lundi, 25 Mai 2009, 8h28mn 17s
Objet : Re: Determining real GAV for java.servlet:servlet-api

Ok, so it the servlet api jar version for JBoss 4.2.2 you're looking
for? I think that would be version "2.5-brew" in JBoss terms (not 2.4
as I wrote in my last mail). It's outlined in JBoss' build script:
http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_2_2_GA/build/build-thirdparty.xml

You'll find it here:
http://repository.jboss.org/sun-servlet/2.5-brew/
(Still not a maven repo.)

Yes, it's mess with JBoss jars...

/Anders

On Mon, May 25, 2009 at 08:17, daniel.green <oc...@gmail.com> wrote:
>
> Gah, I posted the wrong GAV data. The correct one has java-servlet as the
> artifact id. The given does in fact work for jsp-api, just not for
> java-servlet.
>
>
> Wayne Fay wrote:
>>
>>>    <groupId>javax.servlet</groupId>
>>>    <artifactId>jsp-api</artifactId>
>>>    <version>2.0</version>
>>
>> Any reason this won't work?
>>   <groupId>javax.servlet</groupId>
>>   <artifactId>jsp-api</artifactId>
>>   <version>2.0</version>
>>
>> Taken from:
>> http://repo1.maven.org/maven2/javax/servlet/jsp-api/2.0/jsp-api-2.0.pom
>>
>> Wayne
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Determining-real-GAV-for-java.servlet%3Aservlet-api-tp23699126p23701698.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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


      

Re: Determining real GAV for java.servlet:servlet-api

Posted by Anders Hammar <an...@hammar.net>.
Ok, so it the servlet api jar version for JBoss 4.2.2 you're looking
for? I think that would be version "2.5-brew" in JBoss terms (not 2.4
as I wrote in my last mail). It's outlined in JBoss' build script:
http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_2_2_GA/build/build-thirdparty.xml

You'll find it here:
http://repository.jboss.org/sun-servlet/2.5-brew/
(Still not a maven repo.)

Yes, it's mess with JBoss jars...

/Anders

On Mon, May 25, 2009 at 08:17, daniel.green <oc...@gmail.com> wrote:
>
> Gah, I posted the wrong GAV data. The correct one has java-servlet as the
> artifact id. The given does in fact work for jsp-api, just not for
> java-servlet.
>
>
> Wayne Fay wrote:
>>
>>>    <groupId>javax.servlet</groupId>
>>>    <artifactId>jsp-api</artifactId>
>>>    <version>2.0</version>
>>
>> Any reason this won't work?
>>   <groupId>javax.servlet</groupId>
>>   <artifactId>jsp-api</artifactId>
>>   <version>2.0</version>
>>
>> Taken from:
>> http://repo1.maven.org/maven2/javax/servlet/jsp-api/2.0/jsp-api-2.0.pom
>>
>> Wayne
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Determining-real-GAV-for-java.servlet%3Aservlet-api-tp23699126p23701698.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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Determining real GAV for java.servlet:servlet-api

Posted by "daniel.green" <oc...@gmail.com>.
Gah, I posted the wrong GAV data. The correct one has java-servlet as the
artifact id. The given does in fact work for jsp-api, just not for
java-servlet.


Wayne Fay wrote:
> 
>>    <groupId>javax.servlet</groupId>
>>    <artifactId>jsp-api</artifactId>
>>    <version>2.0</version>
> 
> Any reason this won't work?
>   <groupId>javax.servlet</groupId>
>   <artifactId>jsp-api</artifactId>
>   <version>2.0</version>
> 
> Taken from:
> http://repo1.maven.org/maven2/javax/servlet/jsp-api/2.0/jsp-api-2.0.pom
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Determining-real-GAV-for-java.servlet%3Aservlet-api-tp23699126p23701698.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


Re: Determining real GAV for java.servlet:servlet-api

Posted by Wayne Fay <wa...@gmail.com>.
>    <groupId>javax.servlet</groupId>
>    <artifactId>jsp-api</artifactId>
>    <version>2.0</version>

Any reason this won't work?
  <groupId>javax.servlet</groupId>
  <artifactId>jsp-api</artifactId>
  <version>2.0</version>

Taken from:
http://repo1.maven.org/maven2/javax/servlet/jsp-api/2.0/jsp-api-2.0.pom

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Determining real GAV for java.servlet:servlet-api

Posted by Anders Hammar <an...@hammar.net>.
Hi,

Are you using JBoss AS? One of the problems regarding JBoss and Maven
is that they most often do not use the jar files as released by the
projects. Based on the manifest you quote, it would imply that it was
implemented by JBoss. I seriously doubt that. Most likely, the jar you
have is based on this one:
http://repository.jboss.org/sun-servlet/2.4/
That's not a maven2 repo, but it's the repo that JBoss uses when
building this AS. If you look at the component-info.xml file, you can
often figure out where the original file is from. If there are patches
that they (JBoss) include, that is often outlined.

So, the basic question is: do you want to use the very same artifact
(jar library) for your build as you want to use in runtime? If yes,
and you're using JBoss AS, you need to set up your own repo with the
artifacts taken from the AS. That's what we do for JBoss.

/Anders

On Mon, May 25, 2009 at 01:08, daniel.green <oc...@gmail.com> wrote:
>
> I have one dependency left to determine the GAV for in a massive project
> overhaul. The original GAV data was as follows:
>
> <dependency>
>    <groupId>javax.servlet</groupId>
>    <artifactId>jsp-api</artifactId>
>    <version>2.0</version>
>    <scope>system</scope>
>    <systemPath>
>        ${basedir}/../configuration-sets/redacted/lib/jsp-api.jar
>    </systemPath>
> </dependency>
>
> But I don't believe it. Here's the file:
> http://www.nabble.com/file/p23699126/servlet-api.jar servlet-api.jar
>
> The manifest is:
>
> Manifest-Version: 1.0
> Specification-Title: JBoss
> Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)
> Ant-Version: Apache Ant 1.6.5
> Implementation-Title: JBoss [Trinity]
> Specification-Vendor: JBoss (http://www.jboss.org/)
> Specification-Version: 4.2.2.GA
> Implementation-Vendor-Id: http://www.jboss.org/
> Implementation-Version: 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=20
>  0710221139)
> Implementation-Vendor: JBoss Inc.
> Implementation-URL: http://www.jboss.org/
>
> What GAV data should I be using? What repository would I find it in?
> --
> View this message in context: http://www.nabble.com/Determining-real-GAV-for-java.servlet%3Aservlet-api-tp23699126p23699126.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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org