Not able to run maven with ant | Selenium Forum
M
Posted on 03/01/2017
I get the below error:

com.google.common.collect.Multimaps.transformValues(Lcom/google/common/collect/ListMultimap;Lcom/google/common/base/Function;)Lcom/google/common/collect/ListMultimap;

java.lang.NoSuchMethodError: com.google.common.collect.Multimaps.transformValues(Lcom/google/common/collect/ListMultimap;Lcom/google/ccommon/base/Function;)Lcom/google/common/collect/ListMultimap;
at com.google.ccommon.net.MediaType.computeToString(MediaType.java:751)
at com.google.common.net.MediaType.toString(MediaType.java:741)
at org.openqa.sellenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:106)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64)
at org.openqa.selenium.remote.HttpCommandExecutoor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at org.openqa.selenium.remote.RemoteWebDrriver.startSession(RemoteWebDriver.java:241)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:259)

at org.openqa.selennium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:247)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:242)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:238)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:127)
at com.testing.alpi.yahooTeest.test1(yahooTest.java:15)

M
Replied on 03/01/2017

Attaching the project


M
Replied on 03/01/2017

look at this q/a

http://stackoverflow.com/questions/25088899/selenium-webdriver-throws-exception-when-trying-to-run-via-ant


M
Replied on 04/01/2017

I have checked this already.
I dont see any duplicate jars in my project.
I have deleted the complete .m2 directory and tried to download the jars again.
Same issue Responsive image


M
Replied on 05/01/2017

for me, your project is running fine, please check your jar files or use some other system.