32 points · by winteriscoming · 9y ago · 44 comments
The flexibility was sort of good for our enterprise code base that was still using Ant but over all it was just way too complicated (this was in part because it was not integrated with any particularly build system at the time ~ 8 or so years ago).
I have come to the conclusion that with proper parent poms and enforcer plugins (particularly dependency convergence) you can generally get Maven to do a fairly good job.
The only thing I can't decide is if Maven (and Ivy for that matter) should have lock files. I have some ambivalence to lock files (ie a file that gets auto generated and that you check in). Bundler and cargo do it as well as a netflix gradle plugin.
I deal with the lack of a lock file by using maven parent poms, sonatype, enforcer plugins, and version plugins.
---
We see Ivy as a widely used component.
We use archiving some components to
recalibrate our focus. I don't think
that we want to archive Ivy in the near
future. Instead we try to push Ivy.
If you want to help with Ivy, you're welcome.
"It's already a challenge to stick with
Ivy build system itself given the lack of
fixes/releases/responses." What are the
problems you think are resolved with new
Ivy releases?
Jan
---At one point recently, I did a search and couldn't find any committer activity of any kind (code, mailing list messages, JIRA updates) for the better part of a year. And it's not like the project is "stable" or "complete" either -- users are constantly making posts about serious bugs that go unanswered, because there's nobody active who has the knowledge to investigate or fix them. (I've run into a couple of these myself.)
EDIT: Just took another look to see if anything had changed. The good news is that a couple of very minor bugfixes were committed in November, amounting to a grand total of 14 lines of code changed. There have been no other commits in the past 12 months, and the last time one of the committers responded to a question on the mailing list was March 2015.
SBT is quite a used one too.
IMO, Ivy is one of the worst parts of sbt. Take a build system with great ideas, like immutable state and parallel by default, and insert a complex single-threaded dependency resolution library.
Are there any good cross-platform alternatives for C++ dependency management?
Google gave up on their plugin for C++ and is now advising cmake as the future for new NDK projects.
Maven solves the problem Ivy is designed to solve, but it also solves the build problem. You may just think of it as a "build tool", but I think of it as a "build and dependency management tool". There are build systems out there that don't solve dependency management (obviously Ant is one of them, there is also SBT, Pants, Buck, and probably more I'm not familiar with). Ivy is a component of creating hygienic builds for these build tools, and it would be very sad if it disappeared.
If I want to make a "scripty" Java program I can generate a project file from the archetype which sets me up with dependencies I need and an easy way to write tests.
Maven is terrible. Give SBT or Gradle and try and you'll see just how terrible Maven is. SBT still has its issues (OMG why is everything a macro!), but I still prefer it to trying to build anything in Maven.
I tried all the listed tricks to get the schemas into the shaded jar and none of them worked. So now I have to put big fat warnings in my README.md files that "yes, there's a bunch of errors on startup, and yes, there's a 60 second delay, but you can ignore it".
Maven has problems. It's not perfect by any means. I would love to see it rewritten, get rid of the verbose XML which makes viewing dependencies hard and fix the craziness around generated code.
Honestly, I'm tempted to make a fork of Cargo for Java, it's nearly perfect. But this goes against my opinion that build tools should be in the same language as the code they build.
The problem with that is that it doesn't work with slow / compiled languages. That's the worse thing about Maven (tied with the insane unnecessary complexity of the plugin architecture). The dev cycle for trying out a new plugin is atrocious. Compare that to editing a local copy of a Python, Ruby, or Groovy script.
Also Maven is a project format in NetBeans. Just need to open it and its goals are mapped to IDE actions.
I feel like most people just hate Maven because of XML, if that's your problem then just use YAML (you can do that now). The other group seems to dislike that everything in Maven is done with plugins; I can understand this, there's no easy escape-hatch to do something no-declarative, but writing a Mojo isn't that much harder than putting some random task in your Gradle build.
i appreciate maven's downloading of dependencies. but ivy does that too, only better: it generates a classpath list of the deps for me, to use when building and running.
maven does also handle builds, but it does so poorly. it is huge, overcomplex, slow. things that are easy on the command-line, are hard/weird to do with a maven pom.xml. the phases, lifecycles, goals, encoded in their xml format. so much stuff for so little gain. i've recently spent hours figuring out how to get my javadoc+doclet invocation in a format that maven understood (running it on a command-line was relatively easy; to get it to work in maven easily i ended up committing a compiled version of the doclet).
it baffles me maven is used so widely. i think java developers have a high tolerance (and often even love for) the unnecessarily complicated... that, or they haven't seen and can't imagine better ways.