[quote="qtpselenium.supp0rt@gmail.com":26o9tjvk]upload your project.[/quote:26o9tjvk]
I have attached the project as zip file.[attachment=0:26o9tjvk]MyMavenProject.zip[/attachment:26o9tjvk]
try this
http://stackoverflow.com/questions/2805574/yet-another-ant-junit-classpath-problem
[quote="qtpselenium.supp0rt@gmail.com":1armlby5]try this
http://stackoverflow.com/questions/2805574/yet-another-ant-junit-classpath-problem[/quote:1armlby5]
Thanks, but i'm unable to understand the posted solution
[quote:1armlby5]I had the same problem 'multiple versions of ant detected in path for junit'. The problem went away when I renamed by Eclipse_Home directory and removed special characters from it. The path had '[1]' in it which was causing the problem.[/quote:1armlby5]
have you tried this
[quote:1okdxnjn]I was getting this only when using the 'fork=true' option to the junit task. It was happening because my ANT_HOME had '..' in it (e.g. '/3rdparth/jboss/jboss-5/../tools'). Once I reduced that path, the 'multiple versions of ant' warning went away.[/quote:1okdxnjn]
[quote="qtpselenium.supp0rt@gmail.com":1mrgoqtj]have you tried this
[quote:1mrgoqtj]I was getting this only when using the 'fork=true' option to the junit task. It was happening because my ANT_HOME had '..' in it (e.g. '/3rdparth/jboss/jboss-5/../tools'). Once I reduced that path, the 'multiple versions of ant' warning went away.[/quote:1mrgoqtj][/quote:1mrgoqtj]
I don't have any .. in ANT_HOME. It's an absolute path.
were you able to successfully run my project without running into any issue?
no i was not able to run your project. giving me a different error.
the error(bug) you have posted usually occurs when there is a version mismatch between 2 different jar files.
[quote="qtpselenium.supp0rt@gmail.com":1bgztp1l]no i was not able to run your project. giving me a different error.
the error(bug) you have posted usually occurs when there is a version mismatch between 2 different jar files.[/quote:1bgztp1l]
Ashish,
The initial reported error is resolved by deleting collection folder from Maven downloaded jars.
However, attempting to run mvn compile, the collections folder & jars are re-downloaded by Maven and same above issue repeats.
I also deleted the ant folder, but it wasn't of any use.
i haven't encountered this problem but this might be helpful
http://qnalist.com/questions/5487889/multiple-versions-of-ant-detected-in-path-for-junit
[quote="qtpselenium.supp0rt@gmail.com":hx31o9fx]i haven't encountered this problem but this might be helpful
http://qnalist.com/questions/5487889/multiple-versions-of-ant-detected-in-path-for-junit[/quote:hx31o9fx]
still it doesn't helps with the main problem. Could you suggest a solution?
Not sure how is it's working in the video. May be some settings that you had done back then.
send me a screen shot after you ran your project i'll match it here with your project.
i think i am getting a different error from you.
[quote="qtpselenium.supp0rt@gmail.com":38iivf5m]send me a screen shot after you ran your project i'll match it here with your project.
i think i am getting a different error from you.[/quote:38iivf5m]
ok, i have attached screenshots here for below
1. ant
2. mvn compile
also, ANT_HOME is set to C:\Selenium\apache-ant-1.9.6-bin\apache-ant-1.9.6
in maven(pom.xml) change the dependency version of ant to 1.9.6. and then delete the .m2 repo and run everything again and tell me again.
[quote="qtpselenium.supp0rt@gmail.com":2gpfse8r]in maven(pom.xml) change the dependency version of ant to 1.9.6. and then delete the .m2 repo and run everything again and tell me again.[/quote:2gpfse8r]
Sorry, but in maven(pom.xml) there is no dependency mentioned for ant. Only below 2 dependencies are mentioned.
I have crossed checked the same in video also.
[code:2gpfse8r] <dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.0</version>
</dependency>
</dependencies>[/code:2gpfse8r]
Am I missing something here?
[quote:3klgwzah]Sorry, but in maven(pom.xml) there is no dependency mentioned for ant. Only below 2 dependencies are mentioned.
I have crossed checked the same in video also.
[/quote:3klgwzah]
then how come ant-1.8.1 is in .m2/repo?