Skip to Content
0
Jan 31, 2023 at 12:40 PM

Deploy Maven Application in iFlow

47 Views

When I deploy a compiled Maven application JAR in an iFlow and the Maven application accesses files under resources in the JAR itself the files cannot be found. When I run this locally there are no problems. This is how I try to do it:

ClassLoader classLoader = Thread.currentThread().getContextClassLoader()

InputStream inStream = classLoader.getResourceAsStream("/Workday.xsd")

How can I access the resources in a Maven project deployed to CPI?