This is a very simple Swing Application that is used to help to have a timer that you can start, pause and stop.
- Download maven from: https://maven.apache.org/download.cgi
- Unzip content in a folder that you want, e.g. (C:\Software)
- Create a new environment variable
MVN_HOME
and set the value with the system path to maven (e.g. C:\Software\apache-maven-3.5.4) - Append
%MVN_HOME%\bin
to thePATH
variable at the end - Open a console window or terminal and type
mvn -v
to verify Maven version - Go to your project folder and execute a new console window inside the folder, and type
mvn clean install
- Maven will run a build and download all the dependencies required, run the tests, and package the application
- Problem: Error finding Java compiler Solution: Check the Path variables is not having multiple entries to Java compiler (different versions)
- Import an Existing Maven Project
- Select Task Timer project in "C:\Users[git-username]\projects\task-timer"
- Once Task timer is imported build the project and check for build errors.
- Go to Run> Run Configurations> Maven Build> New Run Configuration.
- Creating and running the task timer run configuration should allow you to run the JUnit test cases.
TBC