foundweekends / giter8

a command line tool to apply templates defined on GitHub
https://www.foundweekends.org/giter8/
Apache License 2.0
1.74k stars 224 forks source link

log4j errors when installed as bootstrap's sh #645

Open catap opened 2 years ago

catap commented 2 years ago

steps

Giter8 version: giter8-bootstrap_2.12-0.13.1.sh from https://repo1.maven.org/maven2/org/foundweekends/giter8/giter8-bootstrap_2.12/0.13.1/

problem

An attempt to use it produces unexpected ERROR logs:

√ vault % g8 UdashFramework/udash.g8
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by 
log4j:ERROR [java.net.URLClassLoader@25641d39] whereas object of type 
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [java.net.URLClassLoader@5b480cf9].
log4j:ERROR Could not instantiate appender named "stderr".
name [My Udash Application]: 

expectation

Should work without ERROR

magnolia-k commented 2 years ago

This error does not occur when installing using Coursier.

Coursier's Giter8 configuration file specifies org.slf4j:slf4j-nop, but there is no opportunity to install this in the shell for bootstrap

https://github.com/coursier/apps/blob/master/apps/resources/giter8.json