dev@glassfish.java.net

Re: Any fix for this build error?

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Thu, 07 Aug 2008 01:44:23 -0700

Thanks Mike, but not much luck with that profile settings either.
Now it fails at another point (pls see below).
As I has mentioned earlier v3/web/mvn -U install succeeds, but the same
thing has failed below during .../v3/mvn -U install. That seems very
strange.
Anyone has any explanation to this?

1. Incidentally /mvn install /seems to work sometimes. Not sure what I
would be missing, but just now I got a working build by excluding -U.
/2. Also if I were to have successful mvn installs in each subdirectory
under v3/, what else, if anything, would I need to simulate the umbrella
mvn -U install?
/Comments on above two points?

Thanks
Nandini

[INFO]
----------------------------------------------------------------------------
[INFO] Building Web Container glue code
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
<snip/>
[INFO] [hk2:hk2-compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Error transferring file
  org.glassfish:javax.persistence: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),
  java.net (http://download.java.net/maven/1),
  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.web:web-glue:hk2-jar:10.0-SNAPSHOT
        2) org.glassfish:javax.javaee:jar:10.0-SNAPSHOT
        3) org.glassfish:javax.persistence:jar:10.0-SNAPSHOT

Caused by I/O exception: Connection timed out: connect


Tang Yong wrote:
> Hi Nandini,
>
> Basiclly, this is maven setting's problem.
>
> Please refer to http://forums.java.net/jive/thread.jspa?messageID=292071
>
> Hopelly the post may be helpful.
>
> --- Mike.Tang
>
>
>> 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
>>
>>
>>
>>