-
Notifications
You must be signed in to change notification settings - Fork 0
Maven Questions
illyfrancis edited this page Nov 15, 2013
·
21 revisions
There are three lifecycle phases:
- clean
- default
- site
And within each lifecylcle, there are multiple phases.
- clean
- pre-clean, clean, post-clean
- default
- validate, initialize, ... , compile, ... , test-compile, ... , test, ...
- package ...
- integration-test ...
- verify
- install
- deploy
- when invoking a goal, can it be skipped? E.g. can
testbe called without it invokingcompile? - for multi module projects, how does it manage dependencies between modules? does it
installsub modules first? - how does maven manage
SNAPSHOTetc versioning? what's the best practise? - not clear on built-in lifecycle bindings, refer to this
- What is WAR overlays? When to use it?
- how to publish source
- where to generate javadoc and produce artifacts
- Where to define remote repository and best practise?
- how to structure jenkins with maven for pipeline views
- usage of mvn release plugin, haven't had much use before
- see below
- can
classifierin coordinates be used to produce two builds of the same? refer to book 'definitive guide to maven' chapter 9.5.1
- Should build happen on the root project only?
- what about install and deploy?
- doesn't make sense to install EAR and also its JAR and WAR project?
- What about release process?
- how to manage application version number? is it different from
<version>? - how to keep the version number in sync when working in multi module projects?
Given the lifecycle phases,
... -> compile -> test compile -> test -> package -> it -> verify -> install -> deploy
- How should we define the jobs in jenkins?
compile ... test? - Where should the static analysis jobs go? in between or a parallel jobs after compile?
- how does the user's name map to actual email address? via ldap? (active dir?)