camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4191) camel-jibx doesn't build when used with -Dmaven.test.skip=true
Date Fri, 08 Jul 2011 07:35:16 GMT

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

Jean-Baptiste Onofré commented on CAMEL-4191:
---------------------------------------------

I have updated my local copy but, FYI, I'm working on camel-2.7.x.

I guess that you updated on trunk ?

> camel-jibx doesn't build when used with -Dmaven.test.skip=true
> --------------------------------------------------------------
>
>                 Key: CAMEL-4191
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4191
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jibx
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.7.3, 2.8.0
>
>
> The camel-jibx component uses maven-antrun-plugin to call the JiBX binding compile task.
> Even if this plugin is called during process-test-classes (as it uses target/test-classes,
if we try to build using:
> mvn clean install -Dmaven.test.skip=true
> it fails:
> [INFO] --- maven-antrun-plugin:1.5:run (default) @ camel-jibx ---
> [INFO] Executing tasks
> main:
> Error: Cannot find information for class org.apache.camel.dataformat.jibx.PurchaseOrder;
on mapping element at (line 19, col 82, in purchaseOrder-jibx.xml)
> Error running binding compiler
> org.jibx.runtime.JiBXException: Binding purchaseOrder-jibx.xml is unusable because of
validation errors
>         at org.jibx.binding.Utility.loadBinding(Utility.java:377)
>         at org.jibx.binding.Utility.loadFileBinding(Utility.java:439)
>         at org.jibx.binding.Compile.compile(Compile.java:217)
>         at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>         at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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:265)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         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:597)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> The maven-antrun-plugin is called whereas it shouldn't.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message