In order to have a constant JNDI name for remote calls, I want to remove the version from the EAR package name. I do it with the tag < finalName > in the maven-ear-plugin. It works fine but, when I deploy (run) the package with Netbeans (version 7.1.2), it raises an exception: java.lang.IllegalArgumentException: No archive for deployment
It seems Netbeans always expects a name like ${project.artifactId}-${project.version}.ear. How is it possible to change this behaviour?
Edit: It only happens when deploying on remote (Glassfish) servers.
Many thanks! JM