Maven Fundamentals

A course covering the fundamentals of using Maven for building Java applications.
Course info
Rating
(1622)
Level
Intermediate
Updated
Nov 7, 2012
Duration
2h 30m
Table of contents
Description
Course info
Rating
(1622)
Level
Intermediate
Updated
Nov 7, 2012
Duration
2h 30m
Description

This course covers all of the basic fundamentals of Maven. It covers dependencies, plugins, repositories, IDE integrations, and all the basic commands of Maven.

About the author
About the author

Bryan is a Director at Software Technology Group, a consulting company based out of Salt Lake City, and has authored and taught numerous courses in Java.

More from the author
What’s New in Spring 5
Intermediate
1h 25m
31 Jan 2018
Building Applications Using Spring JDBC
Intermediate
2h 33m
27 Apr 2017
More courses by Bryan Hansen
Section Introduction Transcripts
Section Introduction Transcripts

Maven Structure
( Silence ) This module is on the structure of Maven. By structure we're referring to the folder and file structure and location of files. And how code gets compiled. And all the various aspects regarding structure inside of Maven. We're also going to discuss the POM file. And where these -- these elements get pulled from. So as part of our outline, we're going to look specifically at folder structure. We're also going to look at POM file basics. So where our POM file is located at as well as what are some of the most common elements we use inside of the POM file. We're going to look at some basic commands and goals. As well as how to add a dependency and what that looks like inside of our POM file. And we're also going to look at where our local repository is located at. And how items are stored there. As well as what the naming convention does to store those and download those into our local repository.

Maven Dependencies
This module is on dependencies. We will cover all of the major aspects of dependencies and how they affect your application. In this module, we will cover versions, types, what transitive dependencies are and how they are useful to your application, this typically happens to be the number one reason why people start using Maven, and then scopes of dependencies, what it means to have a test scope versus provided and runtime and compile.

Maven Repositories
( Silence ) In this module we're going to cover repositories. Repositories are where Maven looks at to download code and other artifacts from so that we can use them inside of our application. We're going to look at the difference between a dependency repository and a plug-in repository. We'll also see how to override those repositories from the default location. And then we'll look at how you can tell Maven where it should look at for releases versus snapshots. Projects don't always release snapshots at the same place that they'll release their final releases artifacts at.

Maven Plugins
In this module, we will cover plugins. Plugins are what maven uses to build and package our application as well as do anything outside of just downloading and storing artifacts for us. So, we will-- we're going to cover what goals are and goals tied to phases. So we'll also discuss phases. Then we're going to go over the compiler plugin and we'll look at a demo for the compiler plugin. Then we'll cover the jar plugin. And the sources, and last, the Javadoc plugin and we'll actually go through a demo for each one of these plugins.

Maven Eclipse/Spring STS Integration
In this module we'll cover Eclipse or rather Spring STS Integration with Maven. Most modern IDEs have Maven Integration of some point and can be configured using Maven. We're going to-- we're going to cover installing Spring STS which is actually a flavor of Eclipse with some plug-ins and some nice things added into it. We're going to look at converting an existing projects over to Maven over, they are using Maven. And we're going to look at importing projects that are also using Maven. Then we'll look at the various features including the Pom viewer, the dependency overview tool. How we can add a dependency in our IDE and it makes a little bit easier as well as the dependency hierarchy and how dependencies are resolved including transitive dependencies. And lastly, we'll look at the Effective Pom and what is your Effective Pom inside your application.