Skip to main content



      Home
Home » Archived » Maven Integration (M2E) » Default jre
icon5.gif  Default jre [message #735179] Tue, 11 October 2011 03:30
Eclipse UserFriend
Hello.

I'm working with eclipse indigo 3.7.
I also installed m2e plugin version 1.0.100.20110804-1717.
There is only one installed jre : jdk1.6.0_23 (c:\....\jdk1.6.0_23)

If I do new maven project ... create a simple project (or any other archetype), the project is created with jre system library : J2SE-1.5 containing some jars from c:\....\jdk1.6.0_23\jre\lib. And a warning message :
Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment. JRE System Library Problem.

The pom.xml is only containing

<project xmlns="...maven.apache.org/POM/4.0.0" xmlns:xsi="...www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="...maven.apache.org/POM/4.0.0 ...maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>toto</groupId>
<artifactId>toto</artifactId>
<version>0.0.1-SNAPSHOT</version>
</project>

And I have to add manually, for each project,

<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>


So my question is why trying to use java 1.5 while only 1.6 is installed ?
How to fix the problem ?

Thanks.

Previous Topic:null pointer exception when using custom archetype
Next Topic:Unable to install m2 plugin on ganymede 3.4
Goto Forum:
  


Current Time: Sat Jul 05 02:37:24 EDT 2025

Powered by FUDForum. Page generated in 0.03616 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top