-
Notifications
You must be signed in to change notification settings - Fork 2
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
Jar artifact does not include compiled .class templates #1
Comments
I've noticed if starting frrom IDE- your rocker-s-b-starter creates @runtime in target/classes the related class like target/security/login.class. But if strarts using java -jar blah.jar you can't create class inside jar file (classpath, etc). I think you should use the default maven plugin from rocker templates to create jar- artifacts |
Hi, @damir78 |
Hi @iceant
I did tested you nice rocket demo.
Currently if using mvn package - the jar does not include compiled generated tmplate classes (.class) into folder BOOT-INF/classes/templates/ . Ohnly .html files. If I try to start java- jar
` [Request processing failed; nested exception is com.fizzed.rocker.TemplateNotFoundException: Compiled template security/login not found] with root cause
java.lang.ClassNotFoundException: Class security.login not found
at com.pointcx.rocker.spring.boot.starter.reload.RockerClassLoader.loadClass(RockerClassLoader.java:44) ~[rocker-spring-boot-starter-1.2.1.jar!/:1.2.1]
`
It works fine if I start DemoRockerSpringBootStarterApplication directly from IDE (Intellij)
I think the problem is: rocker plugin uses login.rocker.html pattern for compiled files. Now it is just login.html
The text was updated successfully, but these errors were encountered: