Sample solution showing the step by step process to use Maven to create a simple web application and add an image to the resources folder. The resulting app prints the words "Hello World" inside a browser window with an image of the earth.
(symbol tone)…- [Instructor) Welcome Back.…How did you make out with the challenge?…I hope you were successful.…What I'd like to do is walk you through the process…that I used to add an image to my sample web.…To start, I'm going to open up the Sample Web folder…that was created by Maven…when I use the archetype of webApp.…There's my pom file and my SRC folder.…I'll open the SRC folder…and then I'll open the Main folder.…Maven automatically created a webApp folder…and a Resources folder.…
In the Resources folder, I added an image that I found…using the Creative Commons license…called Earth-like Planet.…It's a JPG file, but you could find in a GIF file…or a PNG, any type will work.…I just wanted to show you how you could add…something to the Resources folder…and then have it display in your website.…Let's go back to Main.…This time, let's go into webApp.…Now, I want to open up my Index.JSP file.…I'm gonna click on it, I'm going to right-click…and say Edit with Notepad++.…
The default code generated by Maven…has an HTML tag, a body tag…
- Downloading Maven
- Installing Maven
- Understanding the lifecycle and dependencies of Maven
- Working with the Project Object Model (POM)
- Defining project relationships
- Using Maven plugins
- Creating a sample project with Maven
- Writing tests in Maven
- Packaging your app
Skill Level Intermediate
Java: Database Integration with JDBCwith David Gassner2h 51m Intermediate
1. Get Started with Maven
2. Understand Maven
3. Project Object Model (POM)
4. Maven Plugins
5. Create a Project with Maven
6. Test with Maven
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.