14 November 2008

Using finalName to control the archive name

In Maven, by the default the archive names [war, jar and ear] are derived from artifactId and version. To override and customize the name, we can make use of <finalName> as shown in the below snippet from pom.xml.

   <build>
        <finalName>mycustom_name</finalName>
        <plugins>
            <plugin>
            //Further code goes here