Before you can build josef, you will have to configure it.
After complete configuration (including a database server), you can build josef by executing:
mvn install
If you didn't configure a database server you should still be able to build josef.
You just can't run the unit tests. Use this command:
mvn install -DskipTests