tested with maven 3.8.7
mvn clean compile package
After packaging launch as standar .jar file with path to the file as an argument.
Example:
java -jar codeassignment-0.0.1-SNAPSHOT.jar "C:\_Work\files\large.in"
Example with memory limit to 32m:
java -jar -Xmx32m codeassignment-0.0.1-SNAPSHOT.jar "C:\Users\ondra\Downloads\f\small.in"
When application ends without error, you can see paths to generated files in the console output.
When application ends with an error, zou can see error message in console output.