Weasis icon indicating copy to clipboard operation
Weasis copied to clipboard

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

Open DanielBEskandar opened this issue 2 years ago • 1 comments

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

DanielBEskandar avatar Aug 25 '21 13:08 DanielBEskandar

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 avatar Aug 25 '21 20:08 nroduit

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

nroduit avatar May 27 '23 08:05 nroduit