我有标准依赖类型的标准maven项目:
<dependencies>
<dependency>
<groupId>com.ogp</groupId>
<artifactId>com.pt.core.messages.api</artifactId>
<version>${coreVersion}</version>
</dependency>
</dependencies>
问题是上面的依赖是p2类型。 在“存储库”部分添加p2存储库并使用tycho没有帮助。 如何在标准maven项目中使用p2依赖项(使用jar包装类型,而不是eclipse-plugin类型)?
答案 0 :(得分:0)
通过创建将首先构建的简单osgi包来解决,并生成大jar,其中所有OSGI包都按照此处所述解压缩:Use dependencies from Eclipse p2 repository in a regular Maven build?。 该罐子将用于标准的maven项目。