我正在创建一个 OSGi 包,其中包含以下依赖项
<artifactId>tomcat-dbcp</artifactId>
<artifactId>tomcat-embed-core</artifactId>
<artifactId>tomcat-embed-jasper</artifactId>
<artifactId>tomcat-embed-websocket</artifactId>
<artifactId>tomcat-jasper</artifactId>
<artifactId>ecj</artifactId>
我想在 websocket 和 jasper 中打包 SCI。
我的 IncludeResource 部分如下
<Include-Resource>
{maven-resources},
@tomcat-jasper-${version.tomcat}.jar!/META-INF/*,
@tomcat-embed-websocket-${version.tomcat}.jar!/META-INF/*,
src/main/resources
</Include-Resource>
这里的问题是我只得到 websocket SCi。我认为 jasper 资源被 websocket 资源覆盖。取决于我指定它们的顺序。
如何将两个资源放在同一个包中?