1

我正在从命令提示符 mvn install sakai:deploy 安装和运行 sakai 项目,但命令提示符显示错误,即缺少 2 个工件,即 2 个 jar 文件丢失手动下载它我正在下载它并将其保存在本地系统中,然后我可以如何安装并部署它

4

2 回答 2

2

When you build Sakai it will generate that missing jar file and place it into the local maven repo. That said, this version of Sakai is very old and you should be running Sakai 10. We suggest you upgrade to Sakai 10 and maven 3. If you do, this issue will go away.

The process for building Sakai is as follows:

  1. Open a command line shell
  2. Change directory to your Sakai source root directory (should contain many directories including the "master" directory)
  3. Execute mvn clean install to build the Sakai source using maven Note: The build will take an extra 5-10 minutes to download dependencies the first time
  4. Execute mvn sakai:deploy to deploy Sakai to your tomcat using maven
    • Partial builds are supported by the maven2/3 build system
    • You can do a "mvn clean install sakai:deploy" from any subdirectory and build just that code
    • Once you have downloaded the jars you can run maven off-line with mvn -o clean install sakai:deploy
于 2014-06-06T03:56:18.703 回答
0

据我所知,您必须手动将 jar 添加到需要的 .m2 存储库中,或者在 pom.xml 中为其添加依赖项(它会自动将其添加到存储库中)。您还可以尝试一件事,转到项目>右键单击>构建路径>添加外部 jar(它会将 jar 添加到您的项目中)。

于 2012-01-18T10:40:11.360 回答