log4j not getting excluded from maven build

Solution 1:

excludes configuration section inside the scala-maven-plugin is meant for filtering resources to be compiled.

In your case log4j is a dependency (already compiled), you have to find what is pulling it in the build and exclude it from there (or setup a global dependency exclusion rule).