How to get Maven project basedir() from my Java code?
You can't, because maven is used for building, and doesn't "exist" after the build.
If you need that during the build (for example via the exec plugin), then it is either accessible as a system propery or you can pass it as argument to the executed program.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With