diff --git a/README.md b/README.md index 5477486c4da4cb7920d5b95774354060d7b21a02..4cb51ca9ddfc514910a165f9e086554060a80a63 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,27 @@ Optionally, start the user interface by running: ```bash docker-compose up fda-ui -``` \ No newline at end of file +``` + +### Troubleshooting + +Ubuntu 20.04 LTS + +Do not use maven provided my Ubuntu 20.4 LTS. It cannot handle those injections spring-boot wants it to do. + +It says: WARNING: An illegal reflective access operation has occurred +WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) + +Install maven from Apache Org.: + +# Download maven e.g. 3.6.3 +wget https://www-us.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp + +# Untar downloaded file to /opt +sudo tar xf /tmp/apache-maven-*.tar.gz -C /opt + +# Install the alternative version for the mvn in your system +sudo update-alternatives --install /usr/bin/mvn mvn /opt/apache-maven-3.6.3/bin/mvn 363 + +# Check if your configuration is ok. You may use your current or the 3.6.3 whenever you wish, running the command below. +sudo update-alternatives --config mvn