This is different from what I was thinking. Something more like

```
<properties>
-    <jboss.home>${project.basedir}/../../build/target/jboss-as-${jboss.as.release.version}</jboss.home>
+    <jboss.home>${project.basedir}/../../build/target/${release.prefix}-${jboss.as.release.version}</jboss.home>
   </properties>
```

Basically make the text "jboss-as" vs "wildfly" vs "jboss-eap" a variable and use that variable everywhere.

The variable name ${release.prefix} isn't great. It's fine for the way the text is used in my example above, but isn't particularly general-purpose.