Note that there are some explanatory texts on larger screens.

plurals
  1. POjardesc creates a "src" folder in jar file
    primarykey
    data
    text
    <p>My jardesc was working great until yesterday when I converted my project to maven.</p> <p>Now for some reason when I create a jar file containing code and packages: org.javacode and org.resource, I get the following folders in jar file:</p> <p>org/javacode src/org/resource</p> <p>It seem to work fine for java packages but for those packages that contain image resources it creates an additional src folder at the root. </p> <p>How can I fix this?</p> <p>Edit 1: Here is the pom.xml</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;Energy3D&lt;/groupId&gt; &lt;artifactId&gt;Energy3D&lt;/artifactId&gt; &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt; &lt;build&gt; &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;src&lt;/directory&gt; &lt;excludes&gt; &lt;exclude&gt;**/*.java&lt;/exclude&gt; &lt;/excludes&gt; &lt;/resource&gt; &lt;/resources&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;version&gt;2.3.2&lt;/version&gt; &lt;configuration&gt; &lt;source&gt;1.6&lt;/source&gt; &lt;target&gt;1.6&lt;/target&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.ardor3d&lt;/groupId&gt; &lt;artifactId&gt;ardor3d-jogl&lt;/artifactId&gt; &lt;version&gt;0.9-SNAPSHOT&lt;/version&gt; &lt;type&gt;bundle&lt;/type&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.ardor3d&lt;/groupId&gt; &lt;artifactId&gt;ardor3d-lwjgl&lt;/artifactId&gt; &lt;version&gt;0.9-SNAPSHOT&lt;/version&gt; &lt;type&gt;bundle&lt;/type&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/project&gt; </code></pre> <p>Edit 2:</p> <p>Also here is the relevant part of jardesc (the gui package is correctly placed in org/concord/energy3d/gui however the images package is mistakenly placed in src/org/concord/energy3d/resources/images when jar file is created):</p> <pre><code>&lt;javaElement handleIdentifier="=Energy3D/src&amp;lt;org.concord.energy3d.gui"/&gt; &lt;javaElement handleIdentifier="=Energy3D/src&amp;lt;org.concord.energy3d.resources.images"/&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload