一个maven的问题求教

beforesleep1 2014-05-05 03:49:22
我正在用maven package一个开源软件,提示缺少bte:core。我下载这个东西到文件夹下,然后执行mvn install:install-file -Dfile=E:\apache-maven-3.2.1\bte-core-0.9.2.3.jar -DgroupId=gr.ekt.bte -DartifactId=bte-core -Dversion=0.9.2.3 -Dpackaging=jar,希望手动安装这个jar,但是执行后出现了以下提示

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4
:install-file (default-cli) on project standalone-pom: The artifact information
is incomplete or not valid:
[ERROR] [0] 'groupId' is missing.
[ERROR] [1] 'artifactId' is missing.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

本人菜鸟,搞不懂。希望有高手帮忙解答下!
...全文
8974 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
vincentguo_ 2014-05-05
  • 打赏
  • 举报
回复
引用 3 楼 u012984654 的回复:
[quote=引用 2 楼 vincentguo_ 的回复:] 楼主应该多多利用 搜索引擎 没用过maven , 但问题帮你搜到了 这里的家伙和你碰到一样的问题 http://stackoverflow.com/questions/21497607/install-maven-jar-with-pom-into-local-repository 解决: 用这里的命令 http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html 你的jar有了,还有找到那个pom.xml的路径,用命令应该能解决的
今天上午看到过这个帖子,可是这两个命令怎么执行啊?需要我设置自己的路径么?指向哪里? mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -Dfile=path-to-your-artifact-jar -DpomFile=path-to-pom mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -Dfile=<path-to-file>[/quote] 从那个帖子的描述看,是你自己jar的路径 和 jar包里面pom文件的路径
beforesleep1 2014-05-05
  • 打赏
  • 举报
回复
引用 2 楼 vincentguo_ 的回复:
楼主应该多多利用 搜索引擎 没用过maven , 但问题帮你搜到了 这里的家伙和你碰到一样的问题 http://stackoverflow.com/questions/21497607/install-maven-jar-with-pom-into-local-repository 解决: 用这里的命令 http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html 你的jar有了,还有找到那个pom.xml的路径,用命令应该能解决的
今天上午看到过这个帖子,可是这两个命令怎么执行啊?需要我设置自己的路径么?指向哪里? mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -Dfile=path-to-your-artifact-jar -DpomFile=path-to-pom mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -Dfile=<path-to-file>
vincentguo_ 2014-05-05
  • 打赏
  • 举报
回复
楼主应该多多利用 搜索引擎 没用过maven , 但问题帮你搜到了 这里的家伙和你碰到一样的问题 http://stackoverflow.com/questions/21497607/install-maven-jar-with-pom-into-local-repository 解决: 用这里的命令 http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html 你的jar有了,还有找到那个pom.xml的路径,用命令应该能解决的
beforesleep1 2014-05-05
  • 打赏
  • 举报
回复
困扰我一天了 求大神空降帮忙啊

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧