I mention that at the end of the above email... for some reason I'm having trouble proxing this one ZK repository that requires a username and password (which I've added in the nexus auth settings.) I think the error Nexus mentioned was "remote access not allowed" or something to that effect.
On Fri, May 8, 2015 at 3:03 PM, Ron Wheeler <[email protected]> wrote: > Why not have your repo proxy the extra ones so everyone's settings.xml > points to your repo and its is up to the repo manager to set up the > permitted repo. > > Ron > > > On 08/05/2015 2:39 PM, Rick R wrote: > >> I'm trying to figure out why Maven is choosing a 3rd party repo defined in >> my settings xml BEFORE trying to search in our internal Nexus repo. >> >> My settings xml has the following profile which is set as the active one. >> >> >> <profile> >> <id>ncs-main</id> >> >> <repositories> >> <repository> >> <id>ZK EE</id> >> <url>https://maven.zkoss.org/repo/zk/ee</url> >> </repository> >> >> <repository> >> <id>zk repository</id> >> <url>http://mavensync.zkoss.org/maven2</url> >> </repository> >> >> <repository> >> <id>nexus.repo.all</id> >> <url> >> http://dayrhencvp011.enterprisenet.org:8080/nexus/content/groups/public/ >> </url> >> <snapshots> >> <enabled>true</enabled> >> </snapshots> >> </repository> >> >> </repositories> >> >> </profile> >> >> My project's pom does not have any repositories specified. I tried messing >> with the order of the repositories above (flipping them around different >> ways) but it always seems to go after one of the ZK ones first: >> >> >> Downloading: >> >> http://dayrhencvp011.enterprisenet.org:8080/nexus/content/groups/public/com/ncs/ncs-data-domain/1.12-SNAPSHOT/maven-metadata.xml >> >> Downloading: >> >> http://mavensync.zkoss.org/maven2/com/ncs/ncs-data-domain/1.12-SNAPSHOT/maven-metadata.xml >> >> Downloading: >> >> https://maven.zkoss.org/repo/zk/ee/com/ncs/ncs-data-domain/1.12-SNAPSHOT/maven-metadata.xml >> >> Downloaded: >> >> http://dayrhencvp011.enterprisenet.org:8080/nexus/content/groups/public/com/ncs/ncs-data-domain/1.12-SNAPSHOT/maven-metadata.xml >> (769 B at 2.5 KB/sec) >> >> [WARNING] Could not transfer metadata >> com.ncs:ncs-data-domain:1.12-SNAPSHOT/maven-metadata.xml from/to ZK EE ( >> https://maven.zkoss.org/repo/zk/ee): Connection to >> https://maven.zkoss.org >> refused >> >> [WARNING] Failure to transfer >> com.ncs:ncs-data-domain:1.12-SNAPSHOT/maven-metadata.xml from >> https://maven.zkoss.org/repo/zk/ee was cached in the local repository, >> resolution will not be reattempted until the update interval of ZK EE has >> elapsed or updates are forced. Original error: Could not transfer metadata >> com.ncs:ncs-data-domain:1.12-SNAPSHOT/maven-metadata.xml from/to ZK EE ( >> https://maven.zkoss.org/repo/zk/ee): Connection to >> https://maven.zkoss.org >> refused >> >> Of course it found ncs-data-domain in the 3rd attempt above (form nexus) >> but why does it always try the maven ones first? >> >> Even when I switch the order around it's trying zk-ee FIRST. >> >> Very frustrating and can't find any documentation on it. >> >> >> (Note, if you're wondering why I didn't put this 3rd party repo in Nexus, >> I >> tried but it was complaining about unable to work with it.. forgot the >> exact error.. it has to be authenticated with a username and password and >> I >> tried adding that to nexus as well, but was having trouble so I left the >> definition in my settings.xml) >> >> > > -- > Ron Wheeler > President > Artifact Software Inc > email: [email protected] > skype: ronaldmwheeler > phone: 866-970-2435, ext 102 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Rick R
