apache / apache/maven

[MNG-6567] Dependency resolution when repository defined

Open
#8,679 7 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 40m
Merged PRs (30d)
275

Description

**[Fred Bricon](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=fbricon)** opened **[MNG-6567](https://issues.apache.org/jira/browse/MNG-6567?redirect=false)** and commented

With the following pom.xml, the Maven build fails with _Could not resolve dependencies for project foo.bar:test:jar:0.0.1-SNAPSHOT: Could not find artifact org.eclipse.xtend:org.eclipse.xtend.lib:jar:2.17.0.M1_:

```

4.0.0
foo.bar
test
0.0.1-SNAPSHOT


org.eclipse.lsp4j
org.eclipse.lsp4j
0.6.0




oss-jfrog-snapshots
https://oss.jfrog.org/artifactory/libs-snapshot

false


true


```

If you remove the repository, the build works. That repo is configured to only fetch snapshots, so it makes no sense.

The funny thing is if you add

```

org.eclipse.xtend
org.eclipse.xtend.lib
2.17.0.M1

```

then Maven succeeds in resolving the transitive dependency.

---

**Affects:** 3.5.3, 3.6.0

**Attachments:**
- [build.txt](https://issues.apache.org/jira/secure/attachment/12955680/build.txt) (_47.80 kB_)

0 votes, 5 watchers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.