Hi @Abdul_Sathar_Beigh,
I am getting below mentioned error for my code on executing the maven command in my workspace through cmd prompt: mvn clean package
Can u pls help me on this asap:
PA-MAC-013:utelly qa$ mvn clean package
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building utelly 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ utelly —
[INFO] Deleting /Users/qa/Documents/workspace/utelly/target
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ utelly —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/qa/Documents/workspace/utelly/src/main/resources
[INFO]
[INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ utelly —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ utelly —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/qa/Documents/workspace/utelly/src/test/resources
[INFO]
[INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ utelly —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /Users/qa/Documents/workspace/utelly/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[2,25] package org.testng does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[2,1] static import only from classes and interfaces
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[6,27] package org.openqa.selenium does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[7,27] package org.openqa.selenium does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[8,27] package org.openqa.selenium does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[9,34] package org.openqa.selenium.remote does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[10,34] package org.openqa.selenium.remote does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[11,1] package org.testng.annotations does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[12,1] package org.testng does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[13,1] package org.openqa.selenium does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[14,1] package org.openqa.selenium.remote does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[15,1] package org.testng.annotations does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[20,9] cannot find symbol
symbol: class WebDriver
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[21,10] cannot find symbol
symbol: class BeforeClass
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[42,18] cannot find symbol
symbol: class Test
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[107,18] cannot find symbol
symbol: class AfterClass
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[25,21] cannot find symbol
symbol: class DesiredCapabilities
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[25,60] cannot find symbol
symbol: class DesiredCapabilities
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[38,34] cannot find symbol
symbol: class RemoteWebDriver
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[48,25] cannot find symbol
symbol: class WebElement
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[48,62] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[53,25] cannot find symbol
symbol: class WebElement
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[53,66] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[56,61] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[57,25] cannot find symbol
symbol: method assertTrue(boolean)
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[62,25] cannot find symbol
symbol: class WebElement
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[62,69] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[65,65] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[66,25] cannot find symbol
symbol: method assertTrue(boolean)
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[68,44] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[73,25] cannot find symbol
symbol: class WebElement
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[73,65] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[76,68] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[77,25] cannot find symbol
symbol: method assertTrue(boolean)
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[79,25] cannot find symbol
symbol: class WebElement
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[79,62] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[85,25] cannot find symbol
symbol: class WebElement
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[85,70] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[87,66] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[88,25] cannot find symbol
symbol: method assertTrue(boolean)
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[93,25] cannot find symbol
symbol: class WebElement
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[93,76] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[96,68] cannot find symbol
symbol: variable By
location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[97,25] cannot find symbol
symbol: method assertTrue(boolean)
location: class com.appium.utelly.GetStartedScreen
[INFO] 44 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.815 s
[INFO] Finished at: 2017-03-14T18:11:19+05:30
[INFO] Final Memory: 15M/183M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project utelly: Compilation failure: Compilation failure:
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[2,25] package org.testng does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[2,1] static import only from classes and interfaces
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[6,27] package org.openqa.selenium does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[7,27] package org.openqa.selenium does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[8,27] package org.openqa.selenium does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[9,34] package org.openqa.selenium.remote does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[10,34] package org.openqa.selenium.remote does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[11,1] package org.testng.annotations does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[12,1] package org.testng does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[13,1] package org.openqa.selenium does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[14,1] package org.openqa.selenium.remote does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[15,1] package org.testng.annotations does not exist
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[20,9] cannot find symbol
[ERROR] symbol: class WebDriver
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[21,10] cannot find symbol
[ERROR] symbol: class BeforeClass
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[42,18] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[107,18] cannot find symbol
[ERROR] symbol: class AfterClass
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[25,21] cannot find symbol
[ERROR] symbol: class DesiredCapabilities
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[25,60] cannot find symbol
[ERROR] symbol: class DesiredCapabilities
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[38,34] cannot find symbol
[ERROR] symbol: class RemoteWebDriver
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[48,25] cannot find symbol
[ERROR] symbol: class WebElement
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[48,62] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[53,25] cannot find symbol
[ERROR] symbol: class WebElement
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[53,66] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[56,61] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[57,25] cannot find symbol
[ERROR] symbol: method assertTrue(boolean)
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[62,25] cannot find symbol
[ERROR] symbol: class WebElement
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[62,69] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[65,65] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[66,25] cannot find symbol
[ERROR] symbol: method assertTrue(boolean)
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[68,44] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[73,25] cannot find symbol
[ERROR] symbol: class WebElement
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[73,65] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[76,68] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[77,25] cannot find symbol
[ERROR] symbol: method assertTrue(boolean)
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[79,25] cannot find symbol
[ERROR] symbol: class WebElement
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[79,62] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[85,25] cannot find symbol
[ERROR] symbol: class WebElement
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[85,70] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[87,66] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[88,25] cannot find symbol
[ERROR] symbol: method assertTrue(boolean)
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[93,25] cannot find symbol
[ERROR] symbol: class WebElement
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[93,76] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[96,68] cannot find symbol
[ERROR] symbol: variable By
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] /Users/qa/Documents/workspace/utelly/src/test/java/com/appium/utelly/GetStartedScreen.java:[97,25] cannot find symbol
[ERROR] symbol: method assertTrue(boolean)
[ERROR] location: class com.appium.utelly.GetStartedScreen
[ERROR] -> [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/MojoFailureException
PA-MAC-013:utelly qa$