Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4191

camel-jibx doesn't build when used with -Dmaven.test.skip=true

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • 2.7.3, 2.8.0
    • build system, camel-jibx
    • None

    Description

      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.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            jbonofre Jean-Baptiste Onofré
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: