users@glassfish.java.net

Re: Question on included JEE versions and packaging apps with Maven

From: Craig Ringer <craig_at_postnewspapers.com.au>
Date: Mon, 23 Aug 2010 23:45:05 +0800

> All you should *really* have to do is declare a provided scope
> dependency on the Java EE 6 APIs:
>
> <dependency>
> <groupId>javax</groupId>
> <artifactId>javaee-web-api</artifactId>
> <version>6.0</version>
> <scope>provided</scope>
> </dependency>

Whoops... I should've referred to the full Java EE 6 APIs:

<dependency>
   <groupId>javax</groupId>
   <artifactId>javaee-web-api</artifactId>
   <version>6.0</version>
   <scope>provided</scope>
</dependency>

as the dependency above covers only the Java EE 6 web profile. Sorry,
that's all I was using in my project.

You can always depend on individual parts of the Java EE 6 API directly
instead of exposing the whole thing, but it doesn't really cost you
anything to pull in the full API.

-- 
Craig Ringer
Tech-related writing at http://soapyfrogs.blogspot.com/