-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamped build system -- Maven? #7
Comments
Did a bit of searching on this, including this seemingly-helpful article which even talks Netbeans: https://blog.idrsolutions.com/convert-ant-based-netbeans-project-to-a-maven-project/ One downside of moving from ant -> maven is that it requires a different directory structure, so we'd end up with another big directory-move commit which would break historical diffing in annoying ways. I did that once when building up to v1.3.0, which I didn't mind much, but it'd be a shame to break it now that there's actual "live" history. So, we'll see. I may just shelve this idea for the time being. |
So yeah, not gonna be handling this for now. Will be keeping it open 'cause I would like to eventually do it, but laziness plus not wanting to make VCS history more messy is winning out. |
Well, ended up giving this a bit of a go, as we approach v1.4.0, but I'm going to once again kick it down the road. Getting the project as a whole migrated from ant -> Maven isn't too bad, really, but there's some edge cases I don't feel like fighting through. A few things to note:
The main thing causing me to kick this down the line is test handling. Running tests through Maven doesn't actually list out our dataProvider arguments for failures. See an old bug about it and a potential workaround @ stackexchange. I just don't feel like mucking with that stuff. As an example of what I mean, a Maven failure ends up looking like: There's also the potential issue of generating the "fat" Jarfile which I want to keep using. It does look like there's support for that kind of thing in Maven, though that may involve making some concessions to how I want stuff; it looks like it might not be as flexible as my current ant stuff. So, eh, kicking this down the line a bit more. It would be nice to get that auto-dependency stuff down, but it's feeling like too much of a hassle at the moment. |
My understanding is that
ant
is a somewhat deprecated system, or at least not really recommended by the wider Java community. Maven seems to be the way to go? Maven would also allow us to specify third-party libraries a little more sensibly, and avoid having the third-party libraries stored right in our git repo. It'd also be nice to be able to build+run from commandline a bit more easily, though technically I think I could fire off ant builds from the CLI already...The text was updated successfully, but these errors were encountered: