Is property substitution enabled for the jboss-deployment-structure.xml file in EAP 6/7?

Solution Unverified - Updated -

Issue

  • I want to be able to do property substitution in jboss-deployment-structure file for a variable like ${project.version} which is part of the maven build for instance:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">

  <sub-deployment name="myfirstapp-${project.version}.jar">

    <dependencies>
      <module name="com.xxx.yyyy"/>
    </dependencies>

    <exclude-subsystems>
      <subsystem name="jaxrs" />
    </exclude-subsystems>

  </sub-deployment>

  <sub-deployment name="mysecondapp-${project.version}.jar">

    <dependencies>
      <module name="com.xxx.yyy"/>
    </dependencies>

    <exclude-subsystems>
      <subsystem name="jaxrs" />
    </exclude-subsystems>

  </sub-deployment>

</jboss-deployment-structure>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7
  • Maven

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.