[ 
https://jira.codehaus.org/browse/MANT-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=352806#comment-352806
 ] 

Trejkaz commented on MANT-74:
-----------------------------

I wouldn't expect the ant:ant goal itself to be present at all, unless I'm 
misunderstanding how all of this works. Rather, for some reason, if you have 
zero exclusions for something which could be converted into an Ant build, 
ant:ant fails.

Anyway, even without having my own repo handy, Google was able to find at least 
one occurrence of an empty exclusion:

https://apache.googlesource.com/activemq/+/ce369c6418a5ed233f9c2add906ece3a2ca33243/activemq-optional/pom.xml

In this particular case, it's the surefire configuration, which does sound like 
the kind of thing which could be converted, although I'm not really sure. The 
lines above it look exactly the same as the ones I previously posted, though, 
so I'm fairly sure this would be the file in question.


> ClassCastException running ant:ant on activemq project
> ------------------------------------------------------
>
>                 Key: MANT-74
>                 URL: https://jira.codehaus.org/browse/MANT-74
>             Project: Maven Ant Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Trejkaz
>            Assignee: Karl-Heinz Marbaise
>            Priority: Critical
>         Attachments: mvn.log
>
>
> I tried to run mvn ant:ant to create Ant builds for ActiveMQ, and I get the 
> following error about half way through. I'm attaching a full log as well, in 
> case that is of use.
> {noformat}
> Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to 
> [Ljava.util.Map;
>         at 
> org.apache.maven.plugin.ant.AntBuildWriterUtil.getMavenPluginOptions(AntBuildWriterUtil.java:919)
>         at 
> org.apache.maven.plugin.ant.AntBuildWriterUtil.getMavenSurefirePluginOptions(AntBuildWriterUtil.java:717)
>         at 
> org.apache.maven.plugin.ant.AntBuildWriter.getTestExcludes(AntBuildWriter.java:995)
>         at 
> org.apache.maven.plugin.ant.AntBuildWriter.writeTestTargets(AntBuildWriter.java:885)
>         at 
> org.apache.maven.plugin.ant.AntBuildWriter.writeGeneratedBuildXml(AntBuildWriter.java:316)
>         at 
> org.apache.maven.plugin.ant.AntBuildWriter.writeBuildXmls(AntBuildWriter.java:122)
>         at org.apache.maven.plugin.ant.AntMojo.execute(AntMojo.java:134)
>         at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
>         ... 20 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to