Right-click the MAVEN project, in the source option of the Java Build path option, select Output folder
Click on the Edit button to change maven's original Java file compilation directory and click OK.
The original Maven Java file is saved in the target directory, and the resin server is configured in the Maven WebApp directory, so that a Java file is modified, and Maven compiles once, which is cumbersome
This can be implemented to modify the Java file maven, compiled in the resin server directly reflected.
The premise is that resin cannot be published in the form of a war.
resin.conf configuration file
<web-app id= "/" root-directory= "F:\maven\workspace-javaee\account-parent\account-web\src\main\webapp"/>
Configuration of App-default.xml
<class-loader>
<compiling-loader path= "Web-inf/classes"/>
<library-loader path= "/usr/local/app/workspace/boss6.0/boss-web/target/boss-web/web-inf/lib"/> Change the directory of Lib
</class-loader>
and find it in the cluster-default.xml.
<resin:import path= "Classpath:meta-inf/caucho/app-default.xml"/>
Change to <resin:import path= "${__dir__}/app-default.xml"/>