How are they different? Or are they the same?
相关问题
- Include pom.xml in Jar with gradle
- What order does maven find its dependencies?
- proguard causing EnumMap NPE on dynamically declar
- Maven: How to read the Parent POM version
- enableHiveSupport throws error in java spark code
相关文章
- IDEA2020 安装maven 插件后,springboot程序 SpringBootApplic
- pom文件中的插件定义
- pom.xml中的project为何报红
- Hibernate Tutorial - Where to put Mapping File?
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- New Maven install: mvn -version java.lang.ClassNot
- What's the difference between archetype.xml an
- NoNodeAvailableException[None of the configured no
The repository is where your libraries (aka artifacts) are stored. Dependencies are the names of the libaries that your corrent project depends on
Repository is a collection of artifacts (eg: jars). You can think of it as a mere storage / cache of various artifacts.
Dependency is a situation where your project dependent on another artifact to perform its task (eg: compile, run, unit test)
On a maven project you typically declare what artifacts you need on the
<dependency>
section of your pom, and you can also declare what repositories maven should lookup the dependency from at the<repositories>
section.By default maven will lookup the artifacts on the central repository. But it's common for an organization to have an internal repository containing in-house developed artifacts. Hence typically
<repositories>
section on the pom is configured with this.http://maven.apache.org/guides/index.html