mthmulders / snail-pace-rocket-speed-demos

Accelerating Maven Builds: From Snail's Pace to Rocket Speed -- Demo's
2 stars 2 forks source link

Detecting mvn3 / mvn4 aliases doesn't work #6

Closed mthmulders closed 3 months ago

mthmulders commented 4 months ago

On my Macbook, the setup.inc.sh snippet doesn't properly detect the existing alias mvn3. As a result, it declares a function that invokes mvn (which in my case is mvn4).

In short, we need to re-think how to make the demo scripts portable.

On my machine:

@bmarwell, which commands do you normally use?

bmarwell commented 3 months ago

I use, like most people, sdkman. And my default is still on mvn3.

We probably could do a workaround for your local user... If $USER == mthmulders 😆

mthmulders commented 3 months ago

Could it have to do with the fact that I run zsh and not bash on my Macbook?

mthmulders commented 3 months ago

OK, I think I found a solution that works for Homebrew (which has two packages, maven and maven-snapshot). I think it could also work for SDKMan! - if you could let me know where it installs the Maven executable by default, then at least I can have it detect Maven 3.x, but I don't know if you have a default location for Maven snapshots...