Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Actually, your POM is wrong, it's missing essential parts. You need at least something like this (this is a minimal POM):</p> <pre><code>&lt;project&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.mycompany.myproject&lt;/groupId&gt; &lt;artifactId&gt;my-app&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;name&gt;My App&lt;/name&gt; &lt;/project&gt; </code></pre> <p>To add a spring dependency, I then suggest to use the following:</p> <pre><code>&lt;project&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.mycompany.myproject&lt;/groupId&gt; &lt;artifactId&gt;my-app&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;name&gt;My App&lt;/name&gt; &lt;properties&gt; &lt;org.springframework.version&gt;3.0.0.RELEASE&lt;/org.springframework.version&gt; &lt;/properties&gt; &lt;dependencies&gt; &lt;!-- Core utilities used by other modules. Define this if you use Spring Utility APIs (org.springframework.core.*/org.springframework.util.*) --&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-core&lt;/artifactId&gt; &lt;version&gt;${org.springframework.version}&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/project&gt; </code></pre> <p>For a full list of Spring artifacts, have a look at <a href="http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/" rel="nofollow noreferrer"><strong>Obtaining Spring 3 Artifacts with Maven</strong></a> and pick up what you need.</p> <p><strong>Update:</strong> Just FYI, there are numerous <a href="https://stackoverflow.com/questions/2192050/how-do-i-find-out-apache-buildr-maven-2-repo-names/2192127#2192127">repository search engines</a> that can help you to find artifacts. This might be helpful if you're not used to Maven. Also note that you can get some IDE support for this (Idea, Eclipse, NetBeans, I think they all offer a repository search feature). Actually, in your case I'd suggest to use <a href="http://www.springsource.com/products/sts" rel="nofollow noreferrer">SpringSource Tools Suite</a> (STS) which is an integrated version of Eclipse (bundling some plugins for Spring projects development, including Maven support). STS is a fully integrated environment, very close to what you can get in the .NET world IMO. You'll like it.</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