I think working with maven is going to give me an aneurysm. Say you want to compile your code for Java 1.6. Seems like a simple task. In most build systems it is actually trivial, except in maven.

In ant, you add two attributes to the javac tag.

<javac destdir="${target.dir}/classes"
           ...
           source="1.6"
           target="1.6"
           ...>

In buildr, it’s even simpler.

compile.options.target = '1.6'

But what about maven you ask? Yes you knew it was coming. It’s
completely obnoxious what you have to do.

  <build>
    ...
    <plugins>
      ...
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

pom.xml files are just painful. Maven I hate you.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s