Affects Version/s: 1.2.0.RC1
Fix Version/s: None
Component/s: @ CORE
Environment:All versions are affected
I'm developing an addon for flex.
The artifact types for flex includes "SWF", "SWC", etc...
The artifact scopes have been extended in flexMojos to include "CACHING", "RSL", "THEME", etc...
Actualy, the actual Enum classes that are respectively DependencyType and DependencyScope don't implement any interface, it's then not possible for me to create dynamically dependencies using other types or scopes, the only way I can inject these kinds of artifacts is thru a template and then rewrite the value in the pom.xml (which is not taken in account by the Maven Metadatas, in more, it can be very tedious especially because I want the addon to be able to manage several user versions of the flexSQK and the pom dependencies can completly change relativly to the version which means with the current rigid implementation of those Enum, I've to implement a lot of tricky forks to reach the goal.
In more, I've seen that in the trunk, you added a public static functions in those Enum classes, it doesn't go through the flexibility.
Then, I suggest to use interfaces instead of concrete classes as much as you can to allow a needed better flexibility.
Thank you for your understanding.