Wednesday, April 6, 2011

Set "Thip, crinkle, spoit" to OFF

It's a Dilbert reference.

Here's something that tends to bite me on the ass if I haven't started a new Maven project recently: Maven defaults to Java 1.3. Like, even if my /usr/bin/java is 1.6, Maven still horks if my code isn't compatible with 1.3, which it usually isn't because of generics. So I end up having to track down this snippet and paste it into my pom.xml:
    <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>


On a related note, it seems that the Groovy-Eclipse plugin doesn't add JUnit to the classpath for Groovy projects. So you need to paste
    <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>

into your .classpath file and restart Eclipse.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Jekyll Pages List

Getting a list of pages in a Jekyll site is easy, but paring that down to just the top-level files and the index pages is tricky. {% for p...