dev@glassfish.java.net

Re: Error for maven dependencies when using GF embedded API

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Wed, 05 Nov 2008 09:22:36 +0100

Hi,

i have filed [1] to keep track on this.
Replaced Jersey from the test case, so
that the only thing to blame is the testcase
pom file (then please show how to fix it)
or the glassfish related maven artifact.

Thanks,

~Jakub

[1]https://glassfish.dev.java.net/issues/show_bug.cgi?id=6710

On Tue, Nov 04, 2008 at 10:33:43AM +0100, Paul Sandoz wrote:
> Hi,
>
> Any update on this? Is it a bug? Can it be resolved? Worked around?
>
> Thanks,
> Paul.
>
> On Oct 31, 2008, at 11:59 AM, Jakub Podlesak wrote:
>
> >
> >Hi all,
> >
> >Just to have a concrete example,
> >attaching a zip file with a simple Jersey based web app project.
> >(and a separate pom.xml for your convenience).
> >attaching also an output log for:
> >
> >mvn -e org.glassfish.build:maven-glassfish-plugin:run
> >
> >which gives me (more detailed log attached):
> >
> >[ERROR] BUILD ERROR
> >[INFO]
> >------------------------------------------------------------------------
> >[INFO] Either <distribution> or <distributions> is required
> >
> >As Vivek wrote, specifying the extension does not help.
> >
> >If there is something wrong in the pom, could please someone
> >send back a fixed version?
> >
> >Also maybe certain artifacts are still missing at the GlassFish maven
> >repository? I see only [3.0-Prelude-b28b] and [3.0-SNAPSHOT] versions
> >of the plugin (would expect something like [3.0-Prelude] or [3.0-
> >Prelude-b28c]?).
> >
> >Thanks,
> >
> >~Jakub
> >
> >PS. It seems glassfish:run has changed to gf:run, right?
> >
> >
> >On Fri, Oct 31, 2008 at 10:54:54AM +0100, Paul Sandoz wrote:
> >>
> >>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.
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> >>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
> >>
> >
> >--
> >http://blogs.sun.com/japod
> ><
> >test
> >.zip
> >>
> ><
> >pom
> >.xml
> >>
> ><
> >log
> >.txt
> >>---------------------------------------------------------------------
> >To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> >For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
http://blogs.sun.com/japod