Try something like:

    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>${java.version}</version>
      <scope>system</scope>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
    </dependency>

Jeff

On Jan 29, 2008 1:13 PM, Simon Kitching <[EMAIL PROTECTED]> wrote:

> ---- Andy Grove <[EMAIL PROTECTED]> schrieb:
> >
> > Hi,
> >
> > I'm currently updating a code generator product to generate maven build
> > scripts as an alternative to Ant build scripts. Most of the dependencies
> in
> > the generated java code are open source jars and I can use the maven
> > <dependency> tags for those. However, the generated code also has
> > dependencies on commercial jars (such as Oracle JDBC drivers) that can
> not
> > go into a public maven repository and that I cannot distribute with my
> > product. The user will already have these jars locally.
> >
> > How can I tell maven to put these local jars on the classpath when
> compiling
> > java code without using the dependency mechanism? I don't want to force
> > users to set up their own local repositories or to have to run maven
> > commands to install the jars in a local repository.
>
> Sounds like a job for
>  <scope>system</scope>
>
> Regards, Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

Reply via email to