Thanks Scott for your answer. It doesn't solve my issue, but as an alternative solution it will certainly be useful.
We used to use RAD a long time ago, which supported “loose” and hotdeploy for WAS. Later we switched to Intellij's IDEA and dealt with deployment without ear building by simply copying files to directories:
- profiles/profilename/config/cells/cellname/applications/AppEar.ear/deployments/AppEar/...
- profiles/profilename/config/cells/cellname/blas/AppEar...
- profiles/profilename/config/cells/cellname/cus/AppEar/...
In the first directory in the deployment.xml file, we had added:
<properties xmi:id=“Property_1234567890123” name=“was.loose.config” value=“file:/C:/Users/.../projects/SomeApp/AppEAR/looseconfig.xmi”/>.
It worked this way with no problem on Windows on WAS 8.5.5.9.
We are currently trying to switch from this local environment to docker, but the analogous approach does not work (WAS traditional 8.5.5.27 docker ubi-8).
I have the local project mounted to /work/localProject/, so I change the appropriate paths, e.g.
<properties xmi:id=“Property_1234567890123” name=“was.loose.config” value=“file:/work/localProject/AppEAR/looseconfig.xmi”/>.
Anyone have an idea if anything changed in WAS 8.5.5.9? It's possible that I have some stupid bug, but it could be that deployment.xml no longer supports this property: was.loose.config in higher versions than 8.5.5.9 or you have to enable extra some mode in settings.
looseconfig.xmi looks more or less like this:
<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.jst.j2ee.commonarchivecore.looseconfig:LooseArchive xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:org.eclipse.jst.j2ee.commonarchivecore.looseconfig="commonarchive.looseconfig.xmi" uri="/work/localProject/AppEAR" binariesPath="/work/localProject/AppEAR" resourcesPath="/work/localProject/AppEAR" archiveType="EAR">
<looseChildren uri="SomemoduleEJB3.jar" binariesPath="/work/localProject/SomemoduleEJB3/bin" resourcesPath="/work/localProject/SomemoduleEJB3/bin" archiveType="EJBJAR"/>
<looseChildren uri="Somemodule.jar" binariesPath="/work/localProject/Somemodule/bin" resourcesPath="/work/localProject/Somemodule/bin" archiveType="SIMPLEJAR"/>
</org.eclipse.jst.j2ee.commonarchivecore.looseconfig:LooseArchive>