As a programmer, we often rely on other components available to us. Maven provides support for both internal and external dependencies. One of the most common dependencies is the junit which is used for testing a Java program. In this sample code, I have am only displaying two of the dependencies for this project, but more can be added using the xml tag dependency. Since the scope tag is not included, the default scope value of compile is assumed.
- [Instructor] Project Dependencies.…As a programmer, we often rely…on other components available to us.…Maven provides support for both…internal and external dependencies.…One of the most common dependencies is the junit dependency.…This is used for testing a Java program.…Other examples include log4j and jaxen, just to name a few.…Here is some sample code.…As you can see, I am only displaying two of the dependencies…for this project, but more can be added…using the XML tag dependency.…
In this sample, we have the project,…then we have dependencies, and inside dependencies,…we can have zero, one, or many different dependencies.…Here I have two.…The first one has the three values required…for the Maven coordinates, for log4j.…The second one has the coordinates for jaxen.…Notice that the scope tag is not included…for these two dependencies.…If the scope tag is not included,…the default is the compile phase.…When adding dependencies, you can add the scope tag…to indicate which life cycle phase uses this component.…
- 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
Java EE Essentials: Enterprise JavaBeanswith Patrick Royal1h 45m 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.