maven-bundle-plugin:定义的工件不是原型
我将 Apache Felix 中的“maven-bundle-plugin”配置为 Eclipse 中的 Maven 原型(因为它丢失了),但是当我尝试用它创建一个新的 Maven 项目时,出现错误:
Unable to create project from archetype [org.apache.felix:
maven-bundle-plugin:2.3.5 -> ]
The defined artifact is not an archetype
然后我尝试了相同的过程与ops4j Pax(在Eclipse中预先配置),这似乎是类似的东西,并且它有效,所以我认为我做得对,问题出在“maven-bundle-plugin”。
错误消息是什么意思,我能做些什么来修复它,或者我是否以某种方式弄错了?
[编辑] 虽然我可以使用 ops4j Pax 创建项目,但我随后得到:
Project build error: Unknown packaging: bundle
这显然已在 2009 年修复!所以这显然也行不通。
I configured the "maven-bundle-plugin" from Apache Felix as a Maven Archetype in Eclipse (since it was missing), but when I try to create a new Maven project with it, I get as error:
Unable to create project from archetype [org.apache.felix:
maven-bundle-plugin:2.3.5 -> ]
The defined artifact is not an archetype
I then tried the same procedure with ops4j Pax (which is pre-configured in Eclipse), which seems to be something similar, and it worked, so I think I'm doing it right and the problem is with "maven-bundle-plugin".
What does the error message mean, and what can I do to fix it, or am I somehow getting this all wrong?
[EDIT] While I can create the project with ops4j Pax, I afterward get:
Project build error: Unknown packaging: bundle
which as apparently been fixed in 2009! So this obviously doesn't work either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于成功地完成了以下过程:
顺便说一句,我花了很长时间才弄清楚为什么这在 Windows 批处理文件中不起作用:那是因为 mvn 本身就是一个批处理文件,所以你必须使用“call ”。
I finally had success with the following procedure:
And btw, it took me about ages to work out why this doesn't work in a Windows batch file: that is because mvn is itself a batch file, and so you have to use "call".