6. Dependencies
Scope
compile, runtime, test, system, and provided
System path
Local path, deprecated
groupId
artifactId
Packaging
apk, jar, …
7. Tags defined
• A universally unique identifier for a project. It is
normal to use a fully-qualified package name to
distinguish it from other projects with a similar name
(eg. org.apache.maven, com.project)
The identifier for this artifact that is unique
within the group given by the group ID. An
artifact is something that is either produced or
used by a project. Examples of artifacts
produced by Maven for a project include: JARs,
source and binary distributions, and WARs.
E.g: android, mockito-all, junit
8. The central repository
Online central repository which hosts all the
dependencies
Can search from group-id, artifact-id, version
Can also download jars, pom, etc
9. How to use?
POM (pom.xml) file is the main file all the xml data
in it.
Dependent projects (if any) should also have
pom
There are 3 major parts:
Add dependencies
add dependencies with local path
add dependencies of custom jars (not in maven)