IntelliJ IDEA opens graphic tutorials for multiple projects like Eclipse, intellijeclipse

Source: Internet
Author: User

IntelliJ IDEA opens graphic tutorials for multiple projects like Eclipse, intellijeclipse

In practice, we often encounter this situation when creating a common project (Maven project) as a public project. common has many tool classes that can be called by multiple other projects.

For example, you can split common and service into independent Maven projects for use by other projects. The jar files are referenced by other projects through Maven.

Currently, common and service must be referenced in web projects. If IDEA opens the common, service, and web projects separately, it will encounter difficulties when debugging web projects: the code in common and service referenced by the web is packaged as jar and cannot be debugged. Unless the source code is also installed to the local repository during the installation of common and service, it is not convenient. Every time the common and service updates require the maven install operation, the Code referenced in the web will be updated.

1. Eclipse Solution

Eclipse has the concept of WorkSpace. It puts common, service, and web into a WorkSpace. Eclipse will open all projects in the WorkSpace, Eclipse will automatically search for dependencies, and click common code on the web, will directly jump to the corresponding source code in the common, debugging can also be adjusted to the single-step debugging in the common, very convenient.

Can IntelliJ IDEA be used to implement the WorkSpace function? Of course, IntelliJ IDEA is very powerful, and this function must be available!


2. IntelliJ IDEA Solution

2.1 First, download the common, service, and web projects from SVN to a local directory, for example, to a folder named WorkSpace:


2.2 Open IntelliJ IDEA compiler, click File> Open... in the menu, and select the WorkSpace directory:


Click OK to open the WorkSpace directory. The interface is as follows:


2.3 After opening IDEA, it is found that IDEA does not automatically recognize Maven Projects. At this time, you need to manually add the project's pom. xml file to the Maven Projects column on the Right of IDEA so that IDEA can recognize it:


Press Ctrl to select the pom. xml file and click OK.


2.4. Now IDEA can identify dependencies between Maven projects.

Summary

The above is a graphic tutorial on how IntelliJ IDEA opens multiple projects like Eclipse. I hope it will help you. If you have any questions, please leave a message, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.