Maven Build Error– Need help!!

69 views
Skip to first unread message

Pavan Kumar

unread,
Jun 17, 2015, 6:52:28 AM6/17/15
to seleniu...@googlegroups.com

Hello Folks,

I need your help badly. I’ve created a new Maven project and mentioned all dependencies in pom.xml. All the dependencies got downloaded but getting error “C:\Users\Pavan%20Gurram\.m2\repository\info\cukes\cucumber-picocontainer\1.2.2\cucumber-picocontainer-1.2.2.jar (The system cannot find the path specified)” for pico-container jar when I run pom as Maven test. I’m not getting any errors for other jars. Even I can see the downloaded jars in the same path but “Pavan%20Gurram” is creating a problem as it should be “PavanGurram”.  Below are the ways that I tried to resolve the issue.
1. Tried to add pico-container as external jar
2. Deleted and replaced pico container in .m2 repository

Please have a look and help me to resolve as I got stuck here. Many Thanks in advance!!

Below is the stuff in pom.xml

<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>YBS</groupId>
<artifactId>WPCucumberTestYBS</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>WPCucumberTestYBS</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>
<!– sourceDirectory>src/test/resources</sourceDirectory –>
<!– To define the plugin version in your parent POM –>

<pluginManagement>
<plugins>

<!– plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version>
<configuration> <encoding>iso-8859-1</encoding> <source>1.7</source> <target>1.7</target>
</configuration> </plugin> –>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.12.2</version>
<executions>
<execution>
<id>acceptance-test</id>
<phase>regression-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<includes>
<include>WPTestRunnerTest.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</pluginManagement>
</build>

<dependencies>

<!– dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId>
<version>6.8.8</version> <scope>test</scope> </dependency> –>

<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>1.2.2</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.2</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.45.0</version>
</dependency>

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.45.0</version>
</dependency>

<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.10-FINAL</version>
</dependency>

<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-api</artifactId>
<version>2.18.1</version>
</dependency>

<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.3.1</version>
</dependency>

</dependencies>

<reporting>
<plugins>
<!– TestNG-xslt related configuration. –>
<plugin>
<groupId>org.reportyng</groupId>
<artifactId>reporty-ng</artifactId>
<version>1.2</version>
<configuration>
<!– Output directory for the testng xslt report –>
<outputDir>/target/testng-xslt-report/index.html</outputDir>
<sortTestCaseLinks>true</sortTestCaseLinks>
<testDetailsFilter>FAIL,SKIP,PASS,CONF,BY_CLASS</testDetailsFilter>
<showRuntimeTotals>true</showRuntimeTotals>
</configuration>
</plugin>
</plugins>
</reporting>

<pluginRepositories>
<pluginRepository>
<id>reporty-ng</id>
<url>https://github.com/cosminaru/reporty-ng/raw/master/dist/maven</url>
</pluginRepository>
</pluginRepositories>
</project>

Krishnan Mahadevan

unread,
Jun 17, 2015, 7:13:57 AM6/17/15
to Selenium Users

and define an alternative localRepository location that doesn't involve a space in its path and then try again.

By default the localRepository resorts to creating the .m2 (which is your local repository) under the current user's home directory.

Within your Maven installation you should find a settings.xml under conf folder.

update the <localRepository> tag with a different value and try again.



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c525c0ba-65b1-43a1-93d7-fe15f0bdf97c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages