[
http://jira.codehaus.org/browse/MCASTOR-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Brozowski closed MCASTOR-4.
--------------------------------
Resolution: Fixed
This no longer appears to be a problem
> Cant build castor plugin from source
> ------------------------------------
>
> Key: MCASTOR-4
> URL: http://jira.codehaus.org/browse/MCASTOR-4
> Project: Maven 2.x Castor Plugin
> Issue Type: Bug
> Reporter: Allan Ramirez
> Priority: Critical
>
> When building the castor plugin from source a compilation error occurs:
> Tests run: 12, Failures: 0, Errors: 5, Time elapsed: 0.531 sec
> testExecute(org.codehaus.mojo.castor.GenerateMojoTest) Time elapsed: 0.22
> sec <<< ERROR!
> [ stdout ] ---------------------------------------------------------------
> [info] Processing
> C:\Mergere\Mojo.CodeHaus\castor-maven-plugin\src\test\resources\mapping.xml
> [ stderr ] ---------------------------------------------------------------
> [ stacktrace ] -----------------------------------------------------------
> org.apache.maven.plugin.MojoExecutionException: Castor execution failed
> at org.codehaus.mojo.castor.GenerateMojo.execute(GenerateMojo.java:198)
> at
> org.codehaus.mojo.castor.GenerateMojoTest.testExecute(GenerateMojoTest.java:73)
> 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 junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> 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.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:230)
> at
> org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:204)
> at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:213)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:161)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:85)
> 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.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:232)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:181)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:338)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
> 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:249)
> 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)
> Caused by: java.lang.Error: Unresolved compilation problem:
> Exception IOException is not compatible with throws clause in
> SourceGenerator.generateSource(InputSource, String)
> at
> org.codehaus.mojo.castor.CastorSourceGenerator.generateSource(CastorSourceGenerator.java:60)
> at
> org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:436)
> at
> org.codehaus.mojo.castor.GenerateMojo.processFile(GenerateMojo.java:301)
> at org.codehaus.mojo.castor.GenerateMojo.execute(GenerateMojo.java:187)
> ... 47 more
> The throws clause in generateSource( InputSource source, String packageName )
> is causing this problem. I think this should be remove.
--
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
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email