0

I have an ivy dependency management to work both under eclipse and with ant.

How should I configure the test dependencies to be available for eclipse?

my current configuration is:

<configurations>
  ...
  <conf name="test" visibility="public"/>
</configurations>

<dependencies>
  ...
  <dependency org="org.testng" name="testng" rev="6.7" conf="test->provided" transitive="false"/>
</dependencies>

With that configuration TestNG is not "retrieved". I'm using IvyDE, and 'Select every configuration' is set.

BTakacs
  • 2,397
  • 3
  • 24
  • 26
  • `` solved the issue, but I don't understand why... :-( – BTakacs Feb 25 '13 at 10:19
  • 1
    Every maven project should have the one of the following scopes:compile, provided, runtime, test (http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope) ... and testNG has its pom.xml – BTakacs Feb 25 '13 at 13:06
  • See the following answer for information on how Maven scopes related to ivy configurations: http://stackoverflow.com/questions/7104364/how-are-maven-scopes-mapped-to-ivy-configurations-by-ivy/7116577#7116577 – Mark O'Connor Feb 25 '13 at 20:52

0 Answers0