Users Online
· Members Online: 0
· Total Members: 188
· Newest Member: meenachowdary055
Forum Threads
Latest Articles
Articles Hierarchy
Converting existing projects to Maven
Converting existing projects to Maven
Last Updated: 2021-03-06
Before you begin
Back up your workspace so that you can return to the original project state if necessary.
About this task
The suggested order of tasks for converting projects is as follows:
Setting recommended preferences
About this task
Procedure
- Access the Maven project settings preferences. Click .
- Click Set all Maven values. The preferences that represent the best practices for Maven configuration are set.
- Click OK to complete setting the preferences.
Converting web, EJB, connector, application client, utility, web fragment and ejb client projects
About this task
When you convert a project, keep in mind the dependencies that you have to other artifacts and how the artifacts are accessed by the project. In non-Maven projects, this information is specified in project metadata and the MANIFEST.MF files directly. However, in Maven projects, dependencies are specified in the pom.xml file. For example, the artifacts can be accessed through the MANIFEST.MF file or deployed in library directory of the EAR that contains the project. For web projects, artifacts can be deployed in the WEB-INF/lib directory.
- Right-click the project.
- Select .
- Click the Manifest Entries tab. Make note all of the entries that are referenced by the project.
- For web projects, also click the Deployment Assembly tab. Make note all of the projects and JAR files with a deploy path that begins with WEB-INF/lib.
After you gather the required information, you can convert the project to Maven.
Procedure
Converting EAR projects
About this task
- Create a content folder.
- Convert the EAR project.
- Add modules to an EAR.
- Add dependencies to other modules.
- Add libraries to the EAR library directory.
Creating a content folder
About this task
Procedure
Converting the EAR project
About this task
When you convert a project, keep in mind the dependencies that you have to other artifacts and how the artifacts are accessed by the project. In non-Maven projects, this information is specified in project metadata and the MANIFEST.MF files directly. However, in Maven projects, dependencies are specified in the pom.xml file. Note the modules that are part of the EAR, the libraries that are shared to other modules using the library directory (for EARs version 5 or newer), or other dependencies.
- Right-click the project.
- Select .
- Make note of the modules that are part of the EAR.
- Make note of the EAR library directory value if the EAR is version 5 or later.
- Make note of the JAR files and projects in the library directory. To identify these files, look for JAR files and projects that have a deploy path that begins with the value of the library directory.
Procedure
Adding modules to an EAR project
Last Updated: 2021-03-06
About this task
Procedure
Adding dependencies to other modules
Last Updated: 2021-03-06