[
http://jira.codehaus.org/browse/MENFORCER-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100167
]
Brian Fox commented on MENFORCER-10:
------------------------------------
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?
> EnforcerRuleHelper#getComponent() throws exception
> --------------------------------------------------
>
> Key: MENFORCER-10
> URL: http://jira.codehaus.org/browse/MENFORCER-10
> Project: Maven 2.x Enforcer Plugin
> Issue Type: Bug
> Components: Rule API
> Environment: Windows XP, maven version 2.0.6.
> Reporter: Scott Myron
> Assignee: Brian Fox
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira