jbanana: Badly drawn banana (Default)
[personal profile] jbanana
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 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.4
WTF?

Edit: subsidiary rant - this simple archetype generates 81 lines of xml. WTF?

May 2025

M T W T F S S
   1234
5678 91011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 17th, 2025 09:43 am
Powered by Dreamwidth Studios