Hi David, The settings.xml looks correct to me.. What version of Archiva are you using? If you're using 1.1.x, one possible cause of this is http://jira.codehaus.org/browse/MRM-1136 / http://jira.codehaus.org/browse/MRM-1152
Thanks, Deng On Tue, Apr 14, 2009 at 9:36 PM, Davis Ford <davisf...@zenoconsulting.biz>wrote: > Hi I just setup Archiva. I defined the remote repository > > http://repository.sonatype.org/content/groups/public > > ...and I setup a proxy connector with snapshots=always to this repo. > > My project has a dependency on > > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <version>3.2-SNAPSHOT</version> > </plugin> > > If I do a search in the archiva webapp, it finds this artifact, and > says it exists in the Public Snapshots for archiva. > > I configured my settings.xml as follows below, but when I run mvn > commands on my projects, mvn cannot find flexmojos-maven-plugin: > > Downloading: > http://kafka:8080/archiva/repository/internal/org/sonatype/flexmojos/flexmojos-maven-plugin/3.2-SNAPSHOT/flexmojos-maven-plugin-3.2-20090403.030633-2.jar > [INFO] Unable to find resource > 'org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.2-SNAPSHOT' > in repository snapshots > (http://kafka:8080/archiva/repository/snapshots/) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Plugin could not be found - check that the goal name is > correct: Unable to download the artifact from any repository > > What am I doing wrong? > > Thanks in advance, > Davis > > <settings> > <proxies> > </proxies> > <servers> > </servers> > <mirrors> > <mirror> > <id>archiva-internal</id> > <mirrorOf>*</mirrorOf> > <url>http://kafka:8080/archiva/repository/internal > </url> > </mirror> > <mirror> > <id>archiva-snapshots</id> > <mirrorOf>*</mirrorOf> > <url>http://kafka:8080/archiva/repository/snapshots > </url> > </mirror> > </mirrors> > <profiles> > <profile> > <id>archiva</id> > > <activation><activeByDefault>true</activeByDefault></activation> > <repositories> > <repository> > <id>snapshots</id> > <name>Archiva Managed Snapshot > Repository</name> > <url> > http://kafka:8080/archiva/repository/snapshots/</url> > <releases> > <enabled>false</enabled> > </releases> > <snapshots> > <enabled>true</enabled> > </snapshots> > </repository> > <repository> > <id>internal</id> > <name>Archiva Managed Internal > Repository</name> > <url> > http://kafka:8080/archiva/repository/internal/</url> > <releases> > <enabled>true</enabled> > </releases> > <snapshots> > <enabled>false</enabled> > </snapshots> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>snapshots</id> > <name>Archiva Managed Snapshot > Repository</name> > <url> > http://kafka:8080/archiva/repository/snapshots/</url> > <releases> > <enabled>false</enabled> > </releases> > <snapshots> > <enabled>true</enabled> > </snapshots> > </pluginRepository> > <pluginRepository> > <id>internal</id> > <name>Archiva Managed Internal > Repository</name> > <url> > http://kafka:8080/archiva/repository/internal/</url> > <releases> > <enabled>true</enabled> > </releases> > <snapshots> > <enabled>false</enabled> > </snapshots> > </pluginRepository> > </pluginRepositories> > </profile> > </profiles> > </settings> > > -- > Zeno Consulting, Inc. > home: http://www.zenoconsulting.biz > blog: http://zenoconsulting.wikidot.com > p: 248.894.4922 > f: 313.884.2977 >