Code Monkey home page Code Monkey logo

appium-maven-plugin's People

Contributors

psorobka avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

appium-maven-plugin's Issues

Unable to install-node-npm-and-appium

Using the latest code and running from the base directory with:

mvn clean verify -Pinstall-node-npm-and-appium -e

I am unable to install node/npm/appium correctly. I was just curious if I am missing something. Below is the stack trace:

I also setup the appium.home and node.home variables to run
mvn clean verify -Pstart-and-stop-appium,integration-test

This worked with my local windows installation of appium
<node.home>C:/Work 2016/Applications/Appium</node.home>
<appium.home>C:/Work 2016/Applications/Appium/node_modules/appium</appium.home>

Stack trace 1
C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin>mvn clean verify -Pinstall-node-npm-and-appium
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Appium Maven Plugin Parent 1.0
[INFO] Appium Maven Plugin 1.0
[INFO] Appium Maven Plugin Example 1.0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Appium Maven Plugin Parent 1.0 1.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ appium-maven-plugin-parent ---
[INFO]
[INFO] --- frontend-maven-plugin:0.0.24:install-node-and-npm (install node and npm) @ appium-maven-plugin-parent ---
[INFO] Node v0.12.7 is already installed.
[INFO] Installing npm version 3.3.0
[INFO] Downloading NPM from http://registry.npmjs.org/npm/-/npm-3.3.0.tgz to C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin\npm.tar.gz
[INFO] No proxy was configured, downloading directly
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Appium Maven Plugin Parent 1.0 ..................... FAILURE [ 1.510 s]
[INFO] Appium Maven Plugin 1.0 ............................ SKIPPED
[INFO] Appium Maven Plugin Example 1.0 .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.468 s
[INFO] Finished at: 2016-05-10T11:28:02-07:00
[INFO] Final Memory: 15M/377M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.24:install-node-and-npm (install node and npm) on project appium-maven-plugin-parent: Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:0.0.24:install-node-and-npm failed: C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin.\node\npm is not a directory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/PluginExecutionException

C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin>mvn clean verify -Pinstall-node-npm-and-appium -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Appium Maven Plugin Parent 1.0
[INFO] Appium Maven Plugin 1.0
[INFO] Appium Maven Plugin Example 1.0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Appium Maven Plugin Parent 1.0 1.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ appium-maven-plugin-parent ---
[INFO]
[INFO] --- frontend-maven-plugin:0.0.24:install-node-and-npm (install node and npm) @ appium-maven-plugin-parent ---
[INFO] Node v0.12.7 is already installed.
[INFO] Installing npm version 3.3.0
[INFO] Downloading NPM from http://registry.npmjs.org/npm/-/npm-3.3.0.tgz to C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin\npm.tar.gz
[INFO] No proxy was configured, downloading directly
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Appium Maven Plugin Parent 1.0 ..................... FAILURE [ 1.486 s]
[INFO] Appium Maven Plugin 1.0 ............................ SKIPPED
[INFO] Appium Maven Plugin Example 1.0 .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.496 s
[INFO] Finished at: 2016-05-10T11:28:10-07:00
[INFO] Final Memory: 15M/377M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.24:install-node-and-npm (install node and npm) on project appium-maven-plugin-parent: Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:0.0.24:install-node-and-npm failed: C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin.\node\npm is not a directory -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.24:install-node-and-npm (install node and npm) on project appium-maven-plugin-parent: Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:0.0.24:install-node-and-npm failed: C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin.\node\npm is not a directory
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 install node and npm of goal com.github.eirslett:frontend-maven-plugin:0.0.24:install-node-and-npm failed: C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin.\node\npm is not a directory
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: java.lang.IllegalArgumentException: C:\Work 2016\GitHub\aaronmagi\appium-maven-plugin.\node\npm is not a directory
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:891)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultNodeAndNPMInstaller$NodeAndNPMInstallAction.installNpm(NodeAndNPMInstaller.java:135)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultNodeAndNPMInstaller$NodeAndNPMInstallAction.install(NodeAndNPMInstaller.java:71)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultNodeAndNPMInstaller.install(NodeAndNPMInstaller.java:44)
at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndNpmMojo.execute(InstallNodeAndNpmMojo.java:72)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:34)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/PluginExecutionException

Can't remove example/src/main

I would like to be able to test an external apk, rather than compiling it and deploying it prior to the tests. Android-maven-plugin fails during compilation if example/src/main is removed, so I would like to be able to have some flexibility here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.