WAR 内の便利な場所にある BIRT ランタイムを使用して、Maven に WAR をアセンブルさせようとしています。
BIRT ランタイムは pom.xml にあります。
<dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>report-engine</artifactId>
<version>2.3.2</version>
<type>zip</type>
<scope>runtime</scope>
</dependency>
これをオーバーレイすることの望ましい結果は次のようなものです
ReportEngine/lib/* -> WEB-INF/lib
ReportEngine/configuration/* -> WEB-INF/platform/configuration
ReportEngine/plugins/* -> WEB-INF/platform/plugins
私のオーバーレイ構成は次のようになります
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<overlays>
<overlay>
<groupId>org.eclipse.birt</groupId>
<artifactId>report-engine</artifactId>
<type>zip</type>
<includes>
<include>ReportEngine/lib/*</include>
</includes>
<targetPath>WEB-INF/lib</targetPath>
</overlay>
<overlay>
<groupId>org.eclipse.birt</groupId>
<artifactId>report-engine</artifactId>
<type>zip</type>
<includes>
<include>ReportEngine/configuration/*</include>
<include>ReportEngine/plugins/*</include>
</includes>
<targetPath>WEB-INF/platform</targetPath>
</overlay>
</overlays>
</configuration>
</plugin>
もちろん、走っmvn war:exploded
ているときは見ています
ReportEngine/lib/* -> WEB-INF/lib/ReportEngine/lib/
ReportEngine/configuration/* -> WEB-INF/platform/configuration/ReportEngine/lib/
ReportEngine/plugins/* -> WEB-INF/platform/plugins/ReportEngine/lib/
これは、同じ種類の問題に関連しています。答えはありません http://www.coderanch.com/t/447258/Ant-Maven-Other-Build-Tools/Maven-war-dependencies-moving-files
内部からすべてを機能させることで、これを少し整理する方法を指摘するためのボーナスポイントWEB-INF/birt-runtime
編集:
上記の場所が指定されている理由は、http: //wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1 に示されている場所と一致しているためです。これを模倣するために Tomcat のインストールでフリッツすると、すべてが機能するように見えます。zip を WEB-INF/birt-runtime に単純にオーバーレイし、エンジン構成を適切に設定できれば理想的ですが、まだ機能していません。
例えば:
engineConfig = new EngineConfig();
engineConfig.setEngineHome("WEB-INF/birt-runtime");
engineConfig.setPlatformContext(new PlatformServletContext(servletContext));