Part A: Build and Run a Java Application with Maven

For this part, please refer to Experiment 2: Working with Maven. Follow the steps outlined in Experiment 2 to:

  1. Create a Maven project (HelloMaven).
mvn archetype:generate -DgroupId=com.example -DartifactId=HelloMaven -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
  1. Navigate into the project directory.
  2. Explore the project structure.
  3. Build the project using mvn package.
  4. Run the application using the java -cp

Ensure you have successfully built and run the HelloMaven project using Maven before proceeding to Part B.


Part B: Migrate the Application to Gradle (In-Place)