Hello Monika, I think I had this problem a few months ago (I switched to command line maven) so I would be interested if you have any update about this.
Regards, Vivian -----Message d'origine----- De : monika7 [mailto:[email protected]] Envoyé : mercredi 26 août 2009 04:07 À : [email protected] Objet : maven POM error in example projects when using m2eclipse plugin This is a bit of chicken and egg question (is it ServiceMix or M2Eclipse plugin error?), but I run into this problem today and I am bit stumped what is causing it. Just a few months ago I used maven 2.0.x in Eclipse 3.4 for creating and building ServiceMix (3.1/3.2?) SA / SU components and everything worked without a problem. I am currently using Eclipse 3.5 / m2eclipse plugin version 0.9.9.200908201001 with either build in maven 3.0.0-snapshot or external 2.2. on Mac OSX (Java 6). Every example project form ServiceMix 3.2.3 imported to Eclipse, results in maven error: Plugin could not be found, please check its coordinates for typos and ensure the required plugin repositories are defined in the POM org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:null from the specified remote repositories: apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository, releases=false, snapshots=true), apache.incubating (http://people.apache.org/repo/m2-incubating-repository, releases=true, snapshots=false), apache-releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository, releases=true, snapshots=false), servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo/, releases=true, snapshots=true), apache-incubating (http://people.apache.org/repo/m2-incubating-repository, releases=true, snapshots=false), apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository, releases=false, snapshots=true), central (http://repo1.maven.org/maven2, releases=true, snapshots=false) The same example ServiceMix code builds without an error from command line mvn (2.2.1). I have checked all pom.xml files and I do not see not reference to the plugin. When I generated effective pom.xml from the root project (e.g. bridge), there is only one reference: <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <dependencies> <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-build</artifactId> <version>1.0</version> </dependency> </dependencies> </plugin> All other maven projects created with help of m2plugin work fine in Eclipse so I assume this is some strange combination of these two together. Turns out I got a but rusty with maven (hard to believe a few months would do it), so if someone recognizes the problem or have suggestions, how to diagnose it, please share the information with me. Thanks, Monika -- View this message in context: http://www.nabble.com/maven-POM-error-in-example-projects-when-using-m2eclipse-plugin-tp25145409p25145409.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
