Hey all,
I've committed an initial take on maven/archetype onto trunk. If any of
you really understand the technology and would take the time to look at
what I've done, I could use some expert help.
Specifically:
(1) Must the version number of the dependency be fixed?
I'd like the example to depend on geotools releases. For now, I've tried
to add to
maven/archetype/src/main/resources/archetype-resources/pom.xml
the dependencies with
<dependency>
<groupId>org.geotools</groupId>
<artifactId>api</artifactId>
<version>${project.version}</version>
</dependency>
using the ${project.version} variable so we could build artifacts for
the latest release. That variable is never replaced by the mvn build so
it looks like we'd need to hard code it to 2.4-SNAPSHOT. Any
alternatives?
(2) Running the example as built, doesn't find the jars in the same dir.
I can create the archetype, change the version numbers in the pom.xml,
and build the archetype. I can't then run that artifact in palace since
it doesn't have all the dependent jars. If I then place the built jar in
the top level target/ dir, and try running it with
java -cp target/base-1.0-SNAPSHOT.jar org.example.geotools.base.DemoBase
the run fails because java fails to find the referencing jar in the same
directory. Any ideas, either to copy all the dependent jars into the
build of the 'base' example or to let java know the other jars are in
the same dir?
cheers,
adrian
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel