Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Firstly, you can manually install artifacts to your local Maven repository in Windows in exactly the same way you did on your Linux box.</p> <p>Ideally, as you say, Maven will do the hard work for you. Usually you won't have to install jars manually: for most libraries Maven will know what dependencies each jar has. By default, Maven will check <a href="http://repo1.maven.org/maven2" rel="nofollow noreferrer">the central repository</a>, and a couple of others. To access jars in other repositories, just add them to your POM, as follows:</p> <pre><code> &lt;project&gt; ... &lt;repositories&gt; &lt;repository&gt; &lt;id&gt;jboss.maven2.repo&lt;/id&gt; &lt;name&gt;JBoss Maven Repo&lt;/name&gt; &lt;url&gt;http://repository.jboss.com/maven2&lt;/url&gt; &lt;/repository&gt; &lt;!-- other repositories here --&gt; &lt;/repositories&gt; ... &lt;/project&gt; </code></pre> <p>The JBoss repo mentioned above is a good one to add. It has a lot of common jars, including the jars for the hibernate version you mentioned above. Reference it in your pom.xml like this:</p> <pre><code>&lt;dependencies&gt; &lt;!-- ... --&gt; &lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt; &lt;version&gt;3.3.2.GA&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-annotations&lt;/artifactId&gt; &lt;version&gt;3.4.0.GA&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-commons-annotations&lt;/artifactId&gt; &lt;version&gt;3.3.0.ga&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt; &lt;version&gt;3.4.0.GA&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre> <p>Once you have added these dependencies, Maven will also download the libraries that these libraries depend on, and so on (including the Javassist library in your example).</p> <p>Finally, as mentioned in another answer, if you have a lot of third party libraries to install for your project that don't exist in other repositories, you might want to install a repository manager like <a href="http://nexus.sonatype.org" rel="nofollow noreferrer">Nexus</a>, <a href="http://www.jfrog.org" rel="nofollow noreferrer">Artifactory</a>, or <a href="http://archiva.apache.org" rel="nofollow noreferrer">Archiva</a>, which will allow you to perform the install commands you mentioned, through a web-based interface.</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