我正在使用maven-bundle-plugin
并试图将Google地图依赖项捆绑在一起。Google地图类未在导入包中显示MANIFEST.MF
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-ClassPath>*;scope=compile|runtime</Bundle-ClassPath>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Embed-Directory>OSGI-INF/lib</Embed-Directory>
<Import-Package>
*
</Import-Package>
<_exportcontents>
*
</_exportcontents>
</instructions>
</configuration>
</plugin>
当我检查JAR(的Manifest.MF)我可以看到在Export-Package
com.google.maps.model
但不是在Import-Package
。我怎样才能在Import-Package
中得到它?
这个问题是与先前未解决的问题How to import a class from third party jar file in an OSGi component