psorobka / appium-maven-plugin Goto Github PK
View Code? Open in Web Editor NEWPlugin for managing Appium server from Maven
License: Apache License 2.0
Plugin for managing Appium server from Maven
License: Apache License 2.0
Right now, only Appium 1.1.0 works.
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
Now log output is not saved.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.