Hello all
Le 30/10/10 03:07, Mattmann, Chris A (388J) a écrit :
Hi Guys,
Attached is a patch file that integrates deployment to Maven Central into your
build. It currently relies on my own Sonatype free OSS hosting account, which is
one of the forges that is synced to Maven Central.
Having NetCDF on the central Maven repository is nice, but...
The deployed file (http://repo1.maven.org/maven2/edu/ucar/netcdf/4.2/) is the
full NetCDF file (11 Mb) with most of its dependencies, including:
* jdom
* commons-httpclient
* commons-codec
* commons-logging
(not mentioning Visad, Opendap and others). All the dependencies listed above
are already deployed on the Maven central repository, and often imported by
projects using both NetCDF and JDOM (for example) together. Having those
dependencies bundled in the NetCDF.jar file is both a duplication and a possible
hard-to-debug cause of conflict (especially if a project declares different
version of those dependencies).
A better way to process would have been to deploy only the core NetCDF file (3.9
Mb) rather the full 11 Mb JAR file, and to declare the dependencies in its
pom.xml. I have already done this work just a few days before, please look at
the files there (especially the "dependency" section of the netcdf-4.2.pom file):
http://maven.geotoolkit.org/edu/ucar/netcdf/4.2/
This requires that opendap and bufrTables dependencies are deployed separatly,
but this seems a necessary step to me.
Can we fix the deployment on the central repository, at the very least for
removing the above-listed dependencies and declare them as normal Maven
dependencies instead?
We should also merge the pom.xml file that you created (which contains a nice
list of developers) with the one that I created (which contains information
about mailing list, and a more appropriate list of dependencies).
Regards,
Martin Desruisseaux