Hi Ramesh,
are your classes in src/test/java?
--
Regards / Pozdrawiam
Tomek Kaczanowski
http://practicalunittesting.com
2012/9/13 Ramesh <
rameshk...@gmail.com>:
> Hi ,
>
> here I attached my 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/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>Mavenintergation</groupId>
> <artifactId>Mavenintergation</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <properties>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> </properties>
> <dependencies>
> <dependency>
> <groupId>org.seleniumhq.selenium</groupId>
> <artifactId>selenium-java</artifactId>
> <version>2.20.0</version>
> </dependency>
> <dependency>
> <groupId>org.testng</groupId>
> <artifactId>testng</artifactId>
> <version>6.1.1</version>
> <scope>test</scope> < !-- here i added the Scope i got an error
> package org.testng -->
> </dependency>
> <dependency>
> <groupId>com.google.inject</groupId>
> <artifactId>guice</artifactId>
> <version>2.0</version>
> </dependency>
>
> <dependency>
> <groupId>org.uncommons</groupId>
> <artifactId>reportng</artifactId>
> <version>1.1.2</version>
> <scope>test</scope>
> <exclusions>
> <exclusion>
> <groupId>org.testng</groupId>
> <artifactId>testng</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> </dependencies>
>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> </build>
>
> <profiles>
> <profile>
> <id>selenium-tests</id>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.12</version>
> <configuration>
> <skip>true</skip>
> <properties>
> <property>
> <name>usedefaultlisteners</name>
> <value>false</value>
> </property>
> <property>
> <name>listener</name>
>
> <value>org.uncommons.reportng.HTMLReporter,
>
> org.uncommons.reportng.JUnitXMLReporter</value>
> </property>
> </properties>
> <workingDirectory>target/</workingDirectory>
> </configuration>
> <executions>
> <execution>
> <id>start-testing</id>
> <phase>integration-test</phase>
> <goals>
> <goal>test</goal>
> </goals>
> <configuration>
> <skip>false</skip>
> <suiteXmlFiles>
>
> <suiteXmlFile>testng.xml</suiteXmlFile>
> </suiteXmlFiles>
> <includes>
> <include>**/*.java</include>
> </includes>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> </profile>
> </profiles>
>
> </project>
>
> mvn integration-test
>
> i got an error [INFO] Compilation failure
> package org.testng does not exist
>
> thanks in advanced
> Ramesh
>
> --
> You received this message because you are subscribed to the Google Groups
> "testng-users" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/testng-users/-/b3UWvj9eQkIJ.
> To post to this group, send email to
testng...@googlegroups.com.
> To unsubscribe from this group, send email to
>
testng-users...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/testng-users?hl=en.