Java console application to be used as starting point in a Scrum workshop. If you know maven, you'll be familiar with the project structure. The only unfamiliar thing is that the main package was shortened just to callsprocessor
to reduce typing.
This project was created using Apache Maven 3
quickstart archetype Maven Quickstart Archetype. So you need to install maven 3 in order to handle common build tasks. You also need Java JDK 8 or later. Before starting you need all the following three programs on our path: mvn, java, javac. Test those with:
mvn --version
java -version
javac -version
If you don't have the Java SDK or later, go to:
- Official Oracle releases Java SE Development Kit 14 Downloads
- OpenJDK alternative OpenJDK
You can get Maven 3 from:
- Apache direct download for your OS Downloading Apache Maven 3.6.3
- Chocolatey for Windows users: Maven 3.6.3 @ Chocolatey
- Brew for MacOS users Homebrew Formulae Maven
The project can be edited with a simple editor like Visual Studio Code, with Java plugins installed, Alternatively you can use the pre-package installer with Java Plugins: Installer of Visual Studio Code for Java developers. Remember that Eclipse and IntelliJ IDEA consume a lot of system resources, but you can use those if you prefer.
- Compile the project :
mvn compile
- Compile and run tests:
mvn test
- Run the console application:
mvn exec:java -Dexec.mainClass=callsprocessor.App
- Process a
.csv
values file:mvn exec:java -Dexec.mainClass=callsprocessor.App -Dexec.args="<full-path-to-file>/the_file_.csv"
(Remember works only with FULL PATHS) - Process a
.csv
values file:cd target
java -cp callsprocessor-<version>.jar callsprocessor.App <full-path-to-file>/the_file_.csv
- Simulate CI build:
mvn -B verify