Profiles allow for the ability to customize a particular build for a particular environment; profiles enable portability between different build environments. A profile in Maven is an alternative set of configuration values which set or override default values. Each profile must have a unique id, and other than that, it can contain almost any of the elements one would expect to see under project.
- [Instructor] It is also helpful to understand…what is meant by a Maven build profile.…Profiles allow for the ability to customize…a particular build for a particular environment.…Profiles enable portability between…different build environments.…When working at a previous job, we had a whole team…of programmers, but we also had a team of testers…and finally, of course, we had our clients.…So there were separate environments that mirrored each other…for developing, testing, and finally production…or deployment.…
This is an example where it might be helpful…to have separate build profiles.…You definitely don't want any extraneous reports…for debugging in your production environment.…A profile in Maven is an alternative set…of configuration values which set or override…default values.…It might also be used in a situation where…you need a different profile or a different build…based on the operating system.…Let me show you an example of a profile.…In this example, we define our XML file…with the tag profiles and then profile.…
Released
9/22/2016- Creating parent project
- Creating submodules
- Building a multi-module project
- Working with different IDEs
- Understanding Maven build lifecycles and build profiles
- Writing plugins
Share this video
Embed this video
Video: Build profiles