Skip to content
𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ

Share the knowledge

𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ

Share the knowledge

How to set execution environment and target environment JRE in maven projects

Posted on April 11, 2017September 25, 2021 By sastrija

By default when we create a maven project, it is configured to use JRE5 and will try to find a compatible JRE/JDK. Hence If you are using eclipse IDE, you will find below warning in “Markers” tab.

Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.

If your source and target JDK is other than JDK5, then you can make use of below maven plugin configuration to resolve this issue.

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.2</version>
  <configuration>
    <source>1.8</source>
    <target>1.8</target>
  </configuration>
</plugin>

Related

Uncategorized

Post navigation

Previous post
Next post
©2026 𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ | WordPress Theme by SuperbThemes