Questions Tagged With mavenhttps://answers.axonivy.com/tags/maven/?type=rss&user=adamfquestions tagged <span class="tag">maven</span>enWed, 20 Sep 2017 06:42:11 -0400How to load resources in IvyProject from Java?https://answers.axonivy.com/questions/2872/how-to-load-resources-in-ivyproject-from-java<p>In typical Java EE maven project I put resources in src/main/resources and access files with getResourceAsStream().</p> <p>How to work relative to the current class has been dicussed in <a href="https://discourse.axonivy.io/t/how-to-read-file-in-resources-folder-or-webcontent-in-an-axon-ivy-project/135/2" title="this thread">this thread</a>. However, I would need an absolute way to access resources. </p> <p>Background of this question is that I would like to use <a href="http://owner.aeonbits.org/" title="owner">owner</a> config <a href="http://owner.aeonbits.org/docs/loading-strategies/" title="with fallback">with fallback</a> to a classpath property file.</p> <p>Thanks for help.</p>adamfWed, 20 Sep 2017 06:42:11 -0400https://answers.axonivy.com/questions/2872/how-to-load-resources-in-ivyproject-from-javamavenjava