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 16:32:03 +0100

Hi Harsha,

On Wed, Nov 05, 2008 at 08:05:55AM -0800, Harsha Godugu wrote:
> Jakub Podlesak wrote:
>
> >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
> >
> >
> The above bug's log shows that, its using
> .... ...
>
> <url>http://download.dev.java.net/maven/glassfish/</url>
> </pluginRepository>
>
> which should be http://download.java.net/maven/glassfish

I have fixed this, ...same output. (Please also look at the bug report,
which clearly states the artifact was sucessfully downloaded):

Downloading: http://download.dev.java.net/maven/glassfish/org/glassfish/build/maven-glassfish-plugin/3.0-Prelude-b28b/maven-glassfish-plugin-3.0-Prelude-b28b.pom
428b downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'dee2298248fd5fc75a19bbad5871fb45f98def79'; remote = '<!DOCTYPE' - RETRYING
Downloading: http://download.dev.java.net/maven/glassfish/org/glassfish/build/maven-glassfish-plugin/3.0-Prelude-b28b/maven-glassfish-plugin-3.0-Prelude-b28b.pom
428b downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'dee2298248fd5fc75a19bbad5871fb45f98def79'; remote = '<!DOCTYPE' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR

To me it seems, the artifact is not deployed correctly at the maven repository,
and it needs to be fixed.

>
> Let us consider bug #6710 for 2 issues. One is for the above, which is not
> a bug. (Please give right url and see if the problem is gone.) and the

As wrote above, the problem still exists.

> second one is, for gf:run to work. I don't have an answer to why gf:run
> wouldn't work.

Have you (or anybody else) tested with your app, and does it (mvn gf:run) work?
For me it says:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'gf'.
[WARNING] Cannot resolve plugin-mapping metadata for groupId: org.apache.maven.plugins - IGNORING.
[WARNING] Cannot resolve plugin-mapping metadata for groupId: org.codehaus.mojo - IGNORING.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.glassfish.build:maven-glassfish-plugin
POM Location: /export/home/japod/.m2/repository/org/glassfish/build/maven-glassfish-plugin/3.0-Prelude-b28b/maven-glassfish-plugin-3.0-Prelude-b28b.pom

Reason: Not a v4.0.0 POM. for project org.glassfish.build:maven-glassfish-plugin at /export/home/japod/.m2/repository/org/glassfish/build/maven-glassfish-plugin/3.0-Prelude-b28b/maven-glassfish-plugin-3.0-Prelude-b28b.pom


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Nov 05 16:30:11 CET 2008
[INFO] Final Memory: 1M/65M
[INFO] ---------------------------------------

~Jakub


P.S. Just in case you are curious:
Maven version: 2.0.9
Java version: 1.5.0_13-rev
OS name: "sunos" version: "5.11" arch: "x86" Family: "unix"


>
> thanks,
> Harsha
>
> >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