Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.2
-
Fix Version/s: 1.3
-
Labels:None
Description
The ability to bundle a JBoss sar file into an ear when type is specified as being sar in the dependency.
E.g:
<dependency>
<groupId>jboss-services</groupId>
<artifactId>sms</artifactId>
<version>SNAPSHOT</version>
<type>sar</type>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
The file will then be fetched from the sars artifact directory.
The reason why this doesn't work at the moment is that the ear plugin doesn't test for sar and thus doesn't bundle the sar.
This can be achieved by adding the following to the plugin.jelly of the ear plugin where the other tests are:
<j:if test="${dep.type == 'sar'}">
<j:set var="bundle" value="true"/>
</j:if>
Note that it must NOT be added as a module in the generated application.xml.
This will do for the moment, in future maybe generation of jboss-app.xml could be added.
Applied similar fix