I have successfully used the quickstart archetype and proceeded to build and
run
HelloWorld. As most know, it uses junit and i wish to use TestNG. I believed
that it meant that 
I would simply add the needed dependency as explained here:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html
To keep it simple, I am calling mvn from the console.
I used the Intellij Editor only to modify the pom file. The editor tells me
that the org.testng, testing and test in my testng dependency are not found.
What am I missing? I thought that I was free to modify the pom file and add
files as i want and then I could just build again.

My assumption is that I may add as many dependencies as I like to my list.
So if I like to have two test files to exemplify how things are done in
junit and testng
all that should be needed is to add a new test file with the appropriate
import statements.

<dependencies>
      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.1</version>
          <scope>test</scope>
      </dependency>

  <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>6.3.1</version>
        <scope>test</scope>
   </dependency>
  </dependencies>

--
View this message in context: 
http://maven.40175.n5.nabble.com/My-TestNG-dependency-not-found-tp5493958p5493958.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to