For Maven projects, you can set preferences according to
the requirements of the project.
About this task
Important: Applicable to Liberty, WebSphere® Application Server traditional
The preferences () to set for Maven
can be set from a single preference page (). However, these preferences are
also located across the following preferences pages:
Procedure
To set or review preferences, follow these steps:
-
Click to open the Preferences page.
-
Expand and select Maven Project Settings.
-
To set all the preferences in one action click Set
all Maven values. To set individual preferences, click Set
Maven value next to each preference.
The following
information lists the recommended values for Maven and other preference
pages that are also updated when setting preferences in this page.
- The following preferences are also found on the Java
EE page:
- Use Ear Libraries classpath container
- false
- Use Web App Libraries classpath container
- false
- The following preferences are also found on the page:
- false
- src/main/application
- Dynamic Web Project
- Default Source Folder: src/main/java
- Output Folder: src/main/webapp/WEB-INF/classes
- Content Directory: src/main/webapp
- EJB Project
- Default Source Folder: src/main/java
- Output Folder: target/classes
- Application Client Project
- Default Source Folder: src/main/java
- Output Folder: target/classes
- Connector Application Project
- Default Source Folder: src/main/java
- Output Folder: target/classes
- Utility/JPA Projects
- Default Source Folder: src/main/java
- Output Folder: target/classes
- The following preferences are also found on the page:
- Generate application.xml under the build directory
- false
- Maven Archiver generates files under the build directory
- false
-
Click Apply to apply the changes,
and click OK to close the Preferences page.