title: How to release all artifacts under the target folder?
body: <p>I am using the following commands</p>
  <pre><code>mvn release:prepare release:perform
  </code></pre>
  <p>This goal runs fine but only deploys the main jar for the project.</p>
  <p><strong>What have I tried ?</strong></p>
  <p>I tried using the deploy plugin with its deploy-file goal but it is uploading the artifact to jetbrains repository.</p>
  <pre><code>mvn org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file -Dfile=&quot;target/foo-bar-jar-with-dependencies.jar&quot; -Durl=&quot;&lt;my-repo-url&gt;&quot; -Darguments=-DskipTests -DrepositoryId=&quot;repo-id&quot;
  </code></pre>
  <p>Here is the output</p>
  <pre><code>Uploading to repo-id: &lt;my-repo-url&gt;/org/jetbrains/annotations/13.0/annotations-13.0.jar
  
  </code></pre>
  <blockquote>
  <p>I have hidden some parameters and named within &lt;&gt; for privacy</p>
  </blockquote>
  <p>Here are the artifacts in my target folder</p>
  <pre><code>src/
  target/
     |______ foo-bar.jar &lt;&lt;&lt; this is the main jar
     |______ foo-bar-distribution.zip
     |______ foo-bar-jar-with-dependencies.jar
  pom.xml
  </code></pre>
  <p><strong>Question ?</strong></p>
  <p>How do I upload additional artifacts using maven ?</p>
  <p><strong>Update</strong></p>
  <p>By default deploy plugin was picking up some other settings (saw it using -X with maven) so I had to explicitly mention the path to my pom (yes, even though it was in pwd). That seems to work.</p>
  <p>Here is what I saw in the debug logs</p>
  <pre><code>[DEBUG] Using META-INF/maven/org.jetbrains/annotations/pom.xml as pomFile
  </code></pre>
  <p>Adding the pomFile attribute with deploy plugin does the trick. Here is the updated command.</p>
  <pre><code>mvn org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file -Dfile=&quot;target/foo-bar-jar-with-dependencies.jar&quot; -Durl=&quot;&lt;my-repo-url&gt;&quot; -Darguments=-DskipTests -DrepositoryId=&quot;repo-id&quot; -DpomFile=&quot;pom.xml&quot;
  </code></pre>
  <p>Here is my build section for the pom</p>
  <pre><code>
      &lt;build&gt;
          &lt;sourceDirectory&gt;src/main/kotlin&lt;/sourceDirectory&gt;
          &lt;testSourceDirectory&gt;src/test/kotlin&lt;/testSourceDirectory&gt;
          &lt;plugins&gt;
               &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.2.0&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;jar&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;classifier&gt;jar-with-dependencies&lt;/classifier&gt;
                              &lt;includes&gt;
                                  &lt;include&gt;${basedir}/target/classes/**&lt;/include&gt;
                              &lt;/includes&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.3.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;descriptors&gt;
                          &lt;descriptor&gt;assembly/jar.xml&lt;/descriptor&gt;
                          &lt;descriptor&gt;assembly/zip.xml&lt;/descriptor&gt;
                      &lt;/descriptors&gt;
                      &lt;archive&gt;
                          &lt;manifest&gt;
                              &lt;mainClass&gt;com.foo.bar.MainKt&lt;/mainClass&gt;
                              &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                          &lt;/manifest&gt;
                      &lt;/archive&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;make-fat-jar&lt;/id&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;single&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;make-zip&lt;/id&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;single&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.0.0-M4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;!-- this is done to avoid infinite loop of builds --&gt;
                      &lt;scmCommentPrefix&gt;[skip ci]&lt;/scmCommentPrefix&gt;
                      &lt;tagNameFormat&gt;v@{project.version}&lt;/tagNameFormat&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
  
  
  
  </code></pre>