Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CAFAC100B2 for ; Fri, 6 Sep 2013 19:59:32 +0000 (UTC) Received: (qmail 24771 invoked by uid 500); 6 Sep 2013 19:59:30 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 24667 invoked by uid 500); 6 Sep 2013 19:59:30 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 24659 invoked by uid 99); 6 Sep 2013 19:59:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2013 19:59:29 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [24.37.79.202] (HELO smtp.artifact-software.com) (24.37.79.202) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2013 19:59:23 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.artifact-software.com (Postfix) with ESMTP id E33466A7B49 for ; Fri, 6 Sep 2013 15:58:59 -0400 (EDT) X-Virus-Scanned: amavisd-new at artifact-software.com Received: from smtp.artifact-software.com ([127.0.0.1]) by localhost (smtp.artifact-software.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yEDuwtUTpzrH for ; Fri, 6 Sep 2013 15:58:48 -0400 (EDT) Received: from [192.168.3.145] (modemcable033.79-19-135.mc.videotron.ca [135.19.79.33]) by smtp.artifact-software.com (Postfix) with ESMTP id 0C4B26A7B66 for ; Fri, 6 Sep 2013 15:58:48 -0400 (EDT) Message-ID: <522A33F7.8060302@artifact-software.com> Date: Fri, 06 Sep 2013 15:58:47 -0400 From: Ron Wheeler Reply-To: rwheeler@artifact-software.com Organization: Artifact Software User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: users@maven.apache.org Subject: Re: Failure to find artifact in Nexus References: <1B8FF9BB83FDCE44AB581D7E394AB90D2A2D66F2@USSTLDAGBE1.corp.amdocs.com> <52291BB9.7050205@yahoo.com> <1B8FF9BB83FDCE44AB581D7E394AB90D2A2D6765@USSTLDAGBE1.corp.amdocs.com> <5229348F.1090902@artifact-software.com> <1B8FF9BB83FDCE44AB581D7E394AB90D2A2D6C4F@USSTLDAGBE1.corp.amdocs.com> <1B8FF9BB83FDCE44AB581D7E394AB90D2A2D6C6D@USSTLDAGBE1.corp.amdocs.com> <1B8FF9BB83FDCE44AB581D7E394AB90D2A2D6C88@USSTLDAGBE1.corp.amdocs.com> In-Reply-To: <1B8FF9BB83FDCE44AB581D7E394AB90D2A2D6C88@USSTLDAGBE1.corp.amdocs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org What is in your settings.xml file? Do you have anything about repos in your POMs? Ron On 06/09/2013 2:09 PM, John Dix wrote: > + maven dev team.. > > -----Original Message----- > From: John Dix > Sent: Friday, September 06, 2013 11:08 AM > To: Maven Users List; rwheeler@artifact-software.com > Subject: RE: Failure to find artifact in Nexus > > Let me rephrase this. It is finding it in the repository we have it in (3rdparty), but when it gets to http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/releases, which is where the artifact ISN'T, maven says "Oops. I can't find it I give up" and craps out DESPITE the fact that it has already found it and downloaded the file. > > -----Original Message----- > From: John Dix > Sent: Friday, September 06, 2013 10:59 AM > To: Maven Users List; rwheeler@artifact-software.com > Subject: RE: Failure to find artifact in Nexus > > Yes it is. It downloads the file. I have verified it is in the .m2 repository on the drive where the build is located. When I execute a second time it bypasses the error. > > -----Original Message----- > From: Ron Wheeler [mailto:rwheeler@artifact-software.com] > Sent: Thursday, September 05, 2013 6:49 PM > To: users@maven.apache.org > Subject: Re: Failure to find artifact in Nexus > > > Is the artifact > > commons-httpclient:commons-httpclient:jar:3.1 > > in the http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/releases repo? > > That will split your problem in half. > > Ron > > On 05/09/2013 8:17 PM, John Dix wrote: >> Mark: We are going to our own Nexus repository: >> http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/releases >> >> -----Original Message----- >> From: Mark Eggers [mailto:its_toasted@yahoo.com] >> Sent: Thursday, September 05, 2013 5:03 PM >> To: Maven Users List >> Subject: Re: Failure to find artifact in Nexus >> >> On 9/5/2013 4:47 PM, John Dix wrote: >>> Hello everyone, >>> >>> I have hit a wall in trying to figure out why we're getting this failure: >>> >>> org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to >>> find commons-httpclient:commons-httpclient:jar:3.1 in >>> http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/release >>> s was cached in the local repository, resolution will not be >>> reattempted until the update interval of qpass-nexus-hosted-releases >>> has elapsed or updates are forced >>> >>> during our builds. On a clean .m2/repository directory(ran rm -rf ~/.m2/repository/*) and executing the following command: >>> >>> mvn -e -DskipTests clean install -f . This happens the first time and then after that it picks up the file. It happens on the SAME file everytime after a wiping of the .ms/repository directory. I have looked and visually verified that the jar file it is looking for is in the .m2 repo and is the correct version it is looking for. I have tried using the -U switch with the maven command to no avail. We are getting this on one more jar file after this one gets resolved but it behaves the same: rerun and it finds it. We do not encounter this on other products, just this one. >>> >>> Does anyone have any idea on how to move forward on this? I am at a loss. >>> >>> Regards! >>> -Caolan. >>> >>> Maven essentials: >>> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; >>> 2013-02-19 13:51:28+0000) Maven home: /usr/local/maven-3.0.5 Java >>> version: 1.7.0_02, vendor: Oracle Corporation Java home: >>> /usr/local/jdk1.7.0_02/jre Default locale: en_US, platform encoding: >>> UTF-8 OS name: "linux", version: "2.6.30.10-105.2.23.fc11.x86_64", >>> arch: "amd64", family: "unix" >>> >>> >>> Full Stack: >>> [ERROR] Failed to execute goal on project >>> applicationContextComponents: Could not resolve dependencies for >>> project >>> com.amdocs.dc.applicationcontext:applicationContextComponents:jar:1.0 >>> - >>> rc-4-SNAPSHOT: Failure to find >>> commons-httpclient:commons-httpclient:jar:3.1 in >>> http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/release >>> s was cached in the local repository, resolution will not be >>> reattempted until the update interval of qpass-nexus-hosted-releases >>> has elapsed or updates are forced -> [Help 1] >>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project applicationContextComponents: Could not resolve dependencies for project com.amdocs.dc.applicationcontext:applicationContextComponents:jar:1.0-rc-4-SNAPSHOT: Failure to find commons-httpclient:commons-httpclient:jar:3.1 in http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of qpass-nexus-hosted-releases has elapsed or updates are forced >>> at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) >>> at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) >>> at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) >>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) >>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) >>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) >>> at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) >>> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:601) >>> 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: >>> 3 >>> 52) Caused by: org.apache.maven.project.DependencyResolutionException: >>> Could not resolve dependencies for project com.amdocs.dc.applicationcontext:applicationContextComponents:jar:1.0-rc-4-SNAPSHOT: Failure to find commons-httpclient:commons-httpclient:jar:3.1 in http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of qpass-nexus-hosted-releases has elapsed or updates are forced >>> at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) >>> at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) >>> ... 22 more >>> Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Failure to find commons-httpclient:commons-httpclient:jar:3.1 in http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of qpass-nexus-hosted-releases has elapsed or updates are forced >>> at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) >>> at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) >>> ... 23 more >>> Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find commons-httpclient:commons-httpclient:jar:3.1 in http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of qpass-nexus-hosted-releases has elapsed or updates are forced >>> at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) >>> at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) >>> at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) >>> ... 24 more >>> Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find commons-httpclient:commons-httpclient:jar:3.1 in http://pd-repo2.eng.qpass.net:8081/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of qpass-nexus-hosted-releases has elapsed or updates are forced >>> at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) >>> at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:176) >>> at >>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def >>> a >>> ultArtifactResolver.java:427) >>> >>> John "Caolan" Dix >>> Programming Sr. SME, Digital Commerce Amdocs Digital Services >>> Division >>> o: 206-288-0334 m: 425.351.7340 >> Why is Maven looking in the "releases" repository on Nexus? >> >> I would expect it to be looking at either public (if you use the group), or the mirror of central. >> >> . . . just my naive two cents. >> /mde/ >> >> >> -- Ron Wheeler President Artifact Software Inc email: rwheeler@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org