Hey folks, just a quick tip Andrea thought I should send to the list since
it might be useful for others.
Anyone who builds a maven project that depends on geotools snapshot
dependencies has felt the following pain.
1. You update
2. Do an offline build, which fails because someone added a new library
dependency
3. You do an online build which downloads a bunch of new GeoTools jars
What i do is set up a profile in my local settings.xml file which basically
forces maven to skip downloading snapshots from the osgeo and opengeo
repositories.
~/.m2/settings.xml
<settings>
<profiles>
<profile>
<id>no-snapshots</id>
<repositories>
<repository>
<id>opengeo</id>
<name>opengeo</name>
<snapshots>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
<url>http://repo.opengeo.org/</url>
</repository>
<repository>
<id>osgeo</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>http://download.osgeo.org/webdav/geotools/</url>
<snapshots>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
</settings>
Then whenever i need to build online but want to skip geotools snapshots i
just use "-P no-snapshots".
Be interested to know if other folks have their own solutions for this.
-Justin
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel