Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while compiling when having log4j on the classpath #43

Closed
halkosajtarevic opened this issue Dec 4, 2017 · 3 comments
Closed

error while compiling when having log4j on the classpath #43

halkosajtarevic opened this issue Dec 4, 2017 · 3 comments

Comments

@halkosajtarevic
Copy link

i'm getting an error while compiling when i have log4j on the classpath:

ERROR elemento.shaded.freemarker.log.LoggerFactory: Unexpected error when initializing logging for "Log4j". Exception: java.lang.RuntimeException: Unexpected error when creating logger factory for "Log4j". Caused by: java.lang.ClassNotFoundException: elemento.shaded.freemarker.log._Log4jLoggerFactory

sample: https://github.com/halkosajtarevic/elemento-log4j-issue

is there any way to workaround this? thanks in advance!

@hpehl
Copy link
Member

hpehl commented Dec 8, 2017

I've split elemento-template into elemento-template-api and elemento-template-processor (see #41)

Can you please verify if the issue still exists, If you add elemento-template-processor using <scope>provided</scope>?

@halkosajtarevic
Copy link
Author

that fixes the issue! thank you - do you know when this will be available on mavencentral?

@hpehl
Copy link
Member

hpehl commented Dec 11, 2017

I'll release a new version later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants