RADの耳に戦争があります。Ivyを使用してプロジェクトの依存関係を管理しています。私の唯一の問題は、RADを介してWASの開発インスタンスにearをデプロイすると、デプロイメントにivyからの依存ライブラリが表示されないことです。プロジェクトがWebsphereにデプロイされたときに、ツタの依存関係が表示されるようにプロジェクトを構成するにはどうすればよいですか?
1 に答える
0
Ivy is used when building the WAR and EAR files.
For example:
<ivy:retrieve pattern="${lib.dir}/[artifact].[ext]"/>
<war destfile="${war.file}" webxml="${resources.dir}/web.xml">
<fileset dir="${resources.dir}" excludes="web.xml"/>
<lib dir="${lib.dir}"/>
</war>
The retrieve command is used to populate a lib directory whose contents are copied into the WAR. (The lib tag ensures the jars are placed under WEB-INF/lib within the WAR)
Update
The ivy retrieve task can be run from the command line, if you just want to download dependencies to a local directory:
java -jar ivy.jar -ivy ivy.xml -retrieve "lib/[artifact].[ext]"
于 2010-08-17T21:34:28.660 に答える