Given the 401 changed in 403 ,it seems to me that the credentials are correct but you are still not allowed to access this artifact/repository. I would suggest to contact the nexus administrator
On Thu, Nov 14, 2013 at 11:18 PM, Russell Gold <[email protected]> wrote: > OK, that narrows things down. While it is possible to work with a repo > that requires credentials to download artifacts, doing so will require you > to supply credentials in your settings.xml. Is there some reason you want > to do this? I know coherence is commercial rather than open-source. Are > only certain individuals in your organization granted the right to use it? > > On Nov 14, 2013, at 4:56 PM, KARR, DAVID <[email protected]> wrote: > > >> -----Original Message----- > >> From: Russell Gold [mailto:[email protected]] > >> Sent: Thursday, November 14, 2013 1:44 PM > >> To: Maven Users List > >> Subject: Re: Access denied downloading artifact from nexus > >> > >> HI David. Try accessing > >> > http://nexusprohost.com:8084/nexus/content/groups/cditspoc/com/oracle/coheren > >> ce/coherence/12.1.2-0-0/coherence-12.1.2-0-0.pom via your browser. That > will > >> test if it is a maven problem or a nexus problem. > > > > Oh, yeah, I forgot to report those results. > > > > When I pasted it into my browser, it prompted for credentials and then > presented a blank page. That pom is not an empty file. > > > > I then tried the following command line on my laptop (not on the build > server): > > > > % wgetcat --user=myuid --password=mypassword > http://nexusprohost.com:8084/nexus/content/groups/cditspoc/com/oracle/coherence/coherence/12.1.2-0-0/coherence-12.1.2-0-0.pom > > --2013-11-14 09:47:21-- > http://nexusprohost.com:8084/nexus/content/groups/cditspoc/com/oracle/coherence/coherence/12.1.2-0-0/coherence-12.1.2-0-0.pom > > Resolving nexusprohost.com (nexusprohost.com)... <ipaddress> > > Connecting to nexusprohost.com (nexusprohost.com)|<ipaddress>|:8084... > connected. > > HTTP request sent, awaiting response... 401 Unauthorized > > Reusing existing connection to nexusprohost.com:8084. > > HTTP request sent, awaiting response... 403 Forbidden > > 2013-11-14 09:47:27 ERROR 403: Forbidden. > > ----------------- > > > >> On Nov 14, 2013, at 4:35 PM, KARR, DAVID <[email protected]> wrote: > >> > >>> (Sorry for the initial blank body. Not sure what happened there.) > >>> > >>> I'm having trouble downloading an artifact from a nexus pro repo in a > Maven > >> build on a build server. I don't know if this is a Maven problem, or a > Nexus > >> problem, although it's probably the former. > >>> > >>> I'm working on a Maven build with several peer modules in a flat > directory > >> structure. I had to manually install one artifact to my local repo that > >> isn't available on a public repo. It's a jar for "coherence", so I > don't > >> have to keep calling it "the artifact". > >>> > >>> I'm now working on integrating this with a Nexus Pro repo. I > installed the > >> artifact in the repo. I changed my "settings.xml" (actually doing this > in a > >> separately named file first and specifying that on the command line) to > add a > >> profile which references the new repository, along with a "server" > element > >> (not in the profile) containing my login credentials. I set that > profile on > >> the command line. > >>> > >>> This is an excerpt of my build log: > >>> ----------------------- > >>> 14-Nov-2013 09:50:30 [DEBUG] Using connector > WagonRepositoryConnector > >> with priority 0 for > >> http://nexusprohost.com:8084/nexus/content/groups/cditspoc as myuid > >>> 14-Nov-2013 09:50:30 Downloading: > >> > http://nexusprohost.com:8084/nexus/content/groups/cditspoc/com/oracle/coheren > >> ce/coherence/12.1.2-0-0/coherence-12.1.2-0-0.pom > >>> 14-Nov-2013 09:50:31 > >>> 14-Nov-2013 09:50:31 [DEBUG] Writing resolution tracking file > >> /volatile/maven/repository/com/oracle/coherence/coherence/12.1.2-0- > >> 0/coherence-12.1.2-0-0.pom.lastUpdated > >>> ..... > >>> Failed to read artifact descriptor for > >> com.oracle.coherence:coherence:jar:12.1.2-0-0: Could not transfer > artifact > >> com.oracle.coherence:coherence:pom:12.1.2-0-0 from/to myrepositoryid > >> (http://nexusprohost.com:8084/nexus/content/groups/cditspoc): Access > denied > >> to: > >> > http://nexusprohost.com:8084/nexus/content/groups/cditspoc/com/oracle/coheren > >> ce/coherence/12.1.2-0-0/coherence-12.1.2-0-0.pom, > ReasonPhrase:Forbidden. -> > >> [Help 1] > >>> ----------------------- > >>> > >>> I've deployed this artifact to that repo, with the following > coordinates: > >>> -------------------- > >>> <dependency> > >>> <groupId>com.oracle.coherence</groupId> > >>> <artifactId>coherence</artifactId> > >>> <version>12.1.2-0-0</version> > >>> <type>pom</type> > >>> </ > >>> -------------------- > >>> > >>> My settings.xml specifies the ".../cditspoc" repository, so that part > >> obviously works. I have a "server" element > >>> whose id matches the repository id, and it specifies the login > credentials > >> I use to log into the mavencentral site. > >>> > >>> What else could be wrong? > >>> > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [email protected] > >>> For additional commands, e-mail: [email protected] > >> > >> ----------------- > >> Author, Getting Started with Apache Maven < > http://www.packtpub.com/getting- > >> started-with-apache-maven/video> > >> > >> Come read my webnovel, Take a Lemon <http://www.takealemon.com>, > >> and listen to the Misfile radio play > >> <http://www.fuzzyfacetheater.com/misfile/>! > >> > >> > >> > >> > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > ----------------- > Author, Getting Started with Apache Maven < > http://www.packtpub.com/getting-started-with-apache-maven/video> > > Come read my webnovel, Take a Lemon <http://www.takealemon.com>, > and listen to the Misfile radio play < > http://www.fuzzyfacetheater.com/misfile/>! > > > > > > > > -- Adrien Rivard
