maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <>
Subject Re: what does it mean with this error when trying to run mvn eclipse:eclipse (Cannot find mojo descriptor for: 'eclipse:eclipse' - Treating as non-aggregator.)
Date Wed, 03 Feb 2010 08:49:27 GMT
Ok, first I would like to point you at some Maven books. They are great to
get the basics:

Then onto your problem. On the command line, you can always force a specific
version. In your case you're trying to use a SNAPSHOT-version (a
devevlopment build version), which is normally not a good idea (unless you
know what you're doing).
Try this on the command line:
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.7:eclipse

That should force Maven to use v2.7 of the plugin. Does it still not work?

The configuration I wrote about does the same thing kind of. By adding the
following xml section to your project, you configure Maven to use v2.7 of
the plugin (but only when executed for this project or a project that
inherits from this):

The schema for pom.xml is found here:

As a last point I would like you to talk to your local Maven people as well.
As you do have an Artifactory instance and you have configured to use that
(most likely based on directions by someone as you say you don't have much
Maven knowledge), if things still doesn't work - talk to them! They know
your local environment and should be able to help you. I can't solve
problems in your local environment.


On Wed, Feb 3, 2010 at 02:36, Rick R <> wrote:

> On Tue, Feb 2, 2010 at 2:43 PM, Anders Hammar <> wrote:
> >
> > Also, try what I suggested about specifying the version of the plugin to
> v
> > 2.7.
> >
> Ok I totally suck at Maven :) I'm trying to figure out how the heck you
> figure out how to declare the above and where you figure out the pom syntax
> for the eclipse plugin to declare the version?
> I looked out here
> (I normally go to the above repo look up to determine the pom dependencies
> I
> want to add.)
> Obviously it is using 2.8 since after the mvn eclipse:eclipse error I end
> up
> seeing:
> Alternatively, if you host your own repository you can deploy the file
> there:
>    mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins
> -DartifactId=maven-eclipse-plugin -Dversion=2.8-SNAPSHOT
> -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
>  org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.8-SNAPSHOT
> From the above I assume I can build the pom dependency and change it to 2.7
> like you mentioned, but somewhere I must be able to find that pom
> declaration in a repo online somewhere? Just trying to learn the process of
> where I find these things?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message