nroduit / Weasis

Weasis is a DICOM viewer available as a desktop application or as a web-based application.
https://nroduit.github.io
Other
809 stars 292 forks source link

Plug-in fails to start if it uses a third party dependency #208

Closed DanielBEskandar closed 1 year ago

DanielBEskandar commented 3 years ago

I am trying to build a Weasis plug-in from the weasis-plugin-dicom-viewer-archetype. The problem is that the plugin fails to start when I include and use a third party dependency in the pom.xml file. The plug-in is not even seen by the viewer and no errors or warnings appear in the log file. The viewer runs as if there is no plug-in.

I am trying to include the json dependency in the pom.xml file of the new plug-in:

org.json json 20210307
nroduit commented 3 years ago

Putting a dependency in the pom.xml does not allow to embed a new library.

A new library must be defined at startup (jar must be OSGI compatible) or otherwise packaged in the plugin (see example).

Note that there is already a json and jackson library which are launched at startup.

If the plugin does not load, we must have traces in the logs.

nroduit commented 1 year ago

Please reopen this issue if it has not been resolved in the current version.