<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Losing resources folder when compiling ivy project</title><link>https://answers.axonivy.com/questions/2678/losing-resources-folder-when-compiling-ivy-project</link><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Currently, when I use maven to build the project I have this problem.&lt;/p&gt;
&lt;p&gt;I have 2 projects: &lt;strong&gt;desk_post&lt;/strong&gt; and &lt;strong&gt;desk_post_test&lt;/strong&gt; (required desk_post)&lt;/p&gt;
&lt;p&gt;When I run for desk_post&lt;/p&gt;
&lt;p&gt;-&amp;gt; mvn clean install &lt;/p&gt;
&lt;p&gt;-&amp;gt; successful &lt;/p&gt;
&lt;p&gt;-&amp;gt; created: desk_post-1.00.08.00-SNAPSHOT.iar &lt;/p&gt;
&lt;p&gt;-&amp;gt; the &lt;strong&gt;resources&lt;/strong&gt; folder already included in &lt;strong&gt;iar&lt;/strong&gt; file &lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/iar_file.png"&gt;&lt;/p&gt;
&lt;p&gt;Then I run for desk_post_test&lt;/p&gt;
&lt;p&gt;-&amp;gt; mvn clean test -X&lt;/p&gt;
&lt;p&gt;-&amp;gt; not successful&lt;/p&gt;
&lt;p&gt;I open the folder &lt;strong&gt;desk_post_test\target\ivyBuildApp\iarJars\&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I can not find the &lt;strong&gt;resources&lt;/strong&gt; anymore (see the picture)
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/create_jar.png"&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, I have to use that resource &lt;/p&gt;
&lt;p&gt;I used: &lt;strong&gt;Ivy 6.3.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Do you have any idea?&lt;/p&gt;
&lt;p&gt;This is one log in command line:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[INFO] Compiling ivy Project...
[DEBUG] Create jar 'C:\work\finform_workspace\6.3\postfinance_desk\desk_post_test\target\ivyBuildApp\iarJars\desk_post-1.00.08.00-SNAPSHOT.jar' with java binaries from ivy archive 'C:\Users\vdkhanh\.m2\repository\ch\axonivy\finform\desk_post\1.00.08.00-SNAPSHOT\desk_post-1.00.08.00-SNAPSHOT.iar'
&lt;/code&gt;&lt;/pre&gt;</description><atom:link href="https://answers.axonivy.com/questions/2678/losing-resources-folder-when-compiling-ivy-project" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 07 Jun 2017 08:56:56 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2678/losing-resources-folder-when-compiling-ivy-project/2679</link><description>&lt;p&gt;I just checked in the newest code base. And I agree that resources will never be accessible in dependent projects. &lt;/p&gt;
&lt;p&gt;The reason is exactly the log line you mentioned. We build a simple jar with minimal contents (classes + embedded jars). Unfortunately we do not consider static resources. &lt;/p&gt;
&lt;p&gt;As short fix you could pack all resources into a JAR file, copy this JAR into the ivyProject and add it to the classpath. Then the resources should be accessible by the maven build.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 07 Jun 2017 08:56:56 -0400</pubDate><guid>https://answers.axonivy.com/questions/2678/losing-resources-folder-when-compiling-ivy-project/2679</guid></item></channel></rss>