maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Theussl (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MLINKCHECK-3) Cannot add excludedHttpStatusErrors configuration
Date Tue, 28 Sep 2010 10:51:34 GMT

     [ http://jira.codehaus.org/browse/MLINKCHECK-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukas Theussl closed MLINKCHECK-3.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1
         Assignee: Lukas Theussl

Fixed in [r1002087|http://svn.apache.org/viewvc?rev=1002087&view=rev].
1.1-SNAPSHOT is deployed, please test.

> Cannot add excludedHttpStatusErrors configuration
> -------------------------------------------------
>
>                 Key: MLINKCHECK-3
>                 URL: http://jira.codehaus.org/browse/MLINKCHECK-3
>             Project: Maven 2.x Linkcheck Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0.1
>            Reporter: Mike Youngstrom
>            Assignee: Lukas Theussl
>             Fix For: 1.1
>
>
> When I attempt to use excludedHttpStatusErrors like in the following configuration:
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-linkcheck-plugin</artifactId>
> 				<version>1.0.1</version>
> 				<configuration>
> 					<excludedHttpStatusErrors>
> 						<excludedHttpStatusError>401</excludedHttpStatusError>
> 					</excludedHttpStatusErrors>
> 				</configuration>
> 			</plugin>
> With Maven 2.2.1 I get the following exception:
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] [I cannot be cast to [Ljava.lang.Object;
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object;
>         at org.codehaus.plexus.component.configurator.converters.composite.ArrayConverter.fromConfig
> uration(ArrayConverter.java:141)
>         at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(Comp
> onentValueSetter.java:247)
>         at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter
> .processConfiguration(ObjectWithFieldsConverter.java:137)
>         at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(
> BasicComponentConfigurator.java:56)
>         at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.ja
> va:1357)
>         at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:
> 724)
>         at org.apache.maven.plugin.DefaultPluginManager.getReport(DefaultPluginManager.java:583)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.j
> ava:982)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
> .java:650)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifec
> ycleExecutor.java:556)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
> java:535)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
> ifecycleExecutor.java:387)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
> xecutor.java:348)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
> :180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

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

        

Mime
View raw message