1. 在resin.conf中找到
<!-- includes the app-default fordefault web-app behavior -->
<resin:importpath="${resin.home}/conf/app-default.xml"/>
替换成:
<!-- includes the app-default fordefault web-app behavior -->
<resin:import path="${resin.home}/conf/app-mvn.xml"/>
2. 复制app-default.xml到app-mvn.xml, 打开app-mvn.xml找到
<class-loader>
<compiling-loader path="WEB-INF/classes"/>
<library-loaderpath="WEB-INF/lib"/>
</class-loader>
替换成:
<class-loader>
<compiling-loader path="../../../target/classes"/>
<library-loaderpath="../../../target/webapi/WEB-INF/lib"/>
</class-loader>
3.改动resin.conf中的根路径配置。使用maven的webapp文件夹
<web-app id="/"root-directory="Xxx/trunk/src/main/webapp"/>