quality@glassfish.java.net

Re: Fwd: [Issue 11388] [other] [embedded] Unable to get basic unit test working in Maven

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Thu, 7 Jan 2010 10:26:28 +0200

2010/1/7 Wouter van Reeven <wouter_at_van.reeven.nl>

> On Thu, Jan 07, 2010 at 08:15:05AM +0200, Richard Kolb wrote:
> > This dependency is added to Java-EE project in Netbeans.
> >
> > <dependency>
> > <groupId>javax</groupId>
> > <artifactId>javaee-api</artifactId>
> > <version>6.0</version>
> > <scope>provided</scope>
> > </dependency>
> >
> > So to tell the NetBeans guys that this should be removed to add in
> GlassFish
> > embedded, that's confusing.
>
> Well, as far as I can tell that dependency is only added when a Maven
> Web Application is created. If, and only if, you then deploy the app on
> GlassFish this will work. So you have a point that the javaee-api
> dependency should be removed in some cases.
>

But also what could happen is the EJB or WAR could be deployed to Apache
Tomcat, JBoss or any other Java-EE 6 container.

Having GlassFish embedded as a test, or provided dependency will work, but
do you really want to do that ?



I guess this should be discussed on either the
> user_at_mevenide.codehaus.org mailinglist or some NetBeans mailinglist.
>

I would like to start a similar discussion here, that would involve this.
Doing Test driven development with Java-EE6 and NetBeans.

regards
Richard