4 Replies Latest reply on Apr 25, 2017 10:21 AM by Max Barkley

    Problem in using errai cordova maven plugin (config.xml not found)

    Edward Banfa Newbie

      Hello All,

       

      I having been trying to convert my test app into a native app. My test app is based on the errai tutorial (Errai 4.0.0Beta3). I am able to build and deploy the app on Wildfly 10 but when I invoke the cordova maven plugin I get the error listed below. My development machine is Ubuntu 14.04, but I am building and deploying on a headless Ubuntu 16 server (64bit with 4gb Ram). I have installed the Android SDK and updated it. I also have installed cordova via npm. Please any assistance will be sincerely appreciated and my apologies in advance if my questions is trivial.

       

      By the way this is my app GitHub - ebanfa/fix: Fix

       

      Kind regards,

       

      Edward

       

      [INFO] Expanding: /tmp/tmp5251263066658797765.tar into /home/adrian/Projects/fix/target/template

      Copying 358 files to /home/adrian/Projects/fix/target/template/platforms/android/assets/www

      Copied 514 empty directories to 410 empty directories under /home/adrian/Projects/fix/target/template/platforms/android/assets/www

      Copying 358 files to /home/adrian/Projects/fix/target/template/platforms/ios/www

      Copied 514 empty directories to 410 empty directories under /home/adrian/Projects/fix/target/template/platforms/ios/www

      Copying 358 files to /home/adrian/Projects/fix/target/template/www

      Copied 514 empty directories to 410 empty directories under /home/adrian/Projects/fix/target/template/www

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 04:14 min

      [INFO] Finished at: 2017-04-17T11:27:25+00:00

      [INFO] Final Memory: 52M/401M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal org.jboss.errai:cordova-maven-plugin:3.2.0.Final:build-project (build) on project fix: Execution build of goal org.jboss.errai:cordova-maven-plugin:3.2.0.Final:build-project failed: Warning: Could not find file /home/adrian/Projects/fix/target/template/www/config.xml to copy. -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.errai:cordova-maven-plugin:3.2.0.Final:build-project (build) on project fix: Execution build of goal org.jboss.errai:cordova-maven-plugin:3.2.0.Final:build-project failed: Warning: Could not find file /home/adrian/Projects/fix/target/template/www/config.xml to copy.

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

              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:116)

              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)

              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

              at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution build of goal org.jboss.errai:cordova-maven-plugin:3.2.0.Final:build-project failed: Warning: Could not find file /home/adrian/Projects/fix/target/template/www/config.xml to copy.

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

              ... 20 more

      Caused by: : Warning: Could not find file /home/adrian/Projects/fix/target/template/www/config.xml to copy.

              at org.apache.tools.ant.taskdefs.Copy.copySingleFile(Copy.java:619)

              at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:444)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

              at org.apache.tools.ant.Task.perform(Task.java:348)

              at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:199)

              at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)

              at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:149)

              at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)

              at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:756)

              at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:730)

              at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)

              at org.jboss.errai.maven.cordova.CordovaMojo.copyContent(CordovaMojo.groovy:91)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)