Eugene Kuleshov wrote:
the <pluginRepository> section pointing to where freehep-nar can be downloaded is in the project's pom.xml (not in settings.xml. I dont even have a settings.xml file in ~/.m2), shouldnt it be picked up and used by m2eclipse ?
Yes, ~/.m2/settings.xml is picked up by default, but you can specify alternative location for that file (like in mvn -s command line option)
Here is pom.xml for this project (I have no settings.xml):
<pluginRepositories>
       <pluginRepository>
           <id>freehep-maven</id>
           <name>Maven FreeHEP</name>
           <url>http://java.freehep.org/maven2</url>
       </pluginRepository>
 </pluginRepositories>
This look ok to me. You can try to run mvn help:effective-pom and see if there any other maven repositories that are using freehep-maven repository id (those need to be unique).
Actually, please disregard this. You need to specify both repositories and pluginRepositories in your pom. This is kind of a long story, but that is the right way to do it in mvn 2.0.x. Because of the duplication, <pluginRepositories> element been deprecated in mvn 2.1-SNAPSHOT that is used in Eclipse for dependency resolution and also as default Maven runtime. So, if you specify same repository in both <repositorues> and <pluginRepositories> it should work in command line and in the ide.

 regards,
 Eugene



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to