Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-alpha-4
-
Component/s: Rule API
-
Labels:None
-
Environment:Windows XP, maven version 2.0.6.
-
Testcase included:yes
-
Number of attachments :
Description
I'm trying to use EnforcerRuleHelper#getComponent() like the example in http://maven.apache.org/shared/maven-enforcer-rule-api/writing-a-custom-rule.html. I'm trying to get the ProjectDependencyAnalyzer component, however, the lookup fails with a ComponentLookupException. I could not find any documentation about how to fix this or if there is any additional configuration I need to specify.
I don't believe that's a standard component that can be pulled...hence the lookup exception. Can you just instantiate a singleton in your rule?