java - Error building Selenium+Maven: missing pom.xml -


i new selenium , maven tools. trying set selenium 2.0 java project using maven, via this guide.

after creating , saving pom.xml in project directory, run mvn clean install , following error:

(...) goal specified requires project execute there no pom in directory (c:\users\user\documents\testautomation). please verify invoked maven correct directory. -> [help 1]

my pom.xml looks this, in example link:

<?xml version="1.0" encoding="utf-8"?> <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> <groupid>mysel20proj</groupid> <artifactid>mysel20proj</artifactid> <version>1.0</version> <dependencies> <dependency> <groupid>org.seleniumhq.selenium</groupid> <artifactid>selenium-java</artifactid> <version>2.45.0</version> </dependency> </dependencies> </project>

i have maven 3.3.1 , java 1.8.0 installed on windows 7.

any idea, doing wrong? have little experience testing tools in general.

ok, problem file extension. saved pom.xml.txt, not pom.xml expected. (found via dir command)


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -