maven:获取依赖项详细信息(Equinox)
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以找到 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