I’m always confuse when I see this answer and since it is the third time, I
will try and answer myself for the next time I get this problem.

For a new project, just take the latest stable version of the plugins. When
you import an existing project, try and guess which plugin could have been
used or else take the latest stable version.

When you are using maven 2.0.x you may have a clue of a suitable version
from the pom (ex:  2.0.9
<http://svn.apache.org/viewvc/maven/components/tags/maven-2.0.9/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml?revision=645582&view=markup>
 
) or the release note (ex:  2.0.11
<http://maven.apache.org/docs/2.0.11/release-notes.html>  ).

Though, latest versions should be backward compatible.

Anders Hammar wrote
> Do as the messages say, specify the version of those plugins (in the pom).
> 
> /Anders (mobile)
> fvo1961 Den 27 dec 2010 10.07  wrote
>> I've installed m2 Sonatype plugin in eclipse. When I execute package, the
>> following warning messages appear:
>> 
>> [WARNING] Some problems were encountered while building the effective
>> model for stockdomain:stockdomain:war:1.0-SNAPSHOT
>> [WARNING] 'build.plugins.plugin.version' for
>> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 11,
>> column 12
>> [WARNING] 'build.plugins.plugin.version' for
>> org.codehaus.mojo:exec-maven-plugin is missing. @ line 26, column 12
>> [WARNING]
>> [WARNING] It is highly recommended to fix these problems because they
>> threaten the stability of your build.
>> [WARNING]
>> [WARNING] For this reason, future Maven versions might no longer support
>> building such malformed projects.
>> 
>> Many thanks fo advise on how to get rid of these warning.
>> 
>> fv1961
>> --
> View this message in context:
> http://maven.40175.n5.nabble.com/eclipse-WARNING-build-plugins-plugin-version-for-org-apache-maven-plugins-maven-compiler-plugin-is-mg-tp3318900p3318900.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 

> [email protected]

> For additional commands, e-mail: 

> [email protected]





--
View this message in context: 
http://maven.40175.n5.nabble.com/eclipse-WARNING-build-plugins-plugin-version-for-org-apache-maven-plugins-maven-compiler-plugin-is-mg-tp3318900p5737226.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to