这个问题可能是依赖的项目打包成bundle造成,比如mina就是这样的,打包成bundle,例子:
<dependency>
<groupId>org.apache.mina</groupId>
<artifactId>mina-core</artifactId>
<version>2.0.4</version>
<type>bundle</type>
<scope>compile</scope>
</dependency>
然后需要添加一个bundle插件:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
</plugin>