使用Embed-Dependency和Embed-Directory打包运行时的库到lib下面
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${bundle.plugin.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>
${pom.artifactId};singleton:=true
</Bundle-SymbolicName>
<Vaadin-Widgetsets>
com.cvicse.unicorn.fusioncharts.components.FusionchartcomponentWidgetset
</Vaadin-Widgetsets>
<_include>
-osgi.bnd
</_include>
<!-- 把依赖的库写入Bundle-ClassPath -->
<Embed-Dependency>
gwt-dev;gwt-user;scope=compile|runtime;inline=false
</Embed-Dependency>
<!-- 打包后库的存放路径 -->
<Embed-Directory>lib</Embed-Directory>
</instructions>
</configuration>
</plugin>