[BUILDTOOLS-118] Detect Maven Created: 27/May/15  Updated: 10/Jun/15  Resolved: 10/Jun/15

Status: Resolved
Project: BuildTools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Brian Graham Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None


 Description   

When loading maven, could you try to detect it first by checking the M2_HOME and M2 user/system environment variables?

The related area where maven is loaded:
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/buildtools/browse/src/main/java/org/spigotmc/builder/Builder.java#174



 Comments   
Comment by Brian Graham [ 10/Jun/15 ]

I was unable to login to the spigot stash to submit a pull request, so I created a patch. It preserves the original functionality in the event the system does not have an M2_HOME

https://paste.netcoding.net/raw/taxonoba

Comment by md_5 [ 04/Jun/15 ]

Maybe you could open a PR with it yourself then?

Comment by Brian Graham [ 04/Jun/15 ]

The maven version was updated 6 days ago and this has clearly gone unnoticed seeing as how easily it is to implement environmental checks in Java.

Generated at Fri Mar 28 00:36:22 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.