我使用以下脚本创建了一个 jsf+richfaces 项目
mvn archetype:generate \
-DarchetypeGroupId=org.richfaces.archetypes \
-DarchetypeArtifactId=richfaces-archetype-simpleapp \
-DarchetypeVersion=4.0.0.Final \
-DgroupId=com.confiz \
-DartifactId=coinfling \
-Dversion=1
这将创建一个示例 jsf+richfaces 项目。然后我使用 mvn eclipse:eclipse 创建一个 eclipse 项目。当我将项目导入 Eclipse 时,它给出了一个类路径错误,我的所有richfaces jar 文件都丢失了?我以为 maven 会下载 jar 文件并将它们放入我的项目中。这是从 mvn eclipse:eclipse 阶段生成的类路径文件
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/el/el-api/1.0/el-api-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.2/jstl-1.2.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="M2_REPO/org/richfaces/ui/richfaces-components-ui/4.0.0.Final/richfaces-components-ui-4.0.0.Final.jar"/>
<classpathentry kind="var" path="M2_REPO/org/richfaces/ui/richfaces-components-api/4.0.0.Final/richfaces-components-api-4.0.0.Final.jar"/>
<classpathentry kind="var" path="M2_REPO/org/richfaces/core/richfaces-core-api/4.0.0.Final/richfaces-core-api-4.0.0.Final.jar"/>
<classpathentry kind="var" path="M2_REPO/com/google/guava/guava/r08/guava-r08.jar"/>
<classpathentry kind="var" path="M2_REPO/org/richfaces/core/richfaces-core-impl/4.0.0.Final/richfaces-core-impl-4.0.0.Final.jar"/>
<classpathentry kind="var" path="M2_REPO/net/sourceforge/cssparser/cssparser/0.9.5/cssparser-0.9.5.jar"/>
<classpathentry kind="var" path="M2_REPO/org/w3c/css/sac/1.3/sac-1.3.jar"/>
<classpathentry kind="var" path="M2_REPO/com/sun/faces/jsf-api/2.0.4-b09/jsf-api-2.0.4-b09.jar"/>
<classpathentry kind="var" path="M2_REPO/com/sun/faces/jsf-impl/2.0.4-b09/jsf-impl-2.0.4-b09.jar"/>
<classpathentry kind="var" path="M2_REPO/net/sf/ehcache/ehcache/1.6.0/ehcache-1.6.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/testng/testng/5.10/testng-5.10-jdk15.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
</classpath>
我究竟做错了什么 ?这个 M2 回购路径是什么?我现在该怎么办 ?
亲切的问候