spring-guides / tut-spring-security-and-angular-js

Spring Security and Angular:: A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.

Home Page:https://spring.io/guides/tutorials/spring-security-and-angular-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wro4j not working

LeonardLaszlo opened this issue · comments

Hello!

I am learning spring and while following your spring security and angular js tutorial I found a bug.

The problem: wro4j does not generate the css and js files.
Screenshot

Please help me to solve this problem!

Did you build the project from the command line? In an IDE? how?

I've built it with IntelliJ IDEA

I don't know if IDEA has any tooling for wro4j. I guess you have to build with Maven and make sure the generated resources are on the classpath (it will probably require some configuration in your IDE project).

I think there is something wrong in the pom.xml file because the wro4j external library is not imported.
alma

I don't use IDEA so I really don't know what you are showing me. The wro4j tool is being used as a plugin in this project though, so it isn't supposed to be on the classpath. When you build from the command line do you see CSS and JS in target/generated-resources?

when I run it from command line it works as expected :-)