|
1 |
| -# Open Liberty Ant Project |
| 1 | +# Migrate a legacy Java EE Ant project to a Jakarta EE 10 Maven project |
2 | 2 |
|
3 |
| -A Java EE web application running on Open Liberty with a hybrid architecture that supports both traditional servlets and Spring MVC. The application manages student profiles with CRUD operations and demonstrates migrating from Ant to Maven and Java EE to Jakarta EE. |
4 |
| - |
5 |
| -## Project Architecture |
6 |
| - |
7 |
| -See [project details](doc/architecture.md). |
8 |
| - |
9 |
| -## Getting Started |
10 |
| - |
11 |
| -### Prerequisites |
12 |
| -- **Java 11** or higher |
13 |
| -- **Apache Ant** (for building) |
14 |
| -- **Docker & Docker Compose** (recommended) |
15 |
| - |
16 |
| -### Quick Start (Docker - Recommended) |
| 3 | +This workshop guides you through migrating a legacy Java EE Ant project to a Jakarta EE 10 Maven project. After completing the workshop, the project will be fully migrated from Java EE to Jakarta EE 10, upgraded from Spring Framework 5.3.39 to 6.2.x, and ready to build with Maven. |
17 | 4 |
|
18 |
| -1. **Clone and navigate to the project:** |
19 |
| - ```bash |
20 |
| - cd student-web-app |
21 |
| - ``` |
| 5 | +## About this Sample Project |
22 | 6 |
|
23 |
| -2. **Run setup script:** |
24 |
| - ```bash |
25 |
| - # Linux/Mac |
26 |
| - ./setup-docker.sh |
27 |
| - |
28 |
| - # Windows |
29 |
| - setup-docker.bat |
30 |
| - ``` |
31 |
| - |
32 |
| -3. **Start the application:** |
33 |
| - ```bash |
34 |
| - docker-compose up --build |
35 |
| - ``` |
36 |
| - |
37 |
| -4. **Access the application:** |
38 |
| - - Home page: http://localhost:9080/ |
39 |
| - |
40 |
| -### Manual Setup (Without Docker) |
41 |
| - |
42 |
| -See [maunual setup](doc/manual-setup.md). |
43 |
| - |
44 |
| -### Verification |
| 7 | +A Java EE web application running on Open Liberty with a hybrid architecture that supports both traditional servlets and Spring MVC. The application manages student profiles with CRUD operations and demonstrates migrating from Ant to Maven and Java EE to Jakarta EE. |
45 | 8 |
|
46 |
| -Test the application with: |
47 |
| -```bash |
48 |
| -# Add a student |
49 |
| -curl -X POST "http://localhost:9080/app/add-student" \ |
50 |
| - -d "name=Alice Johnson" \ |
51 |
| - |
52 |
| - -d "major=Biology" |
| 9 | +For the project architecture, see [project details](doc/architecture.md). |
| 10 | +For how to start this project, see [getting started](doc/getting-started.md) |
53 | 11 |
|
54 |
| -# View students |
55 |
| -curl http://localhost:9080/studentProfileList |
56 |
| -# or |
57 |
| -# curl http://localhost:9080/app/students |
58 |
| -``` |
| 12 | +## Prerequisites |
59 | 13 |
|
60 |
| -**Student Profiles List View:** |
61 |
| -Access the pages from browser: http://localhost:9080/ |
| 14 | +- **Java 17** or higher |
| 15 | +- **Apache Ant**, tested version: `1.10.14`. |
| 16 | +- **Maven**, tested version: `3.8.7`. |
| 17 | +- **Docker & Docker Compose** (Optional, for running the sample application) |
| 18 | +- [Visual Studio Code](https://code.visualstudio.com/download) |
| 19 | +- [VS Code Extension: GitHub Copilot App Modernization](https://marketplace.visualstudio.com/items?itemName=vscjava.migrate-java-to-azure) |
| 20 | + - This extension depends on [VS Code Extension: GitHub Copilot App Modernization – Upgrade for Java](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-upgrade). Both extensions will be installed automatically when you install **GitHub Copilot App Modernization**. |
62 | 21 |
|
63 |
| -<div align="left"> |
64 |
| - <img src="assets/student_profiles_list.png" alt="Student Profiles List" width="50%"/> |
65 |
| -</div> |
| 22 | +## Assess the Project |
66 | 23 |
|
67 | 24 |
|
68 | 25 |
|
0 commit comments