title: How do I create an additional jlink artifact on my jar project?
body: <p>Using the <a href="https://maven.apache.org/plugins/maven-jlink-plugin/" rel="nofollow noreferrer">maven-jlink-plugin</a>, I want to create an additional jlink zip file.</p>
  <p>I have configured it like so:</p>
  <pre><code>&lt;profile&gt;
    &lt;id&gt;jlink&lt;/id&gt;
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;!-- to be able to package the application using jlink, all dependencies MUST have a module-info.java. --&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-jlink-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.0.0&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;create-runtime-image&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;jlink&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;launcher&gt;memeforcehunt=memeforcehunt.app/io.github.alttpj.memeforcehunt.app.cli.MemeforceHuntApp
                &lt;/launcher&gt;
                &lt;modulePaths&gt;
                  &lt;modulePath&gt;${project.build.directory}/modules&lt;/modulePath&gt;
                &lt;/modulePaths&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>
  <p>But when I try to execute <code>mvn package -Pjlink</code>, I get an error message: There is already an artifact attached to the project.</p>
  <pre><code>[INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  34.657 s
  [INFO] Finished at: 2020-12-17T14:33:04+01:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jlink-plugin:3.0.0:jlink (create-runtime-image) on project memeforce-app: You have to use a classifier to attach supplemental artifacts to the project instead of replacing them. -&gt; [Help 1]
  </code></pre>
  <p>But I cannot add a classifier to the jlink-plugin?</p>
  <h3>Tag request</h3>
  <p><code>maven-jlink-plugin</code> =&gt; <a href="https://stackoverflow.com/questions/tagged/maven-jlink-plugin">maven-jlink-plugin</a></p>