Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven - how to put the build dependance jar files?
    text
    copied!<p>I run a simple CXF maven project <a href="http://cxf.apache.org/docs/using-cxf-with-maven.html" rel="nofollow noreferrer">http://cxf.apache.org/docs/using-cxf-with-maven.html</a>, and get error below</p> <pre><code>[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] org/springframework/core/io/support/ResourcePatternResolver org.springframework.core.io.support.ResourcePatternResolver [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: org/springframework/core/io/support/ResourcePatternResolver at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) </code></pre> <p>I don't know how to put the springframework-core dependance ?</p> <p>I tried below like most of answers</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-core&lt;/artifactId&gt; &lt;version&gt;2.5.6&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre> <p>but it didn't help, I also don't know why it depends on springframework</p> <p>It works if I put the jar file under $M2_HOME/lib, but is it correct way ? since when I solve this, it requires to add more lib there, can I put it into pom.xml somewhere ?</p> <p>I tried to put <code>&lt;dependencies/&gt;</code> inside <code>&lt;build&gt;</code> tag, it doesn't work</p> <p>my maven is 2.2.1 on windows</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