Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven Shared Dependency
    primarykey
    data
    text
    <p>Just got head into Maven and I've got situation where I have cyclic dependency problem. my original structure was</p> <pre><code>|-mainProject |-webProject </code></pre> <p>where mainProject has webProject as a dependency (war packaging). Got error since webProject also depends on mainProject, so I changed the structure</p> <pre><code>|-coreProject |-mainProject |-webProject </code></pre> <p>so that core get packaged into a jar and both main&amp;web have core as dependency. Now I see different error while creating -shade.jar.</p> <p>CoreProject's components need to be used by both main&amp;web projects. What would be the best practice in this case?</p> <hr> <p>my dependency graph looks like</p> <pre><code>mainProject(jar) -&gt; webProject(war) -- |-&gt; coreProject(jar) &lt;-| |-&gt; jetty jars </code></pre> <p>I'm using embedded jetty in mainProject, so that my final outcome would be single jar file from mainProject which includes web&amp;coreProjects.</p> <p><em>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on project mainProject: Error creating shaded jar: Invalid signature file digest for Manifest main attributes -> [Help 1]</em></p> <p>I have tried filters such as</p> <pre><code>&lt;filters&gt; &lt;filter&gt; &lt;artifact&gt;*:*&lt;/artifact&gt; &lt;excludes&gt; &lt;exclude&gt;META-INF/*.SF&lt;/exclude&gt; &lt;exclude&gt;META-INF/*.DSA&lt;/exclude&gt; &lt;exclude&gt;META-INF/*.RSA&lt;/exclude&gt; &lt;/excludes&gt; &lt;/filter&gt; &lt;/filters&gt; </code></pre> <p>but still getting the same error</p>
    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.
    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