
| Key: |
MNG-1886
|
| Type: |
Improvement
|
| Status: |
Reopened
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Vincent Massol
|
| Votes: |
1
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
Maven 2
Created: 21/Dec/05 02:33 PM
Updated: 12/Jun/08 06:31 PM
|
|
| Component/s: |
Plugin API
|
| Affects Version/s: |
2.0.1
|
| Fix Version/s: |
3.x
|
|
|
For example in the clover plugin i have both report mojos and main build mojos. They need to share lots of configuration elements and common methods but it's not easy to do so because each type needs to extend either AbstractMavenReport or AbstractMojo. Of course I could not extend AbstractMavenReport and instead implement the interface but then I'll have to reimplement all its methods.
|
|
Description
|
For example in the clover plugin i have both report mojos and main build mojos. They need to share lots of configuration elements and common methods but it's not easy to do so because each type needs to extend either AbstractMavenReport or AbstractMojo. Of course I could not extend AbstractMavenReport and instead implement the interface but then I'll have to reimplement all its methods. |
Show » |
|
If they are sharing types - there is no reason this can't be done with a subelement (eg, like MavenArchiveConfiguration in jar, war, etc).
Other things might be sharable by the plugin context.
Please reopen if neither of these address your needs.