dev@glassfish.java.net

Re: Any fix for this build error?

From: Stephen Connolly <stephen.alan.connolly_at_gmail.com>
Date: Thu, 7 Aug 2008 09:04:14 +0100

When Maven goes looking for a file, it will create the local repo
information and store the metadata about what it found in that location.

It looks like it's looking for a file that is not deployed to any repo that
you have defined, so it tries them all.

The repo it finally gets "an answer" from is probably sending a HTML page
saying "the resource you are looking for does not exist but I'm giving you a
nice page telling you this rather than a HTTP error page"

That page looks enough like XML that it tries to parse it as a pom and
fails!

-Stephen

On Thu, Aug 7, 2008 at 8:51 AM, Nandini Ektare <Nandini.Ektare_at_sun.com>wrote:

> I keep getting this error on executing mvn -U install under v3.
> Initially it was intermittent and now it occurs all the time. I can't get a
> build to complete successfully.
>
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Admin Console Web Container Plugin
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [WARNING] POM for 'javax.faces:shale-remoting:pom:1.1.0-swdp-b:runtime' is
> invalid. It will be ignored for artifact resolution. Reason: Failed to
> validate POM for project javax.faces:shale-remoting at Artifact
> [javax.faces:shale-remoting:pom:1.1.0-swdp-b:runtime]
> Downloading:
> http://download.java.net/maven/glassfish/com/sun/faces/extensions/jsf-extensions-dynamic-faces/0.1/jsf-extensions-dynamic-faces-0.1.pom
> Downloading:
> http://maven.dyndns.org/glassfish//com/sun/faces/extensions/jsf-extensions-dynamic-faces/0.1/jsf-extensions-dynamic-faces-0.1.pom
> Downloading:
> https://maven-repository.dev.java.net/nonav/repository/com.sun.faces.extensions/poms/jsf-extensions-dynamic-faces-0.1.pom
> Downloading:
> http://repo1.maven.org/maven2/com/sun/faces/extensions/jsf-extensions-dynamic-faces/0.1/jsf-extensions-dynamic-faces-0.1.pom
> 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:
> https://maven2-repository.dev.java.net/nonav/repository/com/sun/faces/extensions/jsf-extensions-dynamic-faces/0.1/jsf-extensions-dynamic-faces-0.1.pom
> Downloading:
> http://repo1.maven.org/maven2/com/sun/faces/extensions/jsf-extensions-dynamic-faces/0.1/jsf-extensions-dynamic-faces-0.1.pom
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Error transferring file
> org.glassfish:javax.xml.stream:jar:10.0-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> maven2.java.net (http://download.java.net/maven/2),
> repo1.maven.org (http://repo1.maven.org/maven2),
> java-dev-repository (
> https://maven-repository.dev.java.net/nonav/repository),
> glassfish-repository (http://download.java.net/maven/glassfish),
> maven2.java.net-backup (
> https://maven2-repository.dev.java.net/nonav/repository),
> glassfish-repository-wsinterop (http://maven.dyndns.org/glassfish/)
>
> Path to dependency:
> 1) org.glassfish.admingui:console-web-plugin:hk2-jar:10.0-SNAPSHOT
> 2) org.glassfish.admingui:console-plugin-service:jar:10.0-SNAPSHOT
> 3) org.glassfish:javax.xml.stream:jar:10.0-SNAPSHOT
> Caused by I/O exception: Connection timed out: connect
>
>
> I have been able to build v3/admin;v3/admingui; successfully individually.
> It's the umbrella mvn install that fails.
>
> Any idea how to fix this?
> (C:\software\Maven2.0.7\maven-2.0.7\repo\org\glassfish\javax.xml.stream\10.0-SNAPSHOT
> directory gets created with its contents and yet the build fails saying it
> could not resolve that artifact)
>
> thanks,
> Nandini
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>