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

Plugin is not processing standard maven options for disabling SSL-Certificate validations - download of allure binaries is not possible #296

Open
vinogradoff opened this issue Feb 13, 2024 · 1 comment

Comments

@vinogradoff
Copy link

vinogradoff commented Feb 13, 2024

Describe the bug

Allure Report binaries are located in the internal enterprise Artifactory. The URL is https://artifactory.intern (SSL with non-public Certificate). Certificates are not installed on the local machine.

It seems not possible to get binaries downloaded with maven.
Plugin Version: 2.12.0

To Reproduce
On the local machine configure pom.xml to any https server with not-trusted certificate:

<configuration>
 <reportVersion>2.24.0</reportVersion>
 <allureDownloadUrl>https://artifactory.intern/io/qameta/allure/allure-commandline/%s/allure-commandline-%s.zip</allureDownloadUrl>
</configuration>  

Run mvn allure:install-> ERROR sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target - that is okay, because no certificate.

Run mvn -Dmaven.wagon.http.ssl.insecure=true allure:install -> ERROR sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Expected behavior
No errors, file is downloaded successfully

Additional context
Other dependency in the same pom.xml can be successfully downloaded from the same server with -Dmaven.wagon.http.ssl.insecure=true option.

Possible solutions

  • process -Dmaven.wagon.http.ssl.insecure when downloading
  • add <ignoreSSL>true</ignoreSSL> option to configuration
  • always ignore SSL :-D
@TobiX
Copy link
Contributor

TobiX commented Nov 12, 2024

Don't use allureDownloadUrl and this plugin will use Maven's wagon to download the command line artifact the same way as all other Maven downloads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants