[ 
http://jira.codehaus.org/browse/MENFORCER-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100168
 ] 

Scott Myron commented on MENFORCER-10:
--------------------------------------

Sure, that's not a problem, I could just create an instance of the 
DefaultProjectDependencyAnalyzer. Would it be possible to add documentation 
somewhere that mentions that only standard components can be pulled in using 
getComponent()? I was under the impression that any component could be found 
using getComponent(). 

> 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

        

Reply via email to