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 08:15:05 +0200

Hi Ludo

2010/1/6 Ludovic Champenois <Ludovic.Champenois_at_sun.com>

> Richard Kolb wrote:
>
>>
>> Unfortunately Maven by default puts scope provided in the test classpath
>> which is the problem I hit.
>>
>> The bug comment says " wonder if the javaeee-api-6.0.jar is needed at
> all"...
> Can you confirm that?


Yes, I can confirm, but I don't think this is the way to go.

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.




> I attached a Maven doc section in the issue tracker.
>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=11388
>>
>> Only solution is this thread and the bug filed that will be
>> indexed by Google and Bing for people to find when searching for
>> the exception text :-)
>>
>> And hopefully in the manual as well,
>>
> Which one? and which url do you suggest?


This one : http://docs.sun.com/app/docs/doc/821-1208/gjldt?l=en&a=view,
section [Using the EJB 3.1 Embeddable API with Embedded Enterprise Server]

An example pom that does not use the plugin, but rather is suited to unit
testing would be nice




>
> maybe in a trouble shooting section.
>>
> Which one?
> The one you find by doing a google search on "troubling shooting
> glassfish"? :-)


Actually I have no idea.
Maybe Judy can help us here.


regards
Richard.