Modify the Java file compilation directory path for the MAVEN project under Eclipse

Source: Internet
Author: User

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"/>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.