[ 
https://issues.apache.org/jira/browse/CAMEL-7314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13985627#comment-13985627
 ] 

Willem Jiang edited comment on CAMEL-7314 at 4/30/14 3:37 PM:
--------------------------------------------------------------

This error is caused by JDK 8 removed old sun's APT implementation. I managed 
to get ride of that error by force maven to JAXB 2.2.6.  But I got the schema 
generate issue after that.
{code}
Caused by: 
/Users/jiangning/work/camel/git/camel/components/camel-spring/target/antrun/build-main.xml:42:
 schema generation failed
        at com.sun.tools.jxc.ApBasedTask.compile(ApBasedTask.java:171)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:906)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
        at 
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
        ... 21 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{code}

I also tried to use org.codehaus.mojo:jaxb2-maven-plugin to generate the 
schema, but it looks like this plugin cannot load the file from custom 
directory. 



was (Author: njiang):
This error is caused by JDK 8 removed old sun's APT implementation. I managed 
to get ride of that error by force maven to JAXB 2.2.6.  But I got the schema 
generate issue after that.

> Support to build the source with JDK8
> -------------------------------------
>
>                 Key: CAMEL-7314
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7314
>             Project: Camel
>          Issue Type: Task
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-antrun-plugin:1.6:run (generate-sources) on 
> project camel-spring: An Ant BuildException has occured: taskdef A class 
> needed by class com.sun.tools.jxc.SchemaGenTask cannot be found: 
> com/sun/mirror/apt/AnnotationProcessorFactory 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to