Gradle-based EAR project [message #1790554] |
Tue, 12 June 2018 19:44 |
Daniel Platz Messages: 5 Registered: July 2016 |
Junior Member |
|
|
Hi there,
Is there any experience with using WTP / Server Adapaters to deploy a Gradle-based EAR project?
WAR projects are working fine. I will not post all the code here, but basically adding
apply plugin: 'war'
apply plugin: 'eclipse-wtp'
will make the WAR a deployable resource in Eclipse. The WAR deploys fine on Wildfly, Liberty, etc.
For EARs I basically have a project based on
apply plugin: 'ear'
apply plugin: 'eclipse-wtp' .
When running "gradle build" a valid and deployable EAR file is built; just to confirm that it is not an issue with Gradle; but when I deploy the EAR in Eclipse, e.g. on Wildfly it will deploy just and empty folder and on Liberty it will not allow to push the EAR to the server in the "Add and Remove" dialog (says "cannot add an EAR project to the server unless it contains a Web, EJB, .... module".
So, clearly Eclipse/WTP is not aware of the modules of the EAR even though from Gradle-perspective all is fine.
Any experience with Gradle & EARs and Eclipse WTP? Any example projects that work? Just wondering if i chasing after a feature that noone is using and never worked...
Thanks in Advance,
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03290 seconds