Join Peggy Fisher for an in-depth discussion in this video Packaging your app, part of Java Build Automation with Maven.
- [Instructor] The last part of the process…is packaging your application.…The packaging information is stored in your pom.xml file.…Some sample packaging types include…jar, for Java Archive Files,…war, for Web Archive File, EAR.…Remember, the default is a jar file.…If the type is omitted, Maven will…automatically create a jar file.…Let's take a look at the pom.xml for our calculator app.…Remember, the last time we updated it,…we added the log for jdependency,…which starts on line 18.…
But if we go back up to where the Maven coordinates are,…embedded within the coordinates is,…on line 6, a packaging tag.…That packaging tag says jar,…because our application was a Java application.…So it will automatically create a Java archive.…When we're ready, we can go to the Command Prompt,…and from within the base project folder,…we can type MVN Package, and it will create the jar file.…This is also done when you run the MVN Install…as well as even the MVN Test.…
But now we have our jar file,…we have a copy of it in our local repository,…
- 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.