Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven SVN checkout
    text
    copied!<p>Can anybody tell me how to make checkout and further updates from SVN with Maven? I read the documentation on maven.apache.org but it seems that i'm too dumb for this because i can't understand how to use scm:checkout and scm:update without passing them parameters in command line. I mean when i run just:</p> <pre><code>mvn scm:checkout (or scm:update) clean install </code></pre> <p>maven checks out sources to /target/checkout, then it deletes it and of course it has nothing to compile so it makes empty jar. So i have to write something like this: </p> <pre><code>mvn scm:checkout -DconnectionUrl=scm:svn:http://svn.my.dev/scm/repo/trunk/myProject -DcheckoutDirectory=src clean install </code></pre> <p>But i don't want to! How can i set these parameters inside pom.xml? And how can i set current directory as checkoutDirectory? (probably it should not be a problem if set it in pom.xml because i can set it as ${project.basedir}, but who knows) My pom.xml includes these lines:</p> <pre><code>... &lt;scm&gt; &lt;connection&gt;scm:svn:http://svn.my.dev/scm/repo/trunk/myProject&lt;/connection&gt; &lt;developerConnection&gt;scm:svn:http://svn.my.dev/scm/repo/trunk/myProject&lt;/developerConnection&gt; &lt;/scm&gt; ... &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt; &lt;version&gt;1.7&lt;/version&gt; &lt;configuration&gt; &lt;username&gt;username&lt;/username&gt; &lt;password&gt;password&lt;/password&gt; &lt;/configuration&gt; &lt;/plugin&gt; ... </code></pre> <p>Btw, what is the difference between connection and developerConnection. Maven documentation says only that developerConnection is... "The SCM connection URL for developers". Which is very surprising for me 'cause i thought that this is some connection for squirrels or may be bunnies. </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