OpenLiberty / liberty-tools-eclipse

Eclipse Public License 2.0
11 stars 8 forks source link

Though using multi-project Gradle the suggested run config uses Maven multi-mod #311

Open scottkurz opened 1 year ago

scottkurz commented 1 year ago

I set up a Gradle multi-project build from: https://github.com/OpenLiberty/ci.gradle/tree/main/src/test/resources/loose-ear-test.

(Since it's an IT it needed some tweaking.. plus buildship likes to treat this as a single Eclipse project. So I won't go into detail on how to set this up).

But like our multi-mod Maven examples, this has a server.xml at the EAR level.

When I did a Start from the ear-level project, the suggested run config was as if we were using multi-mod Maven: -f ../pom.xml -am -pl ejb-ear

scottkurz commented 1 year ago

Seems there's a way to import a multi-project Gradle project as one single Eclipse project...in which case this problem does not occur. The problem happens when multi-project Gradle gets imported as multiple Eclipse projs. (Would be nice to know why/when this happens more generally).