As explained in the Eclipse and Intellij documentation, faces define characteristics and requirements (specific configuration specific to a particular structure / technology).
When you add a facet to a project, this project is configured to perform a specific task, fulfill certain requirements, or have certain characteristics.
In short, you need to follow some structure to implement some framework / technology. The IDE has options for implementing it to make your life easier.
To describe it in detail, I will detail the detailed information from the Eclipse Documentations. This is the Eclipse Specification .
While creating a project, you will get the opportunity to implement a facet for your project. For example, the EAR facet creates a project to work as an enterprise application by adding a deployment descriptor and setting the path to the project class.
To add another facet to the project , follow these steps:
- In the Project Explorer view of the Java ™ EE perspective, right-click the project and select Properties.
- Select the Project Boundaries page in the Properties window. This page lists the faces in the project and their versions.
- Click "Edit Project" and check the boxes next to the face that you want the project to have.
Note. Only faces that are valid for the project are displayed.
Some faces may not work together. Thus, you can also select a predefined combination of faces from the Presets list .
- Select the version number for the facet by clicking the current version number and selecting the desired version number from the drop-down list.
- Optional: To remove a face, clear the check box. Not all faces can be deleted.
- Optional: if you want to limit the project to be compatible with one or more runtime modes, click the Runtimes tab and select the runtime with which you want the project to be compatible. For more information about runtime, see Defining Destination Servers for J2EE Projects.
- Click Finish to exit the Edit Project Face dialog box and click OK.
Borders also have version numbers in Eclipse. You can change torch version numbers if you stay within the face requirements. To change the facet version in your project, follow these steps:
- In the Project Explorer view of the Java EE perspective, right-click the project and select Properties.
- Select the Project Boundaries page in the Properties window. This page lists the faces in the project and their versions.
- Click Modify Project and click the cell that you want to modify.
- Select a facet version from the drop-down list next to the face name.
- Click Finish to close the Edit Faceted Project window, and then click OK.
You can do more things with faces. I have provided examples for your better understanding. For more information, please see the documentation for your favorite IDE.
blueray Sep 17 '16 at 10:32 2016-09-17 10:32
source share