Site plugin cannot parse checkstyle configuration when inherited
----------------------------------------------------------------

                 Key: MSITE-540
                 URL: http://jira.codehaus.org/browse/MSITE-540
             Project: Maven 2.x and 3.x Site Plugin
          Issue Type: Bug
          Components: inheritance, multi module, site:run
    Affects Versions: 3.0-beta-3
         Environment: Maven 3.0.1, Windows XP SP2
            Reporter: Martin Ackermann
            Priority: Minor
         Attachments: example-project.zip

When running "mvn site" on the atteched example project, the following error 
occurs:

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site (default-site) on 
project parent: failed to get Reports: Unable to parse configuration of mojo 
org.apache.maven.plugins:maven-jxr-plugin:2.2:jxr for parameter excludes: 
Cannot assign configuration entry 'excludes' to 'class java.util.ArrayList' 
from 'mypackage/**/*.java', which is of type class java.lang.String -> [Help 1]

Obviously, the parser gets out of scope because it complains about 'excludes' 
for the jxr plugin. But the 'excludes' is actually given in the checkstyle 
plugin section.

If you delete the jxr plugin section from pluginManagement, the error 
disappears.
If you delete the javadoc plugin section from plugins, the error disappears as 
well.
If you change the order of the checkstyle plugin section and the jxr plugin 
section under pluginManagement, the error disappears as well.

-- 
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