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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content