quality@glassfish.java.net

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

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Wed, 6 Jan 2010 08:36:46 +0200

Hi Judy

Seems I solved the issue, yay.
Can someone please document this please.

regards
Richard


---------- Forwarded message ----------
From: <rjdkolb_at_dev.java.net>
Date: 2010/1/6
Subject: [Issue 11388] [other] [embedded] Unable to get basic unit test
working in Maven
To: rjdkolb_at_dev.java.net


https://glassfish.dev.java.net/issues/show_bug.cgi?id=11388






------- Additional comments from rjdkolb_at_dev.java.net Wed Jan 6 06:35:17
+0000 2010 -------
Problem solved!

What you need to do is have the embedded dep before the javaee-api-6 dep
      <dependency>
          <groupId>org.glassfish.extras</groupId>
          <artifactId>glassfish-embedded-all</artifactId>
          <version>3.0</version>
      </dependency>
        <dependency>
           <groupId>javax</groupId>
           <artifactId>javaee-api</artifactId>
           <version>6.0</version>
           <scope>provided</scope>
       </dependency>

Can someone document this please.