I now believe that the Maven issue was a red herring. I think this is a JSP configuration issue.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:If you're using Maven, then optimally, all dependencies should be in the POM file.
Looking at the WebJars site, it says that all its jar files are in the Maven Central Repository, which is the default repository for Maven, so you should be able to add a dependency.
Pick the version number here.
All things are lawful, but not all things are profitable.
The thing is that I am using a third party bootstrap template - startbootstrap-modern-business-gh-pages, which I downloaded and I changed the folder name to Bootstrap which I put under Web Content as shown in the picture I attached.
All things are lawful, but not all things are profitable.
I run my project and found that the Index.jsp which is the Welcome file did not give me the bootstrap layout as before.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:
I run my project and found that the Index.jsp which is the Welcome file did not give me the bootstrap layout as before.
Okay, you're going to have to TellTheDetails (that's a link) about exactly what is the problem. What kind of project is this, exactly? How are you running the project? Through Maven or an IDE or from the command line? When you say "the Welcome file did not give me the bootstrap layout as before", do you mean the Welcome page is not formatted with the files provided in bootstrap? What changed from when it was working?
Now, Maven does not "configure" your project, in the sense that it helps your project to find where CSS and other layout files are. So you don't need a dependency in your POM to get your project configured correctly.
CSS files are often put a src/main/webapp/resources directory and Maven can help by moving them into a jar or war file for you. I will look into that more for you -- but you should too!
Consider Paul's rocket mass heater. |