> 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/