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

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

This doesn't appear to work. I added the following dependency to the POM of the 
project the rule should run against and I still get a ComponentLookupException.

<build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-enforcer-plugin</artifactId>
                                <dependencies>
                                        .....
                                        <dependency>
                                                
<groupId>org.apache.maven.shared</groupId>
                                                <artifactId>
                                                        
maven-dependency-analyzer
                                                </artifactId>
                                                
<version>1.0-alpha-3-SNAPSHOT</version>
                                        </dependency>
                                </dependencies>
                               ....
                        </plugin>
                </plugins>
        </build>

> 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