Wednesday, September 7, 2011

How to add Maven compiler plugin in to your pom.xml file

<build>
<plugins>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
       </plugins>
</build>

in configuration, you have to specify your JDK version.... (in my case it is JDK 1.6)

this plugin should be added inside to the <build> </build> section in your pom.xml file


Regards
Chathuranga Tennakoon


No comments:

Post a Comment