Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 3.0-beta-1
-
Component/s: Plugins and Lifecycle
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
Check that there're no two <plugin> elements of the same plugin
Issue Links
- is duplicated by
-
MNG-3398
Multiple Plugin Declarations Ignored with no warning
-
-
MANTRUN-39
When maven-antrun-plugin artifact id is defined twice in a pom, only second one is executed.
-
What's the problem with multiple <plugin> sections for the same plugin? Right now it acts as a grouping for generic configuration.
I think it should be allowed. Take the antrun plugin for instance; you might want to run it twice using 2 different <dependencies>
defined as extensions for the plugin. They may be conflicting and need a fresh plugin realm. Or say the javadoc plugin,
once defined to generate normal html (using the standard doclet), and once using a custom doclet to generate XML, for instance.
Or an APT plugin that uses different processors, or....
If the plugins aren't stored in a Set, but in a List, there's no problem.