Maven being less that wonderful
Dec. 20th, 2020 06:39 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Maven is a the big thing in Java build tools. At one time it was Ant, and now some people use Gradle. My view would be to use anything but Maven because there are so many things about it that are annoying and stupid. Today I came rediscovered one such thing.
Maven wants you to put things in certain places, and it wants you to define a bunch of stuff in
Edit: subsidiary rant - this simple archetype generates 81 lines of xml. WTF?
Maven wants you to put things in certain places, and it wants you to define a bunch of stuff in
pom.xml
, and I knew that for a new project Maven has archetypes as a way of setting up some of that boilerplate. Hmm, what's the syntax for that? I guessed a couple of times and it didn't work. A bit of searching found me a simple archetype which does the bare minimum - sounds like what I want. But the syntax to do that is mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-simple -DarchetypeVersion=1.4WTF?
Edit: subsidiary rant - this simple archetype generates 81 lines of xml. WTF?