Maven: Set name of final packaged artifacts

Here’s how to set the final name of the artifact generated by Maven.

    <!-- Sets name of regular artifact -->

                <!-- Name of assembled jar with all dependencies -->
                <!-- Set to false to prevent '-jar-with-dependencies' to be appended to the file name -->

Note that we use a variable here so that the name will be the same as the artifactId. It could of course also be just a regular hard coded string. Also note that since we’re using the same name for both packaged artifacts, the latter (the one with dependencies) will overwrite the first.