> import org.apache.camel.impl.scan.PatternBasedPackageScanFilter;This class ^^^ is a recent change in camel-core.
Are you sure you got the latest source code from SVN? For instance svn rev 787134 is the latest this morning. On Sun, Jun 21, 2009 at 8:24 AM, alloyer <allo...@gmail.com> wrote: > > I ran in trunk directory always. The "mvn clean install -Dtest=false" works > well, but the "mvn eclipse:eclipse" still has that exception. > I think I can ignore it because the exception do not bring some errors when > I import the camel-spring module into eclipse IDE. > > Cheers~ > > > willem.jiang wrote: > > > > Did you just run the "mvn clean install" in the camel-spring directory ? > > You need to run the command from trunk (The top directory of camel > > source directory), and you can use "mvn clean install -Dtest=false" to > > avoid the test running. > > > > Something is wrong in the current Camel snapshot repository, the error > > may caused by the out of date snapshot artifacts. > > > > Willem > > > > alloyer wrote: > >> I tried "mvn clean install", but the same exception occured. > >> It notice the org.apache.camel.spring.util does not exist, but I found > it > >> existed. > >> > >> > >> willem.jiang wrote: > >>> The JDK and mvn version should be OK. > >>> > >>> Can you run "mvn clean install" form the root of the camel src ? > >>> > >>> Willem > >>> > >>> alloyer wrote: > >>>> Maven version: 2.0.9 > >>>> Java version: 1.5.0_12 > >>>> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > >>>> > >>>> That's the versions of JDK and Maven. > >>>> > >>>> willem.jiang wrote: > >>>>> Hi, > >>>>> > >>>>> I have no trouble to build the camel-spring module with latest trunk > >>>>> code. > >>>>> > >>>>> Did you build it from root directory? > >>>>> > >>>>> Can you show me which version of JDK and maven are you using? > >>>>> > >>>>> Willem > >>>>> > >>>>> alloyer wrote: > >>>>>> When I build camel-spring module, I encountered an error and have no > >>>>>> idea > >>>>>> how > >>>>>> to fix it. > >>>>>> > F:\camel\trunk\components\camel-spring\target\schema-src\org\apache\camel\spring\CamelBeanPostProcessor.java:34: > >>>>>> 软件包 > >>>>>> org.apache.camel.spring.util 不存在 > >>>>>> import org.apache.camel.spring.util.ReflectionUtils; > >>>>>> ^ > >>>>>> > F:\camel\trunk\components\camel-spring\target\schema-src\org\apache\camel\spring\CamelContextFactoryBean.java:35: > >>>>>> 软件包 > >>>>>> org.apache.camel.impl.scan 不存在 > >>>>>> import org.apache.camel.impl.scan.PatternBasedPackageScanFilter; > >>>>>> ^ > >>>>>> > F:\camel\trunk\components\camel-spring\target\schema-src\org\apache\camel\spring\CamelContextFactoryBean.java:139: > >>>>>> 找不 > >>>>>> 到符号 > >>>>>> 符号: 类 SpringCamelContext > >>>>>> 位置: 类 org.apache.camel.spring.CamelContextFactoryBean > >>>>>> private SpringCamelContext context; > >>>>>> ^ > >>>>>> > F:\camel\trunk\components\camel-spring\target\schema-src\org\apache\camel\spring\CamelContextFactoryBean.java:486: > >>>>>> 找不 > >>>>>> 到符号 > >>>>>> 符号: 类 SpringCamelContext > >>>>>> 位置: 类 org.apache.camel.spring.CamelContextFactoryBean > >>>>>> public SpringCamelContext getContext() throws Exception { > >>>>>> ^ > >>>>>> > F:\camel\trunk\components\camel-spring\target\schema-src\org\apache\camel\spring\CamelContextFactoryBean.java:493: > >>>>>> 找不 > >>>>>> 到符号 > >>>>>> 符号: 类 SpringCamelContext > >>>>>> 位置: 类 org.apache.camel.spring.CamelContextFactoryBean > >>>>>> public void setContext(SpringCamelContext context) { > >>>>>> ^ > >>>>>> > F:\camel\trunk\components\camel-spring\target\schema-src\org\apache\camel\spring\CamelContextFactoryBean.java:714: > >>>>>> 找不 > >>>>>> 到符号 > >>>>>> 符号: 类 SpringCamelContext > >>>>>> 位置: 类 org.apache.camel.spring.CamelContextFactoryBean > >>>>>> protected SpringCamelContext createContext() { > >>>>>> ^ > >>>>>> 错误: Two classes have the same XML type name > >>>>>> "{http://camel.apache.org/schema/spring}dataFormat". Use > >>>>>> @XmlType.name > >>>>>> an > >>>>>> d @XmlType.namespace to assign different names to them. > >>>>>> this problem is related to the following location: > >>>>>> at > >>>>>> > org.apache.camel.model.DataFormatDefinition(DataFormatDefinition.java:36) > >>>>>> this problem is related to the following location: > >>>>>> at > >>>>>> > org.apache.camel.model.dataformat.DataFormatDefinition(DataFormatDefinition.java:37) > >>>>>> 错误: Two classes have the same XML type name > >>>>>> "{http://camel.apache.org/schema/spring}loadBalancer". Use > >>>>>> @XmlType.name > >>>>>> and @XmlType.namespace to assign different names to them. > >>>>>> this problem is related to the following location: > >>>>>> at > >>>>>> > org.apache.camel.model.LoadBalancerDefinition(LoadBalancerDefinition.java:37) > >>>>>> at > >>>>>> > org.apache.camel.model.loadbalancer.FailoverLoadBalancerDefinition(FailoverLoadBalancerDefinition.jav > >>>>>> a:33) > >>>>>> at > >>>>>> > org.apache.camel.model.LoadBalanceDefinition.loadBalancerType(LoadBalanceDefinition.java:65) > >>>>>> at > >>>>>> > org.apache.camel.model.LoadBalanceDefinition(LoadBalanceDefinition.java:54) > >>>>>> this problem is related to the following location: > >>>>>> at > >>>>>> > org.apache.camel.model.loadbalancer.LoadBalancerDefinition(LoadBalancerDefinition.java:38) > >>>>>> 2 错误 > >>>>>> [INFO] > >>>>>> > ------------------------------------------------------------------------ > >>>>>> [ERROR] FATAL ERROR > >>>>>> [INFO] > >>>>>> > ------------------------------------------------------------------------ > >>>>>> [INFO] schema generation failed > >>>>>> [INFO] > >>>>>> > ------------------------------------------------------------------------ > >>>>>> [INFO] Trace > >>>>>> schema generation failed > >>>>>> at > >>>>>> com.sun.tools.jxc.AptBasedTask.compile(AptBasedTask.java:110) > >>>>>> at > >>>>>> > com.sun.tools.jxc.maven2.SchemaGenAdapter.execute(SchemaGenAdapter.java:111) > >>>>>> at > >>>>>> > com.sun.tools.jxc.maven2.SchemaGenMojo.execute(SchemaGenMojo.java:161) > >>>>>> at > >>>>>> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:49 > >>>>>> 9) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:924) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:767) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:529) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav > >>>>>> a:330) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) > >>>>>> at > >>>>>> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > >>>>>> at > >>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > >>>>>> at > >>>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > >>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > >>>>>> 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) > >>>>>> > >>>>>> Hope some one can give instructions to solve it. > >>>>> > >>> > >>> > >> > > > > > > > > -- > View this message in context: > http://www.nabble.com/camel-spring-build-error-tp24108489p24131900.html > Sent from the Camel Development mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus