dev@glassfish.java.net

Re: Need help with AIX and Maven.

From: Jane Young <jane.young_at_oracle.com>
Date: Fri, 17 Jun 2011 02:50:17 -0700

On 6/16/11 9:48 PM, Sreekanth wrote:
> Hi,
>
> I am trying to run CDI tests on AIX environment.Does any one know if
> Maven works on AIX?
Maven works on AIX.
> Is there any separate Maven installation bundle I have to use?I tried
> using the same maven bundle I use for Linux, but when I try to run the
> tests, it's not able to download the needed artifacts.Please help
The build is complaining about not able to download the parent pom
(org.jboss.weld:weld-parent:pom:17) from jboss-snapshots-repository
(http://repository.jboss.org/nexus/content/groups/public-jboss/): Error
transferring file: A remote host did not respond within the timeout period.

If you view the artifact via browser, it's there
(https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/weld/weld-parent/17/).
However, http is changed to https...

Are you building from inside Oracle network? If yes, then you'll need
to set proxy for https protocol on the command line. (e.g. mvn
-Dhttps.proxyHost=<host> -Dhttps.proxyPort=<port> install)


> I see this output:(the same works fine with Ubuntu/RHEL)
>
> -bash-3.2$ mvn clean compile -P glassfish-remote -X
> Apache Maven 3.0 (r1004208; 2010-10-04 04:50:56-0700)
> Java version: 1.6.0
> Java home: /usr/java6_64/jre
> Default locale: en_US, platform encoding: ISO8859-1
> OS name: "aix" version: "6.1" arch: "ppc64" Family: "unix"
> [INFO] Error stacktraces are turned on.
> [DEBUG] Reading user settings from /export/hudson/.m2/settings.xml
> [DEBUG] Reading global settings from
> /export/hudson/apache-maven-3.0/conf/settings.xml
> [DEBUG] Using local repository at /export/hudson/MavenRepo
> [INFO] Scanning for projects...
> [DEBUG] Using connector WagonRepositoryConnector with priority 0 for
> http://download.java.net/maven/2/
> Downloading:
> http://download.java.net/maven/2/org/jboss/weld/weld-parent/17/weld-parent-17.pom
> [DEBUG] Reading resolution tracking file
> /export/hudson/MavenRepo/org/jboss/weld/weld-parent/17/weld-parent-17.pom.lastUpdated
> [DEBUG] Writing resolution tracking file
> /export/hudson/MavenRepo/org/jboss/weld/weld-parent/17/weld-parent-17.pom.lastUpdated
> [DEBUG] Using connector WagonRepositoryConnector with priority 0 for
> http://repository.jboss.org/nexus/content/groups/public-jboss/
> Downloading:
> http://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/weld/weld-parent/17/weld-parent-17.pom
> [DEBUG] Reading resolution tracking file
> /export/hudson/MavenRepo/org/jboss/weld/weld-parent/17/weld-parent-17.pom.lastUpdated
> [DEBUG] Writing resolution tracking file
> /export/hudson/MavenRepo/org/jboss/weld/weld-parent/17/weld-parent-17.pom.lastUpdated
> [DEBUG] Using connector WagonRepositoryConnector with priority 0 for
> http://repository.jboss.org/nexus/content/groups/public
> Downloading:
> http://repository.jboss.org/nexus/content/groups/public/org/jboss/weld/weld-parent/17/weld-parent-17.pom
> [DEBUG] Reading resolution tracking file
> /export/hudson/MavenRepo/org/jboss/weld/weld-parent/17/weld-parent-17.pom.lastUpdated
> [DEBUG] Writing resolution tracking file
> /export/hudson/MavenRepo/org/jboss/weld/weld-parent/17/weld-parent-17.pom.lastUpdated
> [DEBUG] Using connector WagonRepositoryConnector with priority 0 for
> http://repo1.maven.org/maven2
> Downloading:
> http://repo1.maven.org/maven2/org/jboss/weld/weld-parent/17/weld-parent-17.pom
> [DEBUG] Reading resolution tracking file
> /export/hudson/MavenRepo/org/jboss/weld/weld-parent/17/weld-parent-17.pom.lastUpdated
> [DEBUG] Writing resolution tracking file
> /export/hudson/MavenRepo/org/jboss/weld/weld-parent/17/weld-parent-17.pom.lastUpdated
> [ERROR] The build could not read 1 project -> [Help 1]
> org.apache.maven.project.ProjectBuildingException: Some problems were
> encountered while processing the POMs:
> [FATAL] Non-resolvable parent POM for
> org.jboss.weld:weld-core-bom:1.1.0-SNAPSHOT: Could not transfer
> artifact org.jboss.weld:weld-parent:pom:17 from
> jboss-snapshots-repository
> (http://repository.jboss.org/nexus/content/groups/public-jboss/):
> Error transferring file: A remote host did not respond within the
> timeout period. and 'parent.relativePath' points at wrong local POM @
> org.jboss.weld:weld-core-bom:1.1.0-SNAPSHOT,
> /export/hudson/CDI/core/bom/pom.xml, line 8, column 12
>
> at
> org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325)
> at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:607)
> at
> org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:556)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:228)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:611)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> [ERROR]
> [ERROR] The project
> org.jboss.weld:weld-core-test-arquillian:1.1.0-SNAPSHOT
> (/export/hudson/CDI/core/tests-arquillian/pom.xml) has 1 error
> [ERROR] Non-resolvable parent POM for
> org.jboss.weld:weld-core-bom:1.1.0-SNAPSHOT: Could not transfer
> artifact org.jboss.weld:weld-parent:pom:17 from
> jboss-snapshots-repository
> (http://repository.jboss.org/nexus/content/groups/public-jboss/):
> Error transferring file: A remote host did not respond within the
> timeout period. and 'parent.relativePath' points at wrong local POM @
> org.jboss.weld:weld-core-bom:1.1.0-SNAPSHOT,
> /export/hudson/CDI/core/bom/pom.xml, line 8, column 12 -> [Help 2]
> org.apache.maven.model.resolution.UnresolvableModelException: Could
> not transfer artifact org.jboss.weld:weld-parent:pom:17 from
> jboss-snapshots-repository
> (http://repository.jboss.org/nexus/content/groups/public-jboss/):
> Error transferring file: A remote host did not respond within the
> timeout period.
> at
> org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:183)
> at
> org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:819)
> at
> org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:670)
> at
> org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:308)
> at
> org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
> at
> org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:354)
> at
> org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:305)
> at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:607)
> at
> org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:556)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:228)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:611)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
> Could not transfer artifact org.jboss.weld:weld-parent:pom:17 from
> jboss-snapshots-repository
> (http://repository.jboss.org/nexus/content/groups/public-jboss/):
> Error transferring file: A remote host did not respond within the
> timeout period.
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488)
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:190)
> at
> org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:179)
> ... 21 more
> Caused by: org.sonatype.aether.transfer.ArtifactTransferException:
> Could not transfer artifact org.jboss.weld:weld-parent:pom:17 from
> jboss-snapshots-repository
> (http://repository.jboss.org/nexus/content/groups/public-jboss/):
> Error transferring file: A remote host did not respond within the
> timeout period.
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:858)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:849)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:602)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:596)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:355)
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:407)
> ... 23 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Error
> transferring file: A remote host did not respond within the timeout
> period.
> at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
> at
> org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
> at
> org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
> at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:511)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
> at java.lang.Thread.run(Thread.java:736)
> Caused by: java.net.ConnectException: A remote host did not respond
> within the timeout period.
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
> at java.net.Socket.connect(Socket.java:539)
> at java.net.Socket.connect(Socket.java:488)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:407)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:542)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:246)
> at sun.net.www.http.HttpClient.New(HttpClient.java:319)
> at sun.net.www.http.HttpClient.New(HttpClient.java:336)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:980)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:921)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:846)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1182)
> at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:390)
> at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
> ... 7 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> -bash-3.2$
>
> --
>
> Sreekanth Manga,
> Phone: +91 80 66937386 Mobile: +91 9035564557
> Sun, an Oracle Company
> Sun Microsystems, Divyashree Chambers,
> Langford Road, Shantinagar, Bangalore - 25.
>