Justin Deoliveira a écrit :
> Also, I couldn't find much documentation on finalName. But all it says
> is that the built "artifact" should be called ...., I don't believe this
> means the local repository artifacts, just the artifacts under the
> target/ directory of the module.

Right, the JAR in the local repository doesn't seem to be affected by the final 
name. Only the JAR in the "target/" directories.

Everything work well for dependencies declared in the pom.xml file. The problem 
are in the META-INF/MANIFEST.MF file generated automatically by Maven, more 
specifically in the "Class-path" entry.

Lets use the "brewer" module as an example (because it is a small one). If you 
run "mvn install" from the Geotools root, you get:

Class-Path: concurrent-1.3.4.jar jsr108-0.01.jar gt-api-2.4-SNAPSHOT.j
  ar gt-coverage-2.4-SNAPSHOT.jar vecmath-1.3.1.jar gt-referencing-2.4-
  SNAPSHOT.jar jts-1.7.1.jar gt-main-2.4-SNAPSHOT.jar geoapi-nogenerics
  -2.1-SNAPSHOT.jar

Note the "gt-" prefix in front of Geotools JAR filename. This is what we want. 
We can check that this is like that on the JAR deployed in the remote 
repository 
as well.

But if you chdir in modules/extension/brewer and run "mvn install" from that 
directory, then you get:

Class-Path: concurrent-1.3.4.jar jsr108-0.01.jar referencing-2.4-SNAPS
  HOT.jar main-2.4-SNAPSHOT.jar api-2.4-SNAPSHOT.jar vecmath-1.3.1.jar
  jdom-1.0.jar coverage-2.4-SNAPSHOT.jar jts-1.7.1.jar geoapi-nogeneric
  s-2.1-SNAPSHOT.jar

The "gt-" prefix are gone! The same happen if a user run "mvn install" from his 
own module. The consequence is that if he drop his JAR into a directory 
containing all Geotools JARs, the Geotools JARs will not be found automatically.

        Martin

-------------------------------------------------------------------------
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

Reply via email to