Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip people apache org repositories pom #8001

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/dependency/parser/java/pom/pom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down