Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven dependencies jar not usable
    text
    copied!<p>EDIT:</p> <p>I am basically running into the following <a href="http://jira.springframework.org/browse/SPR-5705" rel="nofollow noreferrer" title="documented issues">documented issue</a>. I am using the maven assembly plugin to generate a jar file that includes my dependencies so that my project can be run from a single file. However, the jar file is not being built properly it seems. The below was an attempt to try and work around the issue. Has anyone run into this before?</p> <p>So I am trying to build a jar file that includes all of my dependencies packed and my project artifact jar unpacked. </p> <p>I tried doing something to the effect of </p> <pre><code>&lt;assembly&gt; &lt;id&gt;jar-with-dependencies-packed&lt;/id&gt; &lt;formats&gt; &lt;format&gt;jar&lt;/format&gt; &lt;/formats&gt; &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt; &lt;dependencySets&gt; &lt;dependencySet&gt; &lt;unpack&gt;true&lt;/unpack&gt; &lt;unpackOptions&gt; &lt;includes&gt; &lt;include&gt;artifactname&lt;/include&gt; &lt;/includes&gt; &lt;/unpackOptions&gt; &lt;scope&gt;runtime&lt;/scope&gt; &lt;outputDirectory&gt;lib&lt;/outputDirectory&gt; &lt;/dependencySet&gt; &lt;/dependencySets&gt; &lt;/assembly&gt; </code></pre> <p>However, the resulting jar file includes only the META-INF directory... When I say to unpack, but unpack only my includes, does that mean the original jar files aren't included?</p> <p>When I run the jar I receive the following </p> <pre><code>Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace http://www.springframework.org/schema/util Offending resource: class path resource [applicationContext.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) at org.springframework.beans.fac </code></pre> <p>tory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:281)</p>
 

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