diff --git a/pkg/dependency/parser/java/pom/pom.go b/pkg/dependency/parser/java/pom/pom.go index 83c5d4fec609..20a89149c97e 100644 --- a/pkg/dependency/parser/java/pom/pom.go +++ b/pkg/dependency/parser/java/pom/pom.go @@ -140,6 +140,14 @@ func (p *pom) repositories(servers []Server) ([]string, []string) { continue } + // remove all people.apache.org repositories + // this domain is used to fetch pom files in some cases, but it just nearly always times out and makes everything extremely slow + // so we just skip it + if strings.Contains(repoURL.Host, "people.apache.org") { + logger.Debug("Skipping people.apache.org repository", log.String("url", rep.URL)) + continue + } + // Get the credentials from settings.xml based on matching server id // with the repository id from pom.xml and use it for accessing the repository url for _, server := range servers {