Exercises (sample)
- groupId — org/namespace; artifactId — project name; version — release id.
compile produces .class files; package also builds the distributable JAR/WAR in target/ (and runs earlier phases including tests by default).
- Local Maven repository, typically
~/.m2/repository (Windows: C:\Users\<you>\.m2\repository).
- It is generated output; regenerable via Maven; committing it clutters git and causes merge noise.
Self-check
- A work-in-progress / not a final release (changing artifact). Prefer stable releases while learning.
- False.
package builds locally. Publishing to Central is a separate, intentional process (deploy + credentials / publishing setup).
- Example order:
validate → compile → test → package → verify → install → deploy.