title: mvn deploy:file to different repositories for snapshot and release version
body: <p>Is it possible to in some way tell the maven deploy:file goal to deploy to two independent artifactories based on whether the version of the project is a snapshot / release?</p>
  
  <p>I'm hoping there might be a property which indicates the fact the version has -SNAPSHOT prepended, or perhaps the default artifactory to deploy to (which has been worked out based on the version number already).</p>
  
  <p>I thought about using two different profiles and working out if its a snapshot in ant by parsing the pom.xml file, but I'd rather a cleaner solution if possible.</p>
  
  <p>Currently, my deploy plugin looks as follows, but this just deploys to the release artifactory regardless of the version;</p>
  
  <pre><code>&lt;plugin&gt;
     &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
     &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
     &lt;version&gt;2.5&lt;/version&gt;
     &lt;executions&gt;
        &lt;execution&gt;
          &lt;id&gt;deploy-zip-created-by-ant-to-artifactory&lt;/id&gt;
      &lt;phase&gt;deploy&lt;/phase&gt;
      &lt;goals&gt;
         &lt;goal&gt;deploy-file&lt;/goal&gt;
      &lt;/goals&gt;
      &lt;configuration&gt;
         &lt;repositoryId&gt;${project.distributionManagement.repository.id}&lt;/repositoryId&gt;
         &lt;url&gt;${project.distributionManagement.repository.url}&lt;/url&gt;
         &lt;file&gt;${project.basedir}/Build/deploy/MyArtifact.zip&lt;/file&gt;
         &lt;pomFile&gt;${project.basedir}/MyArtifact-pom.xml&lt;/pomFile&gt;
      &lt;/configuration&gt;
        &lt;/execution&gt;
     &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Many Thanks</p>