Skip to content

check goal fails with multiple proxy definitions #831

@sam-afsa

Description

@sam-afsa

I have two proxy definitions in Maven settings.xml. The definitions are for different protocols (HTTP and HTTPS) and can be disambiguated on that basis. The definitions have different IDs.

These are the relevant log entries:

[INFO] --- dependency-check-maven:2.1.0:check (default) @ parent-pom ---
[WARNING] Multiple proxy definitions exist in the Maven settings. In the dependency-check configuration set the mavenSettingsProxyId so that the correct proxy will be used.
[ERROR] Failed to execute goal org.owasp:dependency-check-maven:2.1.0:check (default) on project parent-pom: Execution default of goal org.owasp:dependency-check-maven:2.1.0:check failed: Ambiguous proxy definition -> [Help 1]

I am using an ancient version of Maven because I work for a glacier:

$ mvn -version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-18 01:22:22+1000)
Maven home: redacted
Java version: 1.7.0_75, vendor: Oracle Corporation
Java home: redacted
Default locale: en_AU, platform encoding: Cp1252
OS name: "redacted", version: "redacted", arch: "amd64", family: "windows"

Current workaround is to specify mavenSettingsProxyId in the POM as suggested but I'd prefer not to have to do that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions