Replies: 2 comments 2 replies
-
I don't know why org.daisy.pipeline.script.ScriptRegistry_SPI is not found. That is unexpected. If you want I can hava a look if you share the project with me. By the way, including only What I do in an application (that is not public) that uses Pipeline as a library is put this in my dependencies:
This will simply pull in everything (everything listed in the Including the Pipeline in an uberjar has not been tested yet. |
Beta Was this translation helpful? Give feedback.
-
Hi @bertfrees thanks for the answer. Using the assembly dependency looks much better but unfortunately fails with an error. I made the project public at https://github.com/sbsdev/daisy-pipeline-library-client |
Beta Was this translation helpful? Give feedback.
-
The documentation mentions that the "DAISY Pipeline 2 may also be used directly as a Java library instead of via client-server communication"
I though this approach might simplify my setup as I do not need to deal with installing the pipeline and creating jobs on the client side.
I tried to do this in a newly created project with the following code:
The pom.xml has a dependency on
framework-core
when I run this with
mvn -B compile exec:java -Dexec.mainClass="ch.sbs.dp2.App"
I get an error sayingDoes anyone have a complete running example on how to use the Pipeline as a library? Is this worth it in the first place? Can I include the pipeline in the Uberjar that I distribute?
Thanks
Christian
Beta Was this translation helpful? Give feedback.
All reactions