This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hello, When I create a Maven web application with WildFly in NetBeans the context path is initialized whith : "/mavenproject-1.0-SNAPSHOT". When I run this project the "-1.0-SNAPSHOT" is in the url. I prefer that the context path was initialzed without the version WildFly plugin 1.0.17 NetBeans 8.0 WildFly 8.1.0 Regards,
You 'just' have to change that in the project properties to define the web context you want or change the artifact name in your pom.xml.
Thanks for your response. But if most of people don't wan't the version in the context path* it's better to directly initialize context path without version so that we don't need to worry about. It's not a defect but a proposal of enhancement. It's about ease of use. *And I think it's the case, I never see version in url and GlassFish plugin behavior don't include version in the context path.
The problem is that this would require the creation of a jbossweb.xml which is not present in the maven archetype. This is something I tend to avoid as it is not what you would expect : - you are creating a foo-1.0-SNAPSHOT.war file (because the finalName is not defined in your pom) - you didn't specify something different in your project properties. I don't like doing stuff not expected in a classic usage : if you did this using only Apache maven then you would get the same result which I think is fine.