For more information, please refer to the Phase 4 Report.
Make sure you have Maven installed on your system before running the commands in this guide. You can check if Maven is installed by running mvn -version in your terminal.
-
Open the terminal and navigate to the
Code/projectdirectory. -
Compile the Maven project by running the following command:
mvn compile -
Execute the main file using the following command:
mvn exec:java -Dexec.mainClass="Main"
-
Open the terminal and navigate to the
Code/projectdirectory. -
Run the tests using the following command:
mvn test
-
Open the terminal and navigate to the
Code/projectdirectory. -
Create a JAR file of our game using the following command:
mvn clean compile assembly:singleThis command will clean the project, compile the source code, and create a JAR file with all the dependencies included.
-
The JAR file will be generated in the
targetdirectory. You can find the JAR file with the nameGrade Quest-jar-with-dependencies.jar.
This will generate JavaDocs in the following directory: target/site/apidocs
-
Open the terminal and navigate to the
Code/projectdirectory. -
Generate JavaDocs using the following command:
mvn javadoc:javadoc