Hi,

EJ Ciramella wrote on Tuesday, April 11, 2006 8:59 PM:

> But it's NOT local - it's hosted on another machine.
> 
> The learning curve wouldn't be so bad if there was some
> accurate, up-to-date documentation.
> 
> So I used:
> 
> 
>     <repositories>
>               <repository>
>                       <id>local</id>
>                       <name>local-repository</name>
>                       <url>file:thirdparty/repository</url>
>               </repository>
>               <repository>
>                       <id>central</id>
>                       <name>Upromise Local Repository</name>
>                       <layout>default</layout>
> 
> <url>http://build.corp.upromise.com/mavenrepository</url>
>       </repository> </repositories>
> 
>     <pluginRepositories>
>         <pluginRepository>
>                       <id>local-central</id>

Here! You're defining *another* plugin repository, but not a replacement for 
"central".

>                       <name>main</name>
>                       <layout>default</layout>
> 
> <url>http://build.corp.upromise.com/mavenrepository</url>        
>     </pluginRepository> </pluginRepositories>
> 
> 
> And when I start the build, I see:
> 
> E:\work\foxboro\model>mvn process-resources -P foxboro,model-base
> [INFO] Scanning for projects...
> [INFO]
> --------------------------------------------------------------
> --------------
> [INFO] Building LtyModel
> [INFO]    task-segment: [process-resources]
> [INFO]
> --------------------------------------------------------------
> --------------
> [INFO] artifact
> org.apache.maven.plugins:maven-resources-plugin: checking for
> updates from local-central
> [INFO] artifact
> org.apache.maven.plugins:maven-resources-plugin: checking for
> updates from central

Here M2 tells you, that it looks in *central* (for plugins)

> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-r
> esources-plugin/2.1/maven-resources-plugin-2.1.pom
> 888b downloaded
> Downloading:
> http://build.corp.upromise.com/mavenrepository/org/apache/mave
> n/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom 6K
> downloaded Downloading:
> http://build.corp.upromise.com/mavenrepository/org/apache/mave
> n/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> 10K downloaded [INFO] artifact
> org.apache.maven.plugins:maven-compiler-plugin: checking for
> updates from local-central

And here it looks additionally at your "local-central".

Don't get confused about the ids, the namespace is not shared between a normal 
repository for artifacts and a plugin repository.

[snip]

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to