We have seen this before - it is maven related. You need to run mvn -U integration-test to update the core Plexus libraries in Maven. After that all should work as expected :-)
Mike. On 2/8/07, Matt Raible <[EMAIL PROTECTED]> wrote:
Can you attach your pom.xml, or just paste in the <testResource> section? Thanks, Matt On 2/8/07, PeteTh < [EMAIL PROTECTED]> wrote: > > > Hi there, after create archetype using appfuse-basic-spring , mvn > integration-test is giving an error during the > resources:testResources phase :- > > Any ideas ? > > > [DEBUG] Configuring mojo > 'org.apache.maven.plugins:maven-resources-plugin:2.1:testResources' --> > [DEBUG] (f) filters = [] > [DEBUG] (f) outputDirectory = > > D:\JavaProjects\2007\AppFuse2\appfuse-basic-springMVC\myproject\target\test-classes > [DEBUG] (f) project = [EMAIL PROTECTED] > [DEBUG] (f) resources = [EMAIL PROTECTED], > [EMAIL PROTECTED] > [DEBUG] -- end configuration -- > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] java.io.File > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Trace > java.lang.ClassCastException: java.io.File > at > org.codehaus.plexus.util.InterpolationFilterReader.read( > InterpolationFilterReader.java :269) > at > org.codehaus.plexus.util.InterpolationFilterReader.read( > InterpolationFilterReader.java:162) > at java.io.Reader.read(Reader.java:122) > at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java :212) > at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200) > at > org.apache.maven.plugin.resources.ResourcesMojo.copyFile( > ResourcesMojo.java:249) > at > org.apache.maven.plugin.resources.ResourcesMojo.copyResources ( > ResourcesMojo.java:172) > at > org.apache.maven.plugin.resources.TestResourcesMojo.execute( > TestResourcesMojo.java:53) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo( > DefaultPluginManager.java :412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:534) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > (DefaultLifecycleExecutor.java :475) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > DefaultLifecycleExecutor.java:454) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > (DefaultLifecycleExecutor.java :306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java :140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java > :322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > 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:585) > 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) > [INFO] > ------------------------------------------------------------------------ > > [INFO] Total time: 9 seconds > [INFO] Finished at: Thu Feb 08 22:45:40 GMT 2007 > [INFO] Final Memory: 13M/23M > [INFO] > ------------------------------------------------------------------------ > -- > View this message in context: http://www.nabble.com/mvn-error-during-first-build-%28java.lang.ClassCastException%3A-java.io.File-%29-tf3196534s2369.html#a8875967 > > Sent from the AppFuse - User mailing list archive at Nabble.com<http://nabble.com/> > . > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com
