title: maven deploy: The packaging for this project did not assign a file to the build artifact
body: <p>I'm trying to deploy a maven project to a remote repository. </p>
  
  <p>mvn install works just fine for local repository.</p>
  
  <p>I'm using Groovy and the Groovy-Eclipse compiler plugin.
  I tried to  run mvn deploy to deploy to a remote repository and I got the following error:</p>
  
  <pre><code>The packaging for this project did not assign a file to the build artifact -&gt; [Help 1]
  </code></pre>
  
  <p>This is my pom.xml:</p>
  
  <pre><code>&lt;project&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;io.github.notacariocafacil&lt;/groupId&gt;
      &lt;artifactId&gt;notacariocafacil&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.10&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
              &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
              &lt;version&gt;1.8.6&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;extensions&gt;
              &lt;extension&gt;
                  &lt;groupId&gt;org.kuali.maven.wagons&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-s3-wagon&lt;/artifactId&gt;
                  &lt;version&gt;1.2.1&lt;/version&gt;
              &lt;/extension&gt;
          &lt;/extensions&gt;
          &lt;plugins&gt;
            &lt;plugin&gt;
               &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.1&lt;/version&gt;
                  &lt;configuration&gt;
                     &lt;compilerId&gt;groovy-eclipse-compiler&lt;/compilerId&gt;
                     &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                  &lt;/configuration&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                         &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
                         &lt;artifactId&gt;groovy-eclipse-batch&lt;/artifactId&gt;
                         &lt;version&gt;1.8.6-01&lt;/version&gt;
                      &lt;/dependency&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
                         &lt;artifactId&gt;groovy-eclipse-compiler&lt;/artifactId&gt;
                          &lt;version&gt;2.7.0-01&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
                  &lt;artifactId&gt;groovy-eclipse-compiler&lt;/artifactId&gt;
                  &lt;version&gt;2.7.0-01&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
               &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Do I need to add something in the build step?</p>