As a programmer, we often taken advantage of code reuse, especially in the realm of open source programming. For example, in Java, we use APIs that contain libraries of software components that we can use instead of re-creating the source code from scratch. Maven also allows us to reuse existing components and plugins using the dependency section of our POM file. For example, a common dependency when working with Java is the JUnit component.
- [Instructor] Another feature of Maven…is the way it handles Dependency Management.…As a programmer, we often take advantage of code reuse,…especially in the realm of open-source programming.…For example, in Java, we use APIs that contain libraries…of software components that we can use…instead of recreating the source code from scratch.…Almost all Java programmers have, at some time,…used the Math functions or the String functions…in their coding.…These functions include math.pow to find the value…of a number raised to a power,…or math.min to find the smallest of two numbers.…
Some of the String functions include the .length command,…the .substring, two lower, two upper.…These are just a few examples of what it means…to reuse existing code.…Maven also allows us to reuse existing components…and plugins using the dependency section of our POM file,…our Project Object Model file.…For example, a common dependency when working with Java…is the junit component.…We define dependencies inside a project's POM file…using it's Maven coordinates.…
Author
Released
8/31/2016- 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
Duration
Views
Related Courses
-
Advanced Java Programming
with David Gassner3h 33m Advanced -
Java: Database Integration with JDBC
with David Gassner2h 51m Intermediate -
JavaBeans Essential Training
with Patrick Royal1h 45m Intermediate -
Java 7 Essential Training
with David Gassner6h 4m Beginner
-
Introduction
-
Welcome45s
-
What you should know1m 23s
-
-
1. Get Started with Maven
-
What is Apache Maven?2m 5s
-
Download Maven2m 35s
-
Install Maven on Windows4m 34s
-
Install Maven on Mac1m 20s
-
IDE integration2m 18s
-
-
2. Understand Maven
-
Project Object Model (POM)3m 46s
-
Maven lifecycle3m 55s
-
Maven Repository2m 34s
-
-
3. Project Object Model (POM)
-
POM syntax1m 22s
-
Project dependencies1m 56s
-
POM best practices1m 27s
-
4. Maven Plugins
-
Core plugins3m 21s
-
Packaging tools1m 41s
-
Reporting2m 56s
-
Tools3m 2s
-
-
5. Create a Project with Maven
-
Create a sample program8m 1s
-
Solution: Create a web app4m 21s
-
-
6. Test with Maven
-
Write unit tests4m 50s
-
Add dependencies2m 9s
-
Add test resources3m 51s
-
Packaging your app1m 21s
-
-
Conclusion
-
Next steps53s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Maven's dependency management