Search code examples
springspring-cloud-dataflow

Register Jar from the lib-Folder as an Application in Spring Data Flow


I'm trying to create a self-contained application with Spring Data Flow (Mesos). To do that i want to register sinks/processors/sources that are maven-dependencies of my project.

I know that spring-data-flow accepts classpath:// as a scheme for references but it appears to be unable to find any jar located in the resource folder or (optimaly) the lib folder.

java.io.FileNotFoundException: class path resource [lib/spring-cloud-starter-stream-source-ftp-1.0.0.M1.jar] cannot be opened because it does not exist

How can i reference files from within my self-contained jar properly?


Solution

  • I'm trying to create a self-contained application with Spring Data Flow (Mesos)

    What are the reasons behind "self-contained" solution? Why not register the apps from our repository directly?

    There's already a way to register the OOTB applications using the "bitly" links that we provide. Please review the stream registration section from the reference guide.

    More importantly, the latest release of SCDF's Mesos-server does not support maven artifacts. You'd have to use docker images instead. The docs linked above includes the "bitly" link for docker apps, too.