dev@glassfish.java.net

Re: Error for maven dependencies when using GF embedded API

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 31 Oct 2008 10:54:54 +0100

On Oct 30, 2008, at 8:00 PM, Harsha Godugu wrote:

>
>
> ----- Original Message -----
> From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
> Date: Thursday, October 30, 2008 9:55 am
> Subject: Re: Error for maven dependencies when using GF embedded API
> To: dev_at_glassfish.dev.java.net
>
>
>> Hi Harsha,
>>
>> Thanks, that works. At the end of the email is the complete pom file.
>>
>> I also have this in the pom file:
>>
>> <plugin>
>> <groupId>org.glassfish</groupId>
>> <artifactId>maven-glassfish-plugin</artifactId>
>> </plugin>
>>

Hmmm... it looks like the above is now removed from the GF repo. I
have it locally. But it means that the GF embedded related Jersey 1.0
samples will no longer work for those that do not have the above :-(


>> so that i can do:
>>
>> mvn glassfish:run
>
> The above needs version (which version of maven-glassfish-plugin) to
> specified unless you've declared the pluginManagement section in
> your pom to declare versions of each plugin for your project.
>

What has happened to "mvn glassfish:run" support? Has it been removed?
Should i be using something else? Is it supported by following plugin
under a different name:

             <plugin>
                 <groupId>org.glassfish.build</groupId>
                 <artifactId>maven-glassfish-plugin</artifactId>
                 <version>3.0-Prelude-b28b</version>
                 <extensions>true</extensions>
             </plugin>

?


>>
>> is that correct?
>>
>> The logging output from GF when i run the unit tests using the GF API
>>
>> and do mvn glassfish:run are different so they may be referring to
>> different versions.
>>
>> Also i notice this occurs every time i execute maven:
>>
>> Downloading: http://download.java.net/maven/2//com/sun/faces/extensions/jsf-extensions-dynamic-faces/0.1/jsf-extensions-dynamic-faces-0.1.pom
>> Downloading: http://download.java.net/maven/1/com.sun.faces.extensions/poms/jsf-extensions-dynamic-faces-0.1.pom
>> Downloading:
>
>
> This is a BUG. We will fix this. For now, you can get away with
> this bug by specifying exclusions to woodstack dependency.

OK.

Thanks,
Paul.