You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonar, Nishant" <ni...@wachovia.com> on 2007/10/29 11:09:08 UTC
use a dependency in system scope witout version
Hi
Can I use a dependency with scope=system with no version number
I want to use rt.jar which is inside C:\Java\jdk1.5.0_11\jre\lib . now
this jar doesn't has a verion number
How should I use ot
<dependency>
<groupId>what to use here?</>
<artifactId>What to use here?</>
<version>what version if no version for the jar</>
<scope>system</>
<systemPath> C:\Java\jdk1.5.0_11\jre\lib</systemPath>
</dependency>
Regards,
Nishant Sonar
Re: use a dependency in system scope witout version
Posted by Tim Kettler <ti...@udo.edu>.
Hi,
have a look at the dependency guide [1] for the correct usage of system
scope dependencies. It boils down to: groupId/artifactId/version are
your choice (somthing like sun.jdk/runtime/1.5.0.11 will do in your
case), systemPath is not the path of the directory of the jar, but the
path of the jar itself.
-Tim
[1]
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
Sonar, Nishant schrieb:
> Hi
>
>
>
> Can I use a dependency with scope=system with no version number
>
>
>
> I want to use rt.jar which is inside C:\Java\jdk1.5.0_11\jre\lib . now
> this jar doesn't has a verion number
>
> How should I use ot
>
>
>
> <dependency>
>
> <groupId>what to use here?</>
>
> <artifactId>What to use here?</>
>
> <version>what version if no version for the jar</>
>
> <scope>system</>
>
> <systemPath> C:\Java\jdk1.5.0_11\jre\lib</systemPath>
>
> </dependency>
>
>
>
>
>
> Regards,
>
> Nishant Sonar
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org