I assume this is happening because of your Maven setup/properties. (The same can happen with jDeveloper, if you don't have a property set it will override your context root).
Have you seen this answer? Run with Netbeans (and Maven) the right context root
And the corresponding Maven link: http://maven.apache.org/plugins/maven-ear-plugin/examples/customizing-context-root.html