EAR Doesn't used <finalName>$
</finalName>.
The scripts and source code must also be changed to the right names:
app-main instead of appmain app-web instead of appweb app-one instead of appone app-two instead of apptwo
as the folder name and artifactId name