Open scottkurz opened 1 year ago
I think we can either:
So for 1. we could allow:
../mvnw ...rest of parms
For 2., the algorithm would be like:
a. Look for mvnw in immediate dir b. Look for mvnw in parent dir (possibly recursively walking up the chain) c. Look for mvn in preferences d. Find mvn via PATH
I like 2., I think it's simpler for the user... they're not really trying to achieve some unique custom behavior, just to use the wrapper they have, and we avoid having to get it right detecting "is this a mvn executable?"
We like 2., but what if the parent (in 2b.) is a containing directory but not an actual "parent"? Consider further before implementing. How does this apply to VSCode and IDEA if those use more single project rather than a single workspace.
PROBLEM
Say I have a multi-mod Maven structure like:
In Liberty Tools Eclipse, I can run from the parent project and use the default parms (which is an empty list) and get
mvnw liberty:dev
, i.e. it'll use the mvnw wrapper in the root.However, if I try to run from the 'war' level, I'll get default parms of (
... -f ../pom.xml -pl war
). However there's no way to pick up mvnw.IDEA
../pom.xml
as the-f
parm value?