The fix was to call out with ant:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-apache-regexp</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>jakarta-regexp</groupId>
<artifactId>jakarta-regexp</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>snapshot</id>
<phase>compile</phase>
<configuration>
<tasks>
<ant antfile="bootstrap.xml" dir="${basedir}"
target="snapshot"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
...
Referencing the following:
<target name="check-snapshot">
<available
file="${basedir}${file.separator}lib${file.separator}gt-api-SNAPSHOT.jar"
property="snapshot.present"/>
</target>
<target
name="snapshot"
description="Replace snapshot version information with SNAPSHOT so
MANIFEST.MF has a consistent name."
depends="check-snapshot" unless="snapshot.present">
<move todir="${basedir}${file.separator}lib" includeemptydirs="false">
<fileset dir="${basedir}${file.separator}lib">
<include name="**/gt-*.jar"/>
<exclude name="**/gt-*-SNAPSHOT.jar"/>
</fileset>
<regexpmapper handledirsep="yes"
from="^(.*?)(\$$[^/\\\.]*)?-([\\\d]+)-([\\\d]+)\.([\\\d]+)\-([\\\d]+)\.jar$$"
to="\1-SNAPSHOT.jar"/>
</move>
</target>
--
Jody Garnett
On Friday, 7 September 2012 at 1:35 PM, Jody Garnett wrote:
> In making the jump back onto master I am trying out depending on 9-SNAPSHOT
> (using the copy-dependencies maven plugin).
>
> Resulting in the following:
> --> Copying gt-property-9-SNAPSHOT.jar to
> lib/gt-property-9-20120906.095900-135.jar
> [INFO] Copying gt-property-9-SNAPSHOT.jar to
> /Volumes/Fiore/jody/java/udig/jive/plugins/net.refractions.udig.libs/lib/gt-property-9-20120906.095900-135.jar
>
> Switching back to 8-SNAPSHOT gives me the following:
>
> Downloading:
> http://repo.opengeo.org/org/geotools/gt-property/8-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://download.osgeo.org/webdav/geotools/org/geotools/gt-property/8-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://oss.sonatype.org/content/repositories/snapshots/org/geotools/gt-property/8-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://maven.geo-solutions.it/org/geotools/gt-property/8-SNAPSHOT/maven-metadata.xml
> Downloaded:
> http://repo.opengeo.org/org/geotools/gt-property/8-SNAPSHOT/maven-metadata.xml
> (313 B at 0.4 KB/sec)
>
> [INFO] Copying gt-property-8-SNAPSHOT.jar to
> /Volumes/Fiore/jody/java/udig/jive/plugins/net.refractions.udig.libs/lib/gt-property-8-SNAPSHOT.jar
>
> I would like to bring these across with a simple "SNAPSHOT" rather than an
> full build identifier that changes each day; has anything explicitly changed
> in our configuration for master?
> --
> Jody Garnett
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel