There's a chapter on this in the Nexus book [1]. /Anders
[1] http://www.sonatype.com/books/nexus-book/reference/ch04.html On Mon, Aug 15, 2011 at 11:22, samwun <[email protected]> wrote: > Hi, > > Thank you very much for all the comment and suggestion. > > Can you tell me how to change my maven settings.xml file so that maven > client (pom.xml) also look for a remote repository? > > Here is my current settings.xml file: > > > <?xml version="1.0" encoding="UTF-8"?> > > <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 > http://maven.apache.org/xsd/settings-1.0.0.xsd"> > > <localRepository>C:\maven\repository</localRepository> > > <servers> > > <server> > <id>thirdparty</id> > <username>admin</username> > <password>admin123</password> > </server> > > </servers> > > <profiles> > <profile> > <id>ehpNexus</id> > <activation> > <activeByDefault>true</activeByDefault> > </activation> > > <repositories> > <repository> > <id>thirdparty</id> > > <url>http://localhost:8081/nexus/content/repositories/thirdparty</url> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>central</id> > > <url>http://localhost:8081/nexus/content/groups/public/</url> > <snapshots> > <enabled>false</enabled> > </snapshots> > </pluginRepository> > <pluginRepository> > <id>snapshots</id> > > <url>http://localhost:8081/nexus/content/groups/public-snapshots/</url> > <releases> > <enabled>false</enabled> > </releases> > </pluginRepository> > > </pluginRepositories> > </profile> > </profiles> > </settings> > > > Thanks > Sam > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Could-not-resolve-dependencie-tp4699638p4700387.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
