maven:获取依赖项详细信息(Equinox)

发布于 2024-09-24 15:40:50 字数 993 浏览 0 评论 0原文

Maven 和 Equinox 的新手。在浏览 OSGi 教程时,我发出了以下命令。

pax-provision

出现以下错误。

 -> Provision bundle [mvn:org.compass-project/compass/2.1.1, at default start level, bundle will be started, bundle will
 be loaded from the cache]
 -> Preparing framework [Equinox 3.6.0]
 -> Downloading bundles...
 -> Equinox 3.6.0 : connecting...
         ___
        /  /
       /  / Oops, there has been a problem!
      /  /
     /__/   URL [mvn:org.eclipse.osgi/org.eclipse.osgi/3.6.0.v20100517] could not be resolved.
    ___
   /__/     Use --log=debug to see details.

似乎 Equinox 版本在存储库中不可用。所以
1. 在哪里寻找具有正确版本的存储库。有没有命令或者搜索工具?
2.我读到,我可以使用以下命令在本地安装它:

mvn install:install-file -DgroupId=<your_group_name>  \
-DartifactId=<your_artifact_name>  \
-Dversion=<snapshot>  \
-Dfile=<path_to_your_jar_file>  \
-Dpackaging=jar \
-DgeneratePom=true

如何获取所有这些参数(组 ID、artifactId 等)?

New to maven and equinox. While going through a tutorial on OSGi, I issued the following commmand.

pax-provision

which gave the following error.

 -> Provision bundle [mvn:org.compass-project/compass/2.1.1, at default start level, bundle will be started, bundle will
 be loaded from the cache]
 -> Preparing framework [Equinox 3.6.0]
 -> Downloading bundles...
 -> Equinox 3.6.0 : connecting...
         ___
        /  /
       /  / Oops, there has been a problem!
      /  /
     /__/   URL [mvn:org.eclipse.osgi/org.eclipse.osgi/3.6.0.v20100517] could not be resolved.
    ___
   /__/     Use --log=debug to see details.

Seems like the Equinox build is not available in the repository. So
1. Where to look for the repository which has the correct version. Is there any command or search tool??
2. I read, I may be able to install it locally, with the below command

mvn install:install-file -DgroupId=<your_group_name>  \
-DartifactId=<your_artifact_name>  \
-Dversion=<snapshot>  \
-Dfile=<path_to_your_jar_file>  \
-Dpackaging=jar \
-DgeneratePom=true

How can I get all those parameters (group id, artifactId etc)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

两人的回忆 2024-10-01 15:40:50

我可以找到 2 个可以获取 mvn 包的资源。
http://mvnrepository.com/http://maven.ozacc.com/ 。如果这是正确的地方,请评论。我可以从搜索结果中获取工件 ID 等。谢谢

I could find 2 resource where I can get mvn packages.
http://mvnrepository.com/ and http://maven.ozacc.com/ . Please comment if this is the right place. I could get the artifact id etc from the search result. thanks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文