<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Deploy Maven Application in iFlow in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686313#M4760050</link>
    <description>&lt;P&gt;you'd better to check it in JAR. In my case (gradle-driven build) /src/resources translates to root folder of JAR so this code works well. I checked it in CPI of course. Do you use Eclipse resource loader? it shadows some data.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 15:28:19 GMT</pubDate>
    <dc:creator>ilya_kuznetsov2023</dc:creator>
    <dc:date>2023-01-31T15:28:19Z</dc:date>
    <item>
      <title>Deploy Maven Application in iFlow</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaq-p/12686309</link>
      <description>&lt;P&gt;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:&lt;/P&gt; 
  &lt;P&gt; ClassLoader classLoader = Thread.&lt;EM&gt;currentThread&lt;/EM&gt;().getContextClassLoader()&lt;/P&gt; 
  &lt;P&gt; InputStream inStream = classLoader.getResourceAsStream("/Workday.xsd")&lt;/P&gt;
  &lt;P&gt;How can I access the resources in a Maven project deployed to CPI?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 12:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaq-p/12686309</guid>
      <dc:creator>kaisand28</dc:creator>
      <dc:date>2023-01-31T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Maven Application in iFlow</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686310#M4760047</link>
      <description>&lt;P&gt;Hello Andre,&lt;/P&gt;&lt;P&gt;it works for me:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;InputStream ris = getClass().getResourceAsStream("/name.txt")&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jan 2023 13:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686310#M4760047</guid>
      <dc:creator>ilya_kuznetsov2023</dc:creator>
      <dc:date>2023-01-31T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Maven Application in iFlow</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686311#M4760048</link>
      <description>&lt;P&gt;Did you check compiled jar actually has Workday.xsd in a root?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 13:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686311#M4760048</guid>
      <dc:creator>ilya_kuznetsov2023</dc:creator>
      <dc:date>2023-01-31T13:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Maven Application in iFlow</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686312#M4760049</link>
      <description>&lt;P&gt;Hi Ilya,&lt;/P&gt;&lt;P&gt;thank you for your answer.&lt;/P&gt;&lt;P&gt;It does not work for me. The InputStream is null. The xsd is under resources in the JAR.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 14:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686312#M4760049</guid>
      <dc:creator>kaisand28</dc:creator>
      <dc:date>2023-01-31T14:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Maven Application in iFlow</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686313#M4760050</link>
      <description>&lt;P&gt;you'd better to check it in JAR. In my case (gradle-driven build) /src/resources translates to root folder of JAR so this code works well. I checked it in CPI of course. Do you use Eclipse resource loader? it shadows some data.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 15:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686313#M4760050</guid>
      <dc:creator>ilya_kuznetsov2023</dc:creator>
      <dc:date>2023-01-31T15:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Maven Application in iFlow</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686314#M4760051</link>
      <description>&lt;P&gt;A clarification: my code is put into JAR, close to resource. It's not groovy script on CPI-side, it's groovy-packaged into JAR code.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 15:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-maven-application-in-iflow/qaa-p/12686314#M4760051</guid>
      <dc:creator>ilya_kuznetsov2023</dc:creator>
      <dc:date>2023-01-31T15:44:31Z</dc:date>
    </item>
  </channel>
</rss>

