Sample example from Effective Java book.
We build a project template.
This template is based on https://github.com/scoulomb/sample-maven-app. Where we did following modifications:
We can execute with maven exec rather than generating a jar file: See https://stackoverflow.com/questions/15869784/how-to-run-a-maven-created-jar-file-using-just-the-command-line. As stated here: https://github.com/scoulomb/sample-maven-app#some-notes
Then we should do
mvn exec:java
Here we run a plugin goal directly we should do before
mvn clean install
or
cd my-app
mvn clean install exec:java
We can aggregate several poms. It is described here: https://stackoverflow.com/questions/10665936/maven-how-to-build-multiple-independent-maven-projects-from-one-project
But mvn exec:java
will not work with aggregation.
https://stackoverflow.com/questions/1469004/mvn-execjava-on-aggregate-pom
So we will use unit test
and run mvn clean install
We modified docker file to run all sub-project
So that we can run full project with
docker compose up --build
Configure project as maven in Pycharm.
Note we can clone and use IDE directly, for instance:
But I use this repo to add more tests,
It can also be runned when class are duplicated via maven or IDE. See example.
Followed procedure here: https://blog.travis-ci.com/docker-rate-limits. To use account which can pull more than anonymous (travis ip).
See travis file.
After docker login password save here in base64:/home/vagrant/.docker/config.json
- Copy pom to improve
- python amd c++ parallel on lambdas
- item 43 on lambda concluded but could read enum item to understand better
- also mystery how when using lambda it knows it has to override applyAsDouble
- Try parent POM
- next chapters