Itellij Creating and publishing Web projects based on Gradle (iii)

Source: Internet
Author: User

Keywords: Web multi-module

Using Eclipse's idiot-style configuration, Getting started with Web deployment is really not a habit.

First, the phenomenon:

The project was released, and the class in the dependent module could not be found anyway.

Second, the investigation

Determine that module out is added to the f4->artifacts->output layout

And then the egg ...

Third, Reason

Now you know, or you configure the out of the mess, the Web project's classes output to "project path/build", and the module's classes output to the project path/out.

It looks like the classes of the module was discarded when it was packaged.

Iv. Resolving

Let's standardize and find out what it feels like in eclipse.

1. Create a directory under Web-inf in the WebApp directory classes

2. Configure the Web project's classes file output to the above directory

3. The classes file of the configuration module is also output to the same directory (f4->modules-> module->paths-> select inherit project compile output path option)

V. Testing

Finally find the class that depends on the module project, pass.

Itellij Creating and publishing Web projects based on Gradle (iii)

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.