Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-dev] problem adding a lib

There is perhaps one more thing to do ... the eclipse class loader really likes to lock down interactions between "bundles".

In addition to listing the file in MANIFEST.MF (which you can do from the "runtime" tab of the MANIFEST.MF editor) you also need to explicitly say what packages you want to "publish" from the bundle.

So not only are they restricting what jars are available on the class path, they are also providing fine grain control over what packages in those jars are "public" :)

So back to the runtime tab in the MANIFEST.MF editor, and check on the right hand side for the list of published packages. There is a button to add more packages to this list.
--
Jody

Jody Garnett


On Thu, May 29, 2014 at 11:12 AM, Ivan Lucena <lucena_ivan@xxxxxxxxxxx> wrote:
Hi there,

I am having problem adding the Geotools extension "gt-imagemosaic-jdbc-9.0-M0.jar" to uDig.

I did that once but for some reason I cannot repeat it successfully again.

Like last time, I searched everywhere for gt-imagemosaic-9.0-M0.jar and I added a entry for gt-imagemosaic-jdbc-9.0-M0.jar.

    modified:   plugins/org.locationtech.udig.libs/.classpath
    modified:   plugins/org.locationtech.udig.libs/META-INF/MANIFEST.MF
    modified:   plugins/org.locationtech.udig.libs/about.html
    modified:   plugins/org.locationtech.udig.libs/build.properties
    modified:   plugins/org.locationtech.udig.libs/pom-libs.xml

After that the command "mvn clean install -f pom-libs.xml" runs pretty well and the library is downloaded to:

./plugins/org.locationtech.udig.libs/lib/gt-imagemosaic-jdbc-9.0-M0.jar

But if I try to build uDig on Eclipse it fails. If I try to build in command line I got this kind of error:

$ mvn clean install -Pproduct -Psdk -Pdocs
. . .
. . .
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.19.0:compile (default-compile) on project org.locationtech.udig.catalog.oracle: Compilation failure: Compilation failure:
[ERROR] ./plugins/org.locationtech.udig.catalog.oracle/src/org/locationtech/udig/catalog/internal/oracle/OracleRasterResource.java:[33]
[ERROR] import org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCFormat;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
. . .
. . .

Does anybody has an idea on what could be wrong and how to fix it?

Best regards,

Ivan





_______________________________________________
udig-dev mailing list
udig-dev@xxxxxxxxxxxxxxxx
https://locationtech.org/mailman/listinfo/udig-dev



Back to the top