JBoss开发者工作室MAVEN项目

JBoss开发者工作室MAVEN项目,jboss,Jboss,如果我使用JBoss Developer Studio创建了一个名为“getting started”的maven项目,其类型为maven archetype webapp,那么我会收到以下警告: Description Resource Path Location Type Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that

如果我使用JBoss Developer Studio创建了一个名为“getting started”的maven项目,其类型为maven archetype webapp,那么我会收到以下警告:

Description Resource    Path    Location    Type
Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.   getting-started     Build path  JRE System Library Problem

我安装了JavaSE7,并将系统变量Java_Home设置为jdk目录。我还通过JBoss DS的安装向导设置了jdk目录的路径。

检查项目的Java构建路径: 1.在JBossDeveloperStudio中,右键单击该项目。 2.单击属性。 3.在左侧,单击Java构建路径。 4.在“库”选项卡上,选择当前的JRE系统库,然后单击“删除”。
5.单击添加库以添加其他JRE系统库(您应该能够选择工作区默认JRE)。

建议:使用Netbeans或Intellij。这些IDE都具有良好的Maven集成。两者都是在“Maven”出现后发展起来的。