Can you change the name of a <sub-deployment> in jboss-deployment-structure.xml?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6
Issue
- Is there a way to remove the version from the
names? I'd rather not edit this file every time we change our version number. Are '*' allowed in the names?
Resolution
* is not allowed. The name of a sub-deployment is purely based on it's relative path name, and cannot be overridden. That means that the only way to ensure there aren't version numbers in the <sub-deployment name="..."> is to not have a version number in the WAR file name. If you have version numbers in the WAR name, you are likely to have version number references in the application.xml file too.
SBR
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.