Maven 2.0 final release is available there:

http://maven.apache.org/maven2/download.html

Just unzip in any directory and make sure that the 'bin' sub-directory is in yours path.

From the gt directory (using a fresh SVN update from trunk), type the following commands:

    mvn clean
    mvn install

The first execution may take a while because of numerous downloads. But those download are done only once. If everything go well (please report me any issue), you should see:

 - A target subdirectory in each module, exactly like Maven 1 did.

 - A gt/target directory, which collect in a single flat directory all
   the JAR produced by the build, including their dependencies. There is
   no duplicated dependencies there (at the opposite of releases created
   by Maven 1). This directory can be zipped in an 11.2 Mb file (to be
   compared to the 17.0 Mb file produced by Maven 1), assuming that I
   didn't forgot some resources. Note that compressing the same JARs
   using the new pack200 tool provided in J2SE 1.5 lead to a 4.4 Mb
   file. Maybe we should consider this distribution format for J2SE 1.5
   users.

The flat directory has an other advantage: because all JAR files produced by Maven 2 have a "Class-Path" entry in their META-INF/MANIFEST.MF file, users need only to provides one JAR in their classpath. Example:

java -classpath yours_geotools_directory/gt/target/gt2-epsg-hsql-2.2-SNAPSHOT.jar org.geotools.referencing.factory.epsg.DefaultFactory 4326

Note that only the epsg-hsql JAR was provided in the classpath. Others dependencies (gt2-referencing, hsqldb, etc.) are found automatically.

        Martin.


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to