The following packages must be installed before Avro can be built:
To simplify this, you can run a Docker container with all the above dependencies installed by installing Docker and run:
./build.sh docker docker@539f6535c9db:~/avro$ cd lang/java/ docker@539f6535c9db:~/avro/lang/java$ ./build.sh test [INFO] Scanning for projects...
When this completes you will be in a shell running in the container. Building the image the first time may take a while (20 minutes or more) since dependencies must be downloaded and installed. However subsequent invocations are much faster as the cached image is used.
The working directory in the container is mounted from your host. This allows you to access the files in your Avro development tree from the Docker container.
Once the requirements are installed (or from the Docker container), build.sh can be used as follows:
./build.sh test # runs tests for all languages ./build.sh dist # creates all release distribution files in dist/ ./build.sh clean # removes all generated artifacts
Testing is done with the same Docker container as mentioned in the building step. The difference is that it will do clean run of the full test suite: