本文介绍了如何在嵌入eclipse的maven资源库中安装jar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是在Maven存储库中安装一个jar文件。 解释了如何使用MVN进行安装。

My objective is to install a jar file in a Maven repository. This post explains how to do an install with MVN.

但是因为我在Eclipse中嵌入了Maven,所以我不知道在哪里运行以下命令:

But but since I have Maven embedded in Eclipse, I don't know where to run the following command:

mvn install:install-file  -Dfile=C:\lib\rest\WadlGenerator.jar \
                          -DgroupId=foo.in.shop.rest.wadl \
                          -DartifactId=WadlGenerator \
                          -Dversion=1.0 \
                          -Dpackaging=jar \
                          -DlocalRepositoryPath=C:\maven\repositories\internal

简而言之:如何识别Eclipse嵌入式Maven的Maven安装目录?

In short: How can I identify the Maven installation directory for Eclipse-embedded Maven?

推荐答案

从eclipse可以做到:

From eclipse you can do:

运行 - >运行配置 - > Maven构建(双击)

Run -> Run Configurations -> Maven Build (double click)

您的目标是安装:install-file

Your goal is install:install-file

还有你应填写参数的键和值

And also you should fill parameters' keys and values

P. S.但我认为在系统

P. S. But I think that it is more better to have external maven installation in system

这篇关于如何在嵌入eclipse的maven资源库中安装jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 03:34