Maven enforcer plugin not matching regex on parent version - maven-3
I am pretty stumped by a rule failure match in the enforcer plugin. The regex validates the revision property, but when the same regex is applied to project.parent.version(commented out in the pom shown) it fails:
Image must not have a SNAPSHOT parent 18:
My maven version is 3.3.9, here is my full pom:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>appimage-test</artifactId>
<packaging>pom</packaging>
<groupId>test</groupId>
<version>2.0.0</version>
<properties>
<revision>18</revision>
</properties>
<parent>
<groupId>mygrp</groupId>
<artifactId>artifact_id</artifactId>
<version>18</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-image-revision-property</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!--
<requireProperty>
<property>project.parent.version</property>
<regex>\d\d</regex>
<regexMessage>Image must not have a SNAPSHOT parent ${project.parent.version}:</regexMessage>
</requireProperty>
-->
<requireProperty>
<property>revision</property>
<regex>\d\d</regex>
<regexMessage>Regex did not match:${revision}:</regexMessage>
</requireProperty>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Changing the expression for project.parent.version to \d+.* makes it pass yet \d\d.* and \d+ do not...(if you're wondering why I don't use what works, I need to validate a more complicated regex so I'm trying to understand what I'm missing here)
Per comment request here is a debug log output:
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1, parent: sun.misc.Launcher$AppClassLoader#46c9220]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce' with basic configurator -->
[DEBUG] (s) fail = true
[DEBUG] (s) failFast = false
[DEBUG] (f) ignoreCache = false
[DEBUG] (f) mojoExecution = org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce {execution: enforce-image-revision-property}
[DEBUG] (s) project = MavenProject: test:appimage-test:2.0.0 # /home/myuser/myproject/pom.xml
[DEBUG] (s) property = project.parent.version
[DEBUG] (s) regex = \d+
[DEBUG] (s) regexMessage = Image must not have a SNAPSHOT parent 18:
[DEBUG] (s) property = revision
[DEBUG] (s) regex = \d\d
[DEBUG] (s) regexMessage = Regex did not match:18:
[DEBUG] (s) rules = [org.apache.maven.plugins.enforcer.RequireProperty#4c500a2, org.apache.maven.plugins.enforcer.RequireProperty#21ac8e20]
[DEBUG] (s) session = org.apache.maven.execution.MavenSession#47a6e825
[DEBUG] (s) skip = false
[DEBUG] -- end configuration --
[DEBUG] Executing rule: org.apache.maven.plugins.enforcer.RequireProperty
[DEBUG] Adding failure due to exception
org.apache.maven.enforcer.rule.api.EnforcerRuleException: Image must not have a SNAPSHOT parent 18:
at org.apache.maven.plugins.enforcer.AbstractPropertyEnforcerRule.execute(AbstractPropertyEnforcerRule.java:127)
at org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:193)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)
[DEBUG] Executing rule: org.apache.maven.plugins.enforcer.RequireProperty
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireProperty failed with message:
Image must not have a SNAPSHOT parent 18:
I am hesitant to publish the full debug log as it's hard for me to scrub it properly, but here is the plugin versioning information:
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0, ConflictMarker.nodeCount=137, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=49, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=8, ConflictResolver.conflictItemCount=112, DefaultDependencyCollector.collectTime=150, DefaultDependencyCollector.transformTime=10}
[DEBUG] org.apache.maven.plugins:maven-enforcer-plugin:jar:1.4.1:
[DEBUG] org.apache.maven:maven-artifact:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-project:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-model:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
[DEBUG] backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.11:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] org.apache.maven:maven-core:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile
[DEBUG] org.slf4j:slf4j-jdk14:jar:1.5.6:runtime
[DEBUG] org.slf4j:slf4j-api:jar:1.5.6:runtime
[DEBUG] org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.2.1:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile
[DEBUG] org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile
[DEBUG] commons-cli:commons-cli:jar:1.2:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.2.1:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.22:compile
[DEBUG] commons-lang:commons-lang:jar:2.3:compile
[DEBUG] org.apache.maven.enforcer:enforcer-api:jar:1.4.1:compile
[DEBUG] org.apache.maven.enforcer:enforcer-rules:jar:1.4.1:compile
[DEBUG] org.apache.maven.shared:maven-common-artifact-filters:jar:1.4:compile
[DEBUG] org.beanshell:bsh:jar:2.0b4:compile
[DEBUG] org.apache.maven.shared:maven-dependency-tree:jar:2.2:compile
[DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG] org.eclipse.aether:aether-util:jar:0.9.0.M2:compile
[DEBUG] org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6:compile
[DEBUG] org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:compile
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:2.2:compile
[DEBUG] org.codehaus.plexus:plexus-io:jar:2.0.4:compile
[DEBUG] junit:junit:jar:4.11:compile
[DEBUG] org.hamcrest:hamcrest-core:jar:1.3:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1
[DEBUG] Imported: < project>test:appimage-test:2.0.0
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1
[DEBUG] Included: org.apache.maven.plugins:maven-enforcer-plugin:jar:1.4.1
[DEBUG] Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
[DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.11
[DEBUG] Included: org.slf4j:slf4j-jdk14:jar:1.5.6
[DEBUG] Included: org.slf4j:jcl-over-slf4j:jar:1.5.6
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.2.1
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.1
[DEBUG] Included: org.apache.maven.doxia:doxia-logging-api:jar:1.1
[DEBUG] Included: commons-cli:commons-cli:jar:1.2
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.22
[DEBUG] Included: commons-lang:commons-lang:jar:2.3
[DEBUG] Included: org.apache.maven.enforcer:enforcer-api:jar:1.4.1
[DEBUG] Included: org.apache.maven.enforcer:enforcer-rules:jar:1.4.1
[DEBUG] Included: org.apache.maven.shared:maven-common-artifact-filters:jar:1.4
[DEBUG] Included: org.beanshell:bsh:jar:2.0b4
[DEBUG] Included: org.apache.maven.shared:maven-dependency-tree:jar:2.2
[DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG] Included: org.eclipse.aether:aether-util:jar:0.9.0.M2
[DEBUG] Included: org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6
[DEBUG] Included: org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3
[DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:2.2
[DEBUG] Included: org.codehaus.plexus:plexus-io:jar:2.0.4
[DEBUG] Included: junit:junit:jar:4.11
[DEBUG] Included: org.hamcrest:hamcrest-core:jar:1.3
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1, parent: sun.misc.Launcher$AppClassLoader#46c9220]
Related
Getting error as xcodebuild failed with code 65 Event 'wdaStartFailed'
Hi getting below error while running appium automation sript for ios device using xcode 14.I tried all th possible solutions but no luck so far. As per below link there is a changes in xcode 14 which support only appium 2,but before trying appium 2 i wanted to confirm once whether this is the actual root cause or there is any other config issue https://forum.katalon.com/t/failed-to-build-webdriveragent-to-deployed-on-ios-16/78524 Below is the complete appium log [info] [35m[Appium][39m Appium v1.22.0 creating new XCUITestDriver (v3.53.1) session [info] [35m[Appium][39m Applying relaxed security to 'XCUITestDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [35m[BaseDriver][39m Creating session with W3C capabilities: { [debug] [35m[BaseDriver][39m "alwaysMatch": { [debug] [35m[BaseDriver][39m "platformName": "ios", [debug] [35m[BaseDriver][39m "appium:VERSION": "15.6.1", [debug] [35m[BaseDriver][39m "appium:automationName": "XCUITest", [debug] [35m[BaseDriver][39m "appium:bundleId": "com.mobisy.bizom", [debug] [35m[BaseDriver][39m "appium:deviceName": "Bizom Iphone", [debug] [35m[BaseDriver][39m "appium:udid": "00008110-001475EE0C80401E", [debug] [35m[BaseDriver][39m "appium:xcodeOrgId": "CM3KB1234", [debug] [35m[BaseDriver][39m "appium:xcodeSigningId": "iPhone Developer" [debug] [35m[BaseDriver][39m }, [debug] [35m[BaseDriver][39m "firstMatch": [ [debug] [35m[BaseDriver][39m {} [debug] [35m[BaseDriver][39m ] [debug] [35m[BaseDriver][39m } [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [35m[iProxy#00008110:8100][39m Connection was refused to port 8100 [info] [35m[WD Proxy][39m socket hang up[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [35m[iProxy#00008110:8100][39m Connection was refused to port 8100 [info] [35m[WD Proxy][39m socket hang up[error] [35m[WebDriverAgent][39m xcodebuild exited with code '65' and signal 'null' [info] [35m[WebDriverAgent][39m Launching WebDriverAgent on the device [info] [35m[WebDriverAgent][39m WebDriverAgent does not need a cleanup. The sources are up to date (1644399105000 >= 1632535255000) [debug] [35m[WebDriverAgent][39m Killing running processes 'xcodebuild.*00008110-001475EE0C80401E' for the device 00008110-001475EE0C80401E...[debug] [35m[WebDriverAgent][39m 'pgrep -if xcodebuild.*00008110-001475EE0C80401E' didn't detect any matching processes. Return code: 1 [debug] [35m[WebDriverAgent][39m Using Xcode configuration file: '/var/folders/nt/rb3yh81n7m543x9rl4996v7c0000gp/T/202303-842-1lzs80g.e5g4/appium-temp.xcconfig' [debug] [35m[WebDriverAgent][39m Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/divya.p/Library/Developer/Xcode/DerivedData/WebDriverAgent-aghlrsejdreqngftgvcqwnjgrbou -destination id=00008110-001475EE0C80401E IPHONEOS_DEPLOYMENT_TARGET=15.6 -xcconfig /var/folders/nt/rb3yh81n7m543x9rl4996v7c0000gp/T/202303-842-1lzs80g.e5g4/appium-temp.xcconfig GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent' [debug] [35m[WebDriverAgent][39m Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [info] [35m[WD Proxy][39m socket hang up[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [35m[iProxy#00008110:8100][39m Connection was refused to port 8100 [info] [35m[WD Proxy][39m socket hang up [error] [35m[WebDriverAgent][39m xcodebuild exited with code '65' and signal 'null' [debug] [35m[BaseDriver][39m Event 'wdaStartFailed' logged at 1672738945363 (15:12:25 GMT+0530 (India Standard Time)) [debug] [35m[XCUITest][39m Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 [debug] [35m[XCUITest][39m xcodebuild error message: [debug] [35m[XCUITest][39m . Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. [warn] [35m[XCUITest][39m Quitting and uninstalling WebDriverAgent [info] [35m[WebDriverAgent][39m Shutting down sub-processes[debug] [35m[WebDriverAgent][39m Uninstalling WDAs: 'com.mobisy.bizom.xctrunner'[error] [35m[XCUITest][39m {} [info] [35m[DevCon Factory][39m Releasing connections for 00008110-001475EE0C80401E device on any port number [info] [35m[DevCon Factory][39m Found cached connections to release: ["00008110-001475EE0C80401E:8100"] [info] [35m[DevCon Factory][39m Releasing the listener for '00008110-001475EE0C80401E:8100' [debug] [35m[iProxy#00008110:8100][39m Closing the connection [debug] [35m[DevCon Factory][39m Cached connections count: 0 [debug] [35m[XCUITest][39m Not clearing log files. Use `clearSystemFiles` capability to turn on. [info] [35m[iProxy#00008110:8100][39m The connection has been closed
Appium-unhandled exception ENOENT is occuring
Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --platform-name Android --platform-version 23 --automation-name Appium --log-no-color info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d) info: Appium REST http interface listener started on 127.0.0.1:4723 info: [debug] Non-default server args: {"address":"127.0.0.1","logNoColors":true,"platformName":"Android","platformVersion":"23","automationName":"Appium"} info: Console LogLevel: debug info: --> POST /wd/hub/session {"capabilities":[{"desiredCapabilities":{"app":"C:/Users/yjaya/Desktop/app-release-unsigned.apk","platformName":"Android","deviceName":"Nexus","platformVersion":"6.0"}},{"requiredCapabilities":{}}],"desiredCapabilities":{"app":"C:/Users/yjaya/Desktop/app-release-unsigned.apk","platformName":"Android","deviceName":"Nexus","platformVersion":"6.0"},"requiredCapabilities":{}} info: Client User-Agent string: Apache-HttpClient/4.5.1 (Java/1.8.0_131) info: [debug] No appActivity desired capability or server param. Parsing from apk. info: [debug] No appPackage desired capability or server param. Parsing from apk. info: [debug] Using local app from desired caps: C:\Users\yjaya\Desktop\app-release-unsigned.apk info: [debug] Creating new appium session f7d1277d-e625-4bc1-a4ad-4902bb5ed25b info: Starting android appium info: [debug] Getting Java version info: Java version is: 1.8.0_131 info: [debug] Checking whether adb is present info: [debug] Using adb from C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe info: [debug] Parsing package and activity from app manifest info: [debug] Checking whether aapt is present info: [debug] Using aapt from C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe info: [debug] Extracting package and launch activity from manifest. info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe dump badging C:\Users\yjaya\Desktop\app-release-unsigned.apk info: [debug] badging package: com.indsci.iassign info: [debug] badging act: com.indsci.iassign.HomeActivity info: [debug] Parsed package and activity are: com.indsci.iassign/com.indsci.iassign.HomeActivity info: [debug] Using fast reset? true info: [debug] Preparing device for session info: [debug] Checking whether app is actually present info: Retrieving device info: [debug] Trying to find a connected android device info: [debug] Getting connected devices... info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe devices info: [debug] 1 device(s) connected info: Found device emulator-5554 info: [debug] Setting device id to emulator-5554 info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5) info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 wait-for-device info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell "echo 'ready'" info: [debug] Starting logcat capture info: [debug] Getting device API level info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell "getprop ro.build.version.sdk" info: [debug] Device is at API Level 23 info: Device API level is: 23 info: [debug] Extracting strings for language: default info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell "getprop persist.sys.language" info: [debug] Current device persist.sys.language: info: [debug] java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\Users\yjaya\Desktop\app-release-unsigned.apk" "C:\Users\yjaya\AppData\Local\Temp;C:\Program Files\Java\jre1.8.0_121\bin\com.indsci.iassign" info: [debug] No strings.xml for language '', getting default strings.xml info: [debug] java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\Users\yjaya\Desktop\app-release-unsigned.apk" "C:\Users\yjaya\AppData\Local\Temp;C:\Program Files\Java\jre1.8.0_121\bin\com.indsci.iassign" warn: Error getting strings.xml from apk info: [debug] Exception in thread "main" java.lang.Exception: Output is not an existing readable directory. at io.appium.apktools.StringsXML.e(StringsXML.java:112) at io.appium.apktools.Main.main(Main.java:23) warn: Could not get strings, continuing anyway info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell "echo '{}' > /data/local/tmp/strings.json" info: [debug] Checking whether aapt is present info: [debug] Using aapt from C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe info: [debug] Retrieving process from manifest. info: [debug] executing cmd: C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe dump xmltree C:\Users\yjaya\Desktop\app-release-unsigned.apk AndroidManifest.xml info: [debug] Set app process to: com.indsci.iassign info: [debug] Not uninstalling app since server not started with --full-reset info: [debug] Checking app cert for C:\Users\yjaya\Desktop\app-release-unsigned.apk. info: [debug] executing cmd: java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar" C:\Users\yjaya\Desktop\app-release-unsigned.apk info: [debug] App already signed. info: [debug] Zip-aligning C:\Users\yjaya\Desktop\app-release-unsigned.apk info: [debug] Checking whether zipalign is present info: [debug] Using zipalign from C:\Users\yjaya\AppData\Local\Android\sdk\build-tools\25.0.3\zipalign.exe > error: Unhandled error: Error: ENOENT, no such file or directory 'C:\Users\yjaya\AppData\Local\Temp;C:\ProgramFiles\Java\jre1.8.0_121\bin\117522-13276-xudx2z' at Error (native) at Object.fs.mkdirSync (fs.js:747:18) at tempDir (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\node_modules\appium-support\lib\tempdir.js:21:8) at Object.generateName [as path] (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\node_modules\appium-support\lib\tempdir.js:29:20) at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:460:30) at [object Object].ADB.checkSdkBinaryPresent (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:116:5) at [object Object].ADB.checkZipAlignPresent (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:146:8) at [object Object].ADB.zipAlignApk (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:457:8) at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:496:10) at ChildProcess.exithandler (child_process.js:742:7) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1016:16) at Process.ChildProcess._handle.onexit (child_process.js:1088:5) context: [POST /wd/hub/session {"capabilities":[{"desiredCapabilities":{"app":"C:/Users/yjaya/Desktop/app-release-unsigned.apk","platformName":"Android","deviceName":"Nexus","platformVersion":"6.0"}},{"requiredCapabilities":{}}],"d] Also have done adding Environment variables with sdk path..Still getting the above error. Can anyone please help me on this.
Appium Inspector not able to load image
Details : Appium 1.4.13 ; Mac OSX While this feature was working fine until some time back before the 1.4.13 was released but ever since then I am unable to refresh the view of the Appium Inspector for my application. The hierarchy is loaded but the IMAGE is not displayed. Even on clicking Refresh the following logs are generated : 2015-11-20 06:16:33:244 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/source {} 2015-11-20 06:16:33:244 - info: [debug] Pushing command to appium work queue: ["source",{}] 2015-11-20 06:16:33:248 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"source","params":{}} 2015-11-20 06:16:33:248 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION 2015-11-20 06:16:33:248 - info: [debug] [BOOTSTRAP] [debug] Got command action: source 2015-11-20 06:16:33:259 - info: [debug] [UIAUTOMATOR STDOUT] [APPIUM-UIAUTO] [debug] Returning result: {"status":0,"value":" esc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\ 2015-11-20 06:16:33:260 - info: [debug] [UIAUTOMATOR STDOUT] "true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[15,169][753,188]\" resource-id=\"\" instance=\"0\"/></android.widget.RelativeLayout></android.widget.LinearLayout> content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-c 2015-11-20 06:16:33:262 - info: [debug] Stream still not complete, waiting 2015-11-20 06:16:33:262 - info: [debug] [UIAUTOMATOR STDOUT] lickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[15,326][753,366]\" resource-id=\"com.flipkart.android:id/btn_mlogin\" instance=\"3\"/></android.widget.LinearLayout></android.widget.ScrollView></android.widget.RelativeLayout></android.widget.LinearLayout></android.widget.ViewSwitcher></android.widget.FrameLayout></android.widget.LinearLayout></android.widget.FrameLayout></hierarchy>"}[/APPIUM-UIAUTO] 2015-11-20 06:16:33:265 - info: [debug] Stream still not complete, waiting 2015-11-20 06:16:33:266 - info: [debug] Responding to client with success: {"status":0,"value":" 2015-11-20 06:16:33:267 - info: <-- GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/source 200 23.308 ms - 9023 {"status":0,"value":" 2015-11-20 06:16:33:269 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/orientation {} 2015-11-20 06:16:33:270 - info: [debug] Pushing command to appium work queue: ["orientation",{}] 2015-11-20 06:16:33:273 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"orientation","params":{}} 2015-11-20 06:16:33:273 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION 2015-11-20 06:16:33:274 - info: [debug] [BOOTSTRAP] [debug] Got command action: orientation 2015-11-20 06:16:33:274 - info: [debug] [BOOTSTRAP] [debug] Current rotation: ROTATION_0 2015-11-20 06:16:33:274 - info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"PORTRAIT"} 2015-11-20 06:16:33:274 - info: [debug] Responding to client with success: {"status":0,"value":"PORTRAIT","sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:275 - info: <-- GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/orientation 200 5.853 ms - 82 {"status":0,"value":"PORTRAIT","sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:277 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/screenshot {} 2015-11-20 06:16:33:278 - info: [debug] executing cmd: /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s 192.168.56.101:5555 shell "/system/bin/rm /data/local/tmp/screenshot.png; /system/bin/screencap -p /data/local/tmp/screenshot.png " 2015-11-20 06:16:33:354 - info: [debug] executing cmd: /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s 192.168.56.101:5555 pull /data/local/tmp/screenshot.png "/var/folders/9_/zhwc774n3kx8k1g7s_n3q9n15by3jh/T/appium1151020-1782-57al17.png" 2015-11-20 06:16:33:394 - info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:395 - info: <-- GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/screenshot 200 118.561 ms - 74 {"status":0,"value":"","sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:398 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/contexts {} 2015-11-20 06:16:33:398 - info: [debug] Getting a list of available webviews 2015-11-20 06:16:33:398 - info: [debug] executing cmd: /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s 192.168.56.101:5555 shell "cat /proc/net/unix" 2015-11-20 06:16:33:442 - info: [debug] WEBVIEW_3598 mapped to pid 3598 2015-11-20 06:16:33:442 - info: [debug] Getting process name for webview 2015-11-20 06:16:33:443 - info: [debug] executing cmd: /Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s 192.168.56.101:5555 shell "ps" 2015-11-20 06:16:33:485 - info: [debug] Parsed pid: 3598 pkg: com.flipkart.android 2015-11-20 06:16:33:486 - info: [debug] from: u0_a67,3598,465,1106360,97644,ffffffff,b7577d05,S,com.flipkart.android 2015-11-20 06:16:33:486 - info: [debug] returning process name: com.flipkart.android 2015-11-20 06:16:33:486 - info: [debug] Available contexts: NATIVE_APP,WEBVIEW_com.flipkart.android 2015-11-20 06:16:33:486 - info: [debug] ["WEBVIEW_com.flipkart.android"] 2015-11-20 06:16:33:486 - info: [debug] Available contexts: NATIVE_APP,WEBVIEW_com.flipkart.android 2015-11-20 06:16:33:487 - info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP","WEBVIEW_com.flipkart.android"],"sessionId":"95abc888-6917-45c7-b004-155de500244e"} 2015-11-20 06:16:33:488 - info: <-- GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/contexts 200 90.058 ms - 117 {"status":0,"value":["NATIVE_APP","WEBVIEW_com.flipkart.android"],"sessionId":"95abc888-6917-45c7-b004-155de500244e"}
The issue was with the installation of the Appium itself. Tried to upgrade the app from 1.4.8 to 1.4.13 instead of installing the app from a .dmg for 1.4.13.
iOS Hybrid App -Appium click() is not working
I just setup Appium 1.3.6 to test my hybrid cordova iOS app on iPhone Simulator. Able to find button element and its Text, width,Height.But click() is not working.But I am getting 200 success response for click. Please check the appium logs below. Welcome to Appium v1.3.6 (REV 004f52f249d3513809e7d0734d9205d1fec19f8e) info: Appium REST http interface listener started on 0.0.0.0:4723 info: Console LogLevel: debug info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"}} info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5) info: [debug] Using local app from desired caps: /Users/rajesh.madaswamy/Fly dotREZ.app info: [debug] Creating new appium session e385db7f-319a-4c0c-888b-1cc14c415879 info: [debug] Removing any remaining instruments sockets info: [debug] Cleaned up instruments socket /tmp/instruments_sock info: [debug] Setting Xcode folder info: [debug] Setting Xcode version info: [debug] Setting iOS SDK Version info: [debug] Getting sdk version from xcrun with a timeout info: [debug] iOS SDK Version set to 7.0 info: [debug] Instruments v < 7.1, not checking device string support info: [debug] Detecting automation tracetemplate info: [debug] Not auto-detecting udid, running on sim info: [debug] Parsed app Info.plist (as binary) info: [debug] Parsed app Localizable.strings info: [debug] Getting bundle ID from app info: [debug] Parsed app Info.plist (as binary) info: [debug] Creating instruments info: [debug] Preparing uiauto bootstrap info: [debug] Dynamic bootstrap dir: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap info: [debug] Dynamic env: {"nodePath":"/usr/local/bin/node","commandProxyClientPath":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"oneByOne"} info: [debug] Dynamic bootstrap code: // This file is automatically generated. D...ot manually modify! info: [debug] Dynamic bootstrap path: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js info: [debug] Reusing dynamic bootstrap: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"} info: [debug] fixDevice is on info: [debug] Final device string is: 'iPhone' info: [debug] Parsed app Info.plist (as binary) info: [debug] Wrote new app Info.plist with device type info: [debug] Checking whether we need to set app preferences info: [debug] Running ios sim reset flow info: [debug] Killing the simulator process info: [debug] Killall iPhoneSimulator info: [debug] Killing any other simulator daemons info: [debug] Cleaning sim data files info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/TCC info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Caches/locationd info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/BackBoard/applicationState.plist info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Media info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Keychains info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/TCC info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Caches/locationd info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/BackBoard/applicationState.plist info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Media info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Keychains info: [debug] Cleaning sim preferences info: [debug] Cleaning app data files info: Couldn't find app directories to delete. Probably it's not installed info: [debug] Not setting locale info: [debug] No iOS / app preferences to set info: [debug] Starting iOS 7.* simulator log capture info: [debug] Pre-launching simulator info: [debug] Killing the simulator process info: [debug] Killall iPhoneSimulator info: [debug] Killing any other simulator daemons info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"} info: [debug] fixDevice is on info: [debug] Final device string is: 'iPhone' info: [debug] Launching device: iPhone info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"} info: [debug] fixDevice is on info: [debug] Final device string is: 'iPhone' info: [debug] Simulator is now ready. info: [debug] No device id or app, not installing to real device. info: [debug] Starting command proxy. info: [debug] Instruments socket server started at /tmp/instruments_sock info: [debug] Starting instruments info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments info: Launching instruments info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace "/Users/rajesh.madaswamy/Fly dotREZ.app" -e UIASCRIPT "/Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js" -e UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd5/InstrumentsShim.dylib","LIB_PATH":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd5"} info: [debug] And launch timeouts (in ms): {"global":90000} info: [debug] [INST STDERR] 2015-03-13 17:57:19.701 ScriptAgent[30296:2d07] CLTilesManagerClient: initialize, sSharedTilesManagerClient info: [debug] [INST STDERR] 2015-03-13 17:57:19.702 ScriptAgent[30296:2d07] CLTilesManagerClient: init 2015-03-13 17:57:19.703 ScriptAgent[30296:2d07] CLTilesManagerClient: reconnecting, 0x9472910 info: Instruments is ready to receive commands info: [debug] Instruments launched. Starting poll loop for new commands. info: [debug] Setting bootstrap config keys/values info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n" info: [debug] Socket data received (2 bytes) info: [debug] Socket data being routed. info: [debug] Sending command to instruments: target = $.target(); au = $; $.isVerbose = true; info: [debug] Socket data received (27 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":true} info: [debug] Setting initial orientation to PORTRAIT info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')" info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT') info: [debug] Socket data received (33 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"} info: [debug] Waiting for app source to contain elements info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()" info: [debug] Sending command to instruments: au.mainApp().getTreeForXML() info: [debug] Socket data received (3339 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"#":{"name":"Fly dotREZ","label":"Fly dotREZ","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":0,"y":20,"width":320,"height":548},">":[{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":tr info: [debug] Device launched! Ready for commands info: [debug] Setting command timeout to the default of 60 secs info: [debug] Appium session started with sessionId e385db7f-319a-4c0c-888b-1cc14c415879 info: <-- POST /wd/hub/session 303 8761.761 ms - 9 info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 {} info: [debug] Responding to client with success: {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 200 4.339 ms - 586 {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/contexts {} info: [debug] [REMOTE] Debugger socket connected to ::1:27753 info: [debug] [REMOTE] Sending connection key info: [debug] [REMOTE] Sending _rpc_reportIdentifier: message to remote debugger info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13"},"__selector":"_rpc_reportIdentifier:"} info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__selector":"_rpc_reportSetup:","__argument":{"WIRSimulatorNameKey":"iPhone Simulator","WIRSimulatorProductVersionKey":"7.0.3","WIRSimulatorBuildKey":"11B508"}} info: [debug] [REMOTE] Sim name: iPhone Simulator info: [debug] [REMOTE] Sim build: 11B508 info: [debug] [REMOTE] {"__selector":"_rpc_reportConnectedApplicationList:","__argument":{"WIRApplicationDictionaryKey":{"com.accenture.londonVoyage-Extension":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRApplicationNameKey":"Fly dotREZ","WIRIsApplicationProxyKey":false}}}} info: [debug] Using remote debugger app key: com.accenture.londonVoyage-Extension info: [debug] [REMOTE] Selecting app com.accenture.londonVoyage-Extension (try #1) info: [debug] [REMOTE] function () { [native code] } info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension"},"__selector":"_rpc_forwardGetListing:"} info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"NavAir","WIRURLKey":"file:///Users/rajesh.madaswamy/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F/Fly%20dotREZ.app/www/index.html"}}}} info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/contexts 200 14.960 ms - 98 {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/context {"name":"WEBVIEW_1"} info: [debug] Attempting to set context to 'WEBVIEW_1' info: [debug] [REMOTE] Selecting page 1 and forwarding socket setup info: [debug] [REMOTE] Sending _rpc_forwardSocketSetup: message to remote debugger info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRSenderKey":"7f6f5954-242e-42aa-a96b-5686585201f0","WIRPageIdentifierKey":1},"__selector":"_rpc_forwardSocketSetup:"} info: [debug] [REMOTE] Set sender key info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] [REMOTE] Enabled activity on page info: [debug] [REMOTE] Checking document readyState info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] [REMOTE] readyState was complete info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/context 200 23.866 ms - 74 {"status":0,"value":"","sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element {"using":"class name","value":"x-button-normal"} info: [debug] Waiting up to 0ms for condition info: [debug] [REMOTE] Executing 'find_element' atom in default context info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element 200 13.041 ms - 90 {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5000/displayed {} info: [debug] [REMOTE] Executing 'is_displayed' atom in default context info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5000/displayed 200 17.283 ms - 76 {"status":0,"value":true,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRURLKey":"file:///Users/rajesh.madaswamy/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F/Fly%20dotREZ.app/www/index.html","WIRTitleKey":"NavAir","WIRPageIdentifierKey":1}}}} info: [debug] Remote debugger notified us of a new page listing info: [debug] New page listing is same as old, doing nothing info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] [REMOTE] Got a blank data response from debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] [REMOTE] Got a blank data response from debugger info: [debug] [INST STDERR] 2015-03-13 17:57:25.264 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: script status is 2 info: [debug] [INST STDERR] 2015-03-13 17:57:25.264 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: Calling onAlert info: [debug] [INST STDERR] 2015-03-13 17:57:25.266 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: Call to onAlert returned 'YES' info: [debug] Emiting alert message... info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element {"using":"class name","value":"x-button-normal"} info: [debug] Waiting up to 0ms for condition info: [debug] [REMOTE] Executing 'find_element' atom in default context info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element 200 8.367 ms - 90 {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5001/click {"id":"5001"} info: [debug] [REMOTE] Executing 'click' atom in default context info: [debug] [REMOTE] Sending javascript command info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] got applicationSentData response info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5001/click 200 24.389 ms - 76 {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: --> DELETE /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 {} info: Shutting down appium session info: [debug] Stopping ios info: [debug] Destroying instruments client socket. info: [debug] Closing socket server. info: [debug] Instruments socket server was closed info: [debug] Sending sigterm to instruments info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__selector":"_rpc_applicationDisconnected:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRApplicationNameKey":"Fly dotREZ","WIRIsApplicationProxyKey":false}} info: [debug] [INST] 2015-03-13 12:27:20 +0000 Debug: evaluation finished 2015-03-13 12:27:20 +0000 Debug: responding with: 2015-03-13 12:27:20 +0000 Debug: Running system command #1: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":true}... 2015-03-13 12:27:20 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT') 2015-03-13 12:27:20 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT') 2015-03-13 12:27:20 +0000 Debug: target.setDeviceOrientation("1") 2015-03-13 12:27:20 +0000 Debug: evaluation finished 2015-03-13 12:27:20 +0000 Debug: responding with: 2015-03-13 12:27:20 +0000 Debug: Running system command #2: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}... 2015-03-13 12:27:20 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML() 2015-03-13 12:27:20 +0000 Debug: evaluating au.mainApp().getTreeForXML() 2015-03-13 12:27:20 +0000 Debug: evaluation finished 2015-03-13 12:27:20 +0000 Debug: responding with:ue,"valid":true,"visible":true,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[{"UIAImage":{"#":{"name":"Default-568h","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/0","x":0,"y":0,"width":320,"height":568},">":[]}},{"UIAScrollView":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1","x":0,"y":20,"width":320,"height":548},">":[{"UIAWebView":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/1/0","x":0,"y":20,"width":320,"height":548},">":[]}}]}},{"UIAImage":{"#":{"name":"loading_ani.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/2","x":125.5,"y":249,"width":69,"height":70},">":[]}},{"UIAImage":{"#":{"name":"loading_ani_plane.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/3","x":138.5,"y":275.5,"width":43,"height":17},">":[]}}]}},{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1","x":0,"y":0,"width":320,"height":568},">":[{"UIAStatusBar":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0","x":0,"y":0,"width":320,"height":20},">":[{"UIAElement":{"#":{"name":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/0","x":6,"y":0,"width":38,"height":20},">":[]}},{"UIAElement":{"#":{"name":"3 of 3 Wi-Fi bars","label":"3 of 3 Wi-Fi bars","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/1","x":49,"y":0,"width":13,"height":20},">":[]}},{"UIAElement":{"#":{"name":"5:57 PM","label":"5:57 PM","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/2","x":137,"y":0,"width":47,"height":20},">":[]}},{"UIAElement":{"#":{"name":"100% battery power","label":"100% battery power","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/3","x":290,"y":0,"width":25,"height":20},">":[]}}]}}]}}]}}} 2015-03-13 12:27:20 +0000 Debug: Running system command #3: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"#":{"name":"Fly dotREZ","label":"Fly dotREZ","value":null,"dom":null,"enabled":true,"valid":true,"v... 2015-03-13 12:27:30 +0000 Stopped: Script was stopped by the user Instruments Trace Complete (Duration : 15.250390s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Cleaning up after instruments exit info: [debug] Stopping iOS log capture info: [debug] [REMOTE] Disconnecting from remote debugger info: [debug] Running ios sim reset flow info: [debug] Killing the simulator process info: [debug] Killing any other simulator daemons info: [debug] [REMOTE] Debugger socket disconnected info: [debug] Cleaning sim data files info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/TCC info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Caches/locationd info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/BackBoard/applicationState.plist info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Media info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Keychains info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/TCC info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Caches/locationd info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/BackBoard/applicationState.plist info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Media info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Keychains info: [debug] Cleaning sim preferences info: [debug] Clearing key: SimulateDevice info: [debug] Writing new preferences plist data info: [debug] Cleaning app data files info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F info: [debug] Cleaning up appium session info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"} info: <-- DELETE /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 200 317.723 ms - 76 {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
Try next method: Let driver be Selenium::WebDriver instance, and el your element: On Ruby: driver.action.move_to(el, 0, 30).click.perform
Return Code 401 with Maven 3 uploading SNAPSHOT to Artifactory
I am running the following: Apache Maven 3.0.5, Artifactory(Open-Source) 3.1.0 No Jenkins/Hudson, just the default Artifactory setup. Excerpt from pom.xml: <distributionManagement> <repository> <id>ServerA2</id> <name>ServerA2-releases</name> <url>http://192.168.1.16:8081/artifactory/libs-release-local</url> </repository> <snapshotRepository> <id>ServerA2</id> <name>ServerA2-snapshots</name> <url>http://192.168.1.16:8081/artifactory/libs-snapshot-local</url> </snapshotRepository> </distributionManagement> Excerpt from settings.xml: <?xml version="1.0" encoding="UTF-8"?> <settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <servers> <server> <username>admin</username> <password>XXX</password> <id>central</id> </server> <server> <username>admin</username> <password>XXX</password> <id>snapshots</id> </server> <server> <username>admin</username> <password>XXX</password> <id>ServerA2</id> </server> </servers> <profiles> <profile> <repositories> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>libs-release</name> <url>http://192.168.1.16:8081/artifactory/libs-release</url> </repository> <repository> <snapshots /> <id>snapshots</id> <name>libs-snapshot</name> <url>http://192.168.1.16:8081/artifactory/libs-snapshot</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>plugins-release</name> <url>http://192.168.1.16:8081/artifactory/plugins-release</url> </pluginRepository> <pluginRepository> <snapshots /> <id>snapshots</id> <name>plugins-snapshot</name> <url>http://192.168.1.16:8081/artifactory/plugins-snapshot</url> </pluginRepository> </pluginRepositories> <id>artifactory</id> </profile> </profiles> <activeProfiles> <activeProfile>artifactory</activeProfile> </activeProfiles> </settings> Now to the problem: I have no problems doing mvn deploy when I set the version in pom.xml to <version>1.0</version>. The Artifact was uploaded successfully But I encounter the following error when I set the version in pom.xml to <version>1.0-SNAPSHOT</version> Output from mvn clean deploy -X -e [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) # pinder --- [DEBUG] org.apache.maven.plugins:maven-deploy-plugin:jar:2.7: [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile [DEBUG] junit:junit:jar:3.8.1:compile [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile [DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7 [DEBUG] Imported: < project>sg.com.pinder:pinder:0.0.1-SNAPSHOT [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7 [DEBUG] Included: org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 [DEBUG] Included: junit:junit:jar:3.8.1 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.6 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6 [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 [DEBUG] Excluded: classworlds:classworlds:jar:1.1-alpha-2 [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.6 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7, parent: sun.misc.Launcher$AppClassLoader#645ad7b2] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy' with basic configurator --> [DEBUG] (f) artifact = sg.com.pinder:pinder:jar:0.0.1-SNAPSHOT [DEBUG] (f) attachedArtifacts = [] [DEBUG] (s) localRepository = id: local url: file:///home/Eric_Vader/.m2/repository/ layout: none [DEBUG] (f) offline = false [DEBUG] (f) packaging = jar [DEBUG] (f) pomFile = /home/Eric_Vader/workspace/pinder/pom.xml [DEBUG] (f) project = MavenProject: sg.com.pinder:pinder:0.0.1-SNAPSHOT # /home/Eric_Vader/workspace/pinder/pom.xml [DEBUG] (f) retryFailedDeploymentCount = 1 [DEBUG] (f) skip = false [DEBUG] (f) updateReleaseInfo = false [DEBUG] -- end configuration -- [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://192.168.1.16:8081/artifactory/libs-snapshot-local as admin Downloading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/maven-metadata.xml [DEBUG] Could not find metadata sg.com.pinder:pinder:0.0.1-SNAPSHOT/maven-metadata.xml in ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local) [DEBUG] Writing resolution tracking file /home/Eric_Vader/.m2/repository/sg/com/pinder/pinder/0.0.1-SNAPSHOT/resolver-status.properties Uploading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar Uploading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.000s [INFO] Finished at: Fri Dec 27 16:48:15 SGT 2013 [INFO] Final Memory: 18M/216M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project pinder: Failed to deploy artifacts: Could not transfer artifact sg.com.pinder:pinder:jar:0.0.1-20131227.084815-1 from/to ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local): Failed to transfer file: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar. Return code is: 401 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project pinder: Failed to deploy artifacts: Could not transfer artifact sg.com.pinder:pinder:jar:0.0.1-20131227.084815-1 from/to ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local): Failed to transfer file: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar. Return code is: 401 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 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:320) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:414) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact sg.com.pinder:pinder:jar:0.0.1-20131227.084815-1 from/to ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local): Failed to transfer file: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar. Return code is: 401 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:193) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact sg.com.pinder:pinder:jar:0.0.1-20131227.084815-1 from/to ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local): Failed to transfer file: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar. Return code is: 401 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:157) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact sg.com.pinder:pinder:jar:0.0.1-20131227.084815-1 from/to ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local): Failed to transfer file: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar. Return code is: 401 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:280) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 23 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact sg.com.pinder:pinder:jar:0.0.1-20131227.084815-1 from/to ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local): Failed to transfer file: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar. Return code is: 401 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:939) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:837) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:467) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:274) ... 26 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar. Return code is: 401 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:257) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:423) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:402) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:376) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:811) ... 28 more [ERROR] [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/MojoExecutionException Excerpt from access.log: 2013-12-27 16:48:15,328 [DENIED DEPLOY] libs-snapshot-local:sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.jar for anonymous/192.168.1.164. 2013-12-27 16:48:15,335 [DENIED DEPLOY] libs-snapshot-local:sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20131227.084815-1.pom for anonymous/192.168.1.164. I tried most of the things suggested by other similar questions like: trying setting the Maven Snapshot Version Behavior setting, snapshot tag in settings.xml. One thing to note is that the log on the Artifactory server does not log anything when the error occur.
That's what's going on - you have 2 repositories under the id central - both libs-release-local (in distributionManagement) and libs-release (in settings). Same for snapshots. That drives Maven crazy in some unpredicted ways (Maven good in that). So, shadowing central and snapshots in settings is the right way to go, but repositories in distributionManagement should be called differently. I can suggest you copying the respective snippets from repository page in Artifactory:
Okay, i have figured out a fix for this. Go to the Artifactory admin page at port 8081(default) navigate to: Admin -> Security -> General Ensure that the checkbox next to Allow Anonymous Access is UNCHECKED. Next, make sure you have the appropriate login information in the settings.xml to access your repository for read and write access. Doing that fixed this issue for me. CHEERS. [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://192.168.1.16:8081/artifactory/libs-snapshot-local as admin Downloading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/maven-metadata.xml [DEBUG] Could not find metadata sg.com.pinder:pinder:0.0.1-SNAPSHOT/maven-metadata.xml in ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local) [DEBUG] Writing resolution tracking file /home/Eric_Vader/.m2/repository/sg/com/pinder/pinder/0.0.1-SNAPSHOT/resolver-status.properties Uploading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20140101.065126-1.jar Uploaded: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20140101.065126-1.jar (2 KB at 11.1 KB/sec) Uploading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20140101.065126-1.pom Uploaded: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/pinder-0.0.1-20140101.065126-1.pom (2 KB at 18.4 KB/sec) Downloading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/maven-metadata.xml [DEBUG] Could not find metadata sg.com.pinder:pinder/maven-metadata.xml in ServerA2 (http://192.168.1.16:8081/artifactory/libs-snapshot-local) [DEBUG] Writing resolution tracking file /home/Eric_Vader/.m2/repository/sg/com/pinder/pinder/resolver-status.properties Uploading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/maven-metadata.xml Uploaded: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/0.0.1-SNAPSHOT/maven-metadata.xml (769 B at 8.3 KB/sec) Uploading: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/maven-metadata.xml Uploaded: http://192.168.1.16:8081/artifactory/libs-snapshot-local/sg/com/pinder/pinder/maven-metadata.xml (279 B at 3.0 KB/sec) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.890s [INFO] Finished at: Wed Jan 01 14:51:27 SGT 2014 [INFO] Final Memory: 11M/216M [INFO] ------------------------------------------------------------------------
I had a similar error but was caused by the maven-source-plugin. The fix was to remove the "executions" from the child pom. Looks like some issue with jar and jar-no-fork running twice. I worked around it as follows: Left parent pom with <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.1.2</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> and changed child pom from: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> to: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> </plugin>
in web UI, go to http://ip:8081/artifactory/webapp/#/profile . enter the password to unlock. Copy the Encrypted Password. in settings.xml in <password> set the encrypted password without " . my problem solved with this way.