IDEA tool project configuration and how to pack war, ideawar

Source: Internet
Author: User

IDEA tool project configuration and how to pack war, ideawar

1. Project Structure

1.1 click File-ProjectStructure to enter the project configuration;

 

2. Project SettingsConfiguration

2.1 Project

2.1.1 add jdk to Project Settings-project in the file folder;

 

 

2.2 Modules

2.2.1 Add a project framework

Project module. A project can have multiple sub-projects. Each sub-project is equivalent to a module.

Generally, our project is a separate project, so we only need to configure a module. we can add a framework to the module.

 

Add the corresponding framework according to the usage in our project, and determine the relevant configuration file in the framework (because different ides, the file structure of the project may be different. Therefore, pay attention to the configuration when importing the project)

The module configuration root directory is divided into three labels: Sources -- Paths -- Depedencies

2.2.2 under the Sources label:

The Sources tab displays the directory resources of the project. The directories required for project deployment are highlighted in color.

(For example, green is the test directory, orange is the target directory, and the deployment does not need to be large. Red is not available in my project. Blue is the actual need for deployment)

2.2.2.1 in the file folder-Project Settings-Modules, click Sources

 

2.2.2.2 in the file folder, click Sources in "Project Settings-Modules", and then select "biz-src" under the Project and click "Sources" at the top of the Project.

 

2.2.2.3 under the file folder-Project Settings-Modules click Sources, and then under the Project etc-2.ejb select click Resources above the Project

 

2.2.2.4 under the file folder-Project Settings-Modules click Sources, and then under the Project webapp-webinfo-classes select and click Excluded at the top of the Project

 

2.2.3 under the Paths label:

 

You can specify the compilation output directory of the Project, that is, the compilation output address of the Project class and test class (replacing the default output address of the Project)

2.2.4 under the Depedencies Tag:

Depedencies is the project dependency

 

 

2.3 Libraries(Not here)

You can add a project jar package and put multiple jar packages in a group.

The jar Files Added under this directory are displayed in Depedencies (otherwise, they cannot be added)

2.4 Facts

The project facade. To be honest, I really don't know what it is. It's similar to modules. It's mainly for confirmation.

 

 

2.5 Artifacts

Package deployment settings of the project. This is a key part of the project configuration.

 

Note the red box

First, we need to add the deployment package of the Project. Note that the selected war package is exploded.

The second is the project output directory, which is not a maven project. This can be set anywhere.

(For maven projects, pay special attention to this)

The third is the output layout reference to several files in the figure.

(Maven project if you do not use maven package compilation note that the lib under the WEB-INF in the figure must have the jar deployed by the Project)

3. Platform Sttings

 

 

 

 

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.