> Okay I see; it is done in the refresh.xml as a wget; so I can mark is as
> provided in the pom.xml

I was able to see this only by now. Yes, the tools jar gets downloaded
from the udig site. We were not able to do it in any other way. One
nice thing to do would be an existence check. If the tools jar exists,
don't download it. Any idea on this?

Ciao,
Andrea


> --
> Jody Garnett
>
> On Sunday, 24 July 2011 at 12:40 PM, Jody Garnett wrote:
>
> Note I performed a temporary change to the pom.xml file for this to work:
> <!--<dependency>
> <groupId>com.sun</groupId>
> <artifactId>tools</artifactId>
> <version>1.6.0</version>
> <scope>system</scope>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>-->
> On the mac I don't the the above systemPath trick works?
>
> I checked the above trick here:
> http://maven.apache.org/general.html#tools-jar-dependency
> It indicates we should use a profile? Not sure if that will work …
>
> The following code includes tools.jar for JDKs on Windows, Linux and Solaris
> (it is already included in the runtime for Mac OS X and some free JDKs).
>   <profiles>
>     <profile>
>       <id>default-tools.jar</id>
>       <activation>
>         <property>
>           <name>java.vendor</name>
>           <value>Sun Microsystems Inc.</value>
>         </property>
>       </activation>
>       <dependencies>
>         <dependency>
>           <groupId>com.sun</groupId>
>           <artifactId>tools</artifactId>
>           <version>1.4.2</version>
>           <scope>system</scope>
>           <systemPath>${java.home}/../lib/tools.jar</systemPath>
>         </dependency>
>       </dependencies>
>     </profile>
>   </profiles>
>   …
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to