default maven compiler setting
Posted
by Jeeyoung Kim
on Stack Overflow
See other posts from Stack Overflow
or by Jeeyoung Kim
Published on 2010-03-28T02:06:54Z
Indexed on
2010/03/28
2:13 UTC
Read the original article
Hit count: 324
Hello Maven gurus,
Right now, I'm writing a small java application by my own, with few maven pom.xml files. I want to make all my maven packages to compile with jdk 1.6, and I can't find a good way to do it without manually setting it on every single POMs - I'm sick of copy-and-pasting
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
in every single pom.xml file I generate.
Is there a simpler way to resolve this issue?
© Stack Overflow or respective owner