Thanks Robert for your reply.
It's now clearer and it's also the case for the Sun's J2EE JAR because it is
not redistribuable.
But I'm still wondering if it not better to install the jar in your local
repository rather than using
the scope system.
Rémy
2006/6/6, Roland Asmann <[EMAIL PROTECTED]>:
Personally I don't use it, but I've seen it being used in Tobago...
You could use this if your software has a dependency to e.g. 'tools.jar'
from the JDK. This dependency CAN NOT be downloaded
from the repository and therefor can be set either to 'provided' or
'system'. If you set it to system, you can let maven check for
its existence, whereas provided can't do such a thing.
Snippet from Tobago:
<dependency>
<groupId>sun.jdk</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/jre/../lib/tools.jar</systemPath>
</dependency>
Hope this helped,
Roland