Hi,
I have an issue I don't know how to fix :-(

The goal is to have a dependency on tools.jar.
This activated by a profile

    <profile>
      <id>tools.jar</id>
      <activation>
        <file>
          <exists>${java.home}/../lib/tools.jar</exists>
        </file>
      </activation>
      <dependencies>
        <dependency>
          <groupId>openjdk</groupId>
          <artifactId>tools</artifactId>
          <version>1.6</version>
          <scope>system</scope>
          <systemPath>${java.home}/../lib/tools.jar</systemPath>
        </dependency>
      </dependencies>
    </profile>

So all is fine at this point.

But now the installed/deployed pom add this dependency in the
dependencies section.
That's something I definitely don't want because the ${java.home} is
interpolated so except everybody use the same as me that won't work
and furthermore I don't need it for using this library.

Any idea?

Thanks
-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

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

Reply via email to