I created a Maven Project in STS, with no archetype and having packaging as "war".
The project structure is as follow
portal
----Deployment Descriptor: portal
----JAX-WS Web Services
----Java Resources
----src
----main
----java
----resources
----assets
----login.css
----webapp
----login.html
----test
----java
----resources
----Libraries
----Javascript Resources
----Deployed Resources
----target
----pom.xml
I created login.html
in src/main/webapp
folder and created assets/login.css
in src/main/resources
.
My question is that when I try to include that css file in the html code, it is unable to read that.
What to do for that?
Also, after googling a bit, I came to know that for such situations, put the files in WEB-INF and it'll do all the rest. But while creating the project, WEB-INF folder was not created. Although I can create it myself, but just want to know where I am doing wrong in creating a maven project which should by default create WEB-INF folder.