akvo / akvo-flow

A data collection and monitoring tool that works anywhere.
http://akvo.org/products/akvoflow/
GNU Affero General Public License v3.0
65 stars 31 forks source link

Local dev startup fails if ~/.m2 directory hasn't been created already #3970

Open jakubfiala opened 9 months ago

jakubfiala commented 9 months ago

Context

When starting the service for the first time locally, the Maven installation fails because it can't read from the /home/akvo/.m2 directory.

Problem or idea

If the local system doesn't already have a ~/.m2 directory, Docker tries to create a write-only dir by default when mounting the volume. However, Maven expects to be able to read from the directory, so it fails.

Solution or next step

Either document this, or create the ~/.m2 directory automatically with read and write permissions.