Set Up Java Version In Maven Based Projects

Asked By 0 points N/A Posted on -
qa-featured

While making a project on Maven I had to add java functionalities to make my project work. But I don’t know how to add java functionalities in a maven based project?

SHARE
Answered By 0 points N/A #318600

Set Up Java Version In Maven Based Projects

qa-featured

If you want to add the java functionality in your Maven project then you need to add the plugin in your pom.xml file. The plugin to be added is:

<build><plugins><plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.1</version>

<configuration> <source>1.8</source><target>1.8</target>

</configuration></plugin></plugins></build>

This will solve your problem very easily!

Related Questions