title: How to use maven to export a project from subversion?
body: <p>Maven has a plugin called <a href="http://maven.apache.org/scm/maven-scm-plugin/index.html" rel="nofollow noreferrer">maven-scm-plugin</a>, which can interact with source control systems. According to the documentation, I should be able to export a project like this:</p>
  
  <pre><code>mvn scm:export -DconnectionUrl=scm:svn:svn://url... -DexportDirectory=./project-export
  </code></pre>
  
  <p>However when I run this command with maven 2.0.9, I got the following error from maven:</p>
  
  <pre><code>[INFO] Required goal not found: scm:export in org.apache.maven.plugins:maven-scm-plugin:1.0-beta-3
  </code></pre>
  
  <p>So it seems the beta-3 version of the plugin doesn't have the "export" goal, but it was added in 1.1. I do have both versions in my maven repo (.m2\repository\org\apache\maven\plugins\maven-scm-plugin), however maven insists on using the old beta version, and errors out when it can't find the "export" goal. How can I force maven to use the 1.1 version of the scm plugin? The mvn scm:export command is used independently, so there is no POM file to configure. Thanks!</p>