Given a multi-module Maven project where the top-level module foo-web depends on modules foo-service and foo-model, where foo-web has jar packaging with a Main class
when the Main class is run directly from my Eclipse workspace, the dependent modules do not get discovered.
When running mvn package and starting the Swarm JAR via java -jar foo-web-swarm.jar, everything is fine.
This appears to be caused by ArtifactManager.allArtifacts() not providing a suitable archive name for class folders. A class folder like ../foo-service/target/classes will end up in the generated WAR as WEB-INF/lib/85cbee12-5c68-403d-8cd3-f088e315ec3f. Since this library is missing the .jar extension, it will be ignored.