rod mclaughlin


Whingeing POM - the stupidity of Maven (18 aug 10)

If you google my name, most of the results are internet postings by me about my struggles with the Java tool 'Maven'. In order to test the SOAP rubbish I've had to generate at work, I had to get SOAPUI. This is written in Java, which I thought I'd escaped from. To compile it, you need Maven. To compile Maven, you need Ant. To run Ant, you need Java, which now has licensing issues. Yeah, Java is open-source. But it's owned by Oracle, which is like saying I baked you a cake, but I threw it in the septic tank. And it wasn't a very good cake anyway.

It took many goes to install Maven. I finally realized the instructions were wrong. It says set M2_HOME to where you want Maven installed. OK, ~/maven. Then it says it MUST have a Maven-style version number, eg. ~/maven-2.2.1-SNAPSHOT. OK. But what it really means it must be the exact name of the version you are trying to install, eg. ~/apache-maven-2.2.1. Add export M2_HOME=~/apache-maven-2.2.1 in your .bashrc file, run 'source ~/.bashrc' from the command line, then run 'ant' to install Maven. Now you can go back to installing whatever it was you were trying to install three weeks ago, if you can remember.

         [java] [INFO] [enforcer:enforce {execution: enforce-jdk}]
         [java] Downloading: http://repo1.maven.org/maven2/org/codehaus/modello/modello-core/1.0.1/modello-core-1.0.1.pom
         [java] Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.pom
         [java] Downloading: http://repo1.maven.org/maven2/org/sonatype/plexus/plexus-build-api/0.0.3/plexus-build-api-0.0.3.pom
         [java] Downloading: http://repo1.maven.org/maven2/org/sonatype/spice/spice-parent/10/spice-parent-10.pom
         [java] Downloading: http://repo1.maven.org/maven2/org/sonatype/forge/forge-parent/3/forge-parent-3.pom
         [java] Downloading: http://repo1.maven.org/maven2/org/codehaus/modello/modello-plugin-stax/1.0.1/modello-plugin-stax-1.0.1.pom
    etc. for thousands of lines



Back
Portland London