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

Maven: Proxy support: ExternalDocumentationLinkResolver: cannot find external url #216

Closed
berndkursawe opened this issue Sep 12, 2017 · 2 comments
Labels
enhancement An issue for a feature or an overall improvement

Comments

@berndkursawe
Copy link

When I try to use dokka, I get this error message:

[ERROR] Failed to execute goal org.jetbrains.dokka:dokka-maven-plugin:0.9.15:dokka (default) on project logistik-anzeige: Execution default of goal org.jetbrains.dokka:dokka-maven-plugin:0.9.15:dokka failed: Guice provision errors:
[ERROR]
[ERROR] 1) Error injecting constructor, java.lang.RuntimeException: Exception while loading package-list from ExternalDocumentationLinkImpl(url=http://docs.oracle.com/javase/6/docs/api/, packageListUrl=http://docs.oracle.com/javase/6/docs/api/package-list)
[ERROR] at org.jetbrains.dokka.ExternalDocumentationLinkResolver.(ExternalDocumentationLinkResolver.kt:25)
[ERROR] at org.jetbrains.dokka.ExternalDocumentationLinkResolver.class(ExternalDocumentationLinkResolver.kt:25)
[ERROR] while locating org.jetbrains.dokka.ExternalDocumentationLinkResolver
[ERROR] for parameter 4 at org.jetbrains.dokka.DeclarationLinkResolver.(DeclarationLinkResolver.kt:9)
[ERROR] while locating org.jetbrains.dokka.DeclarationLinkResolver
[ERROR] for parameter 0 at org.jetbrains.dokka.PackageDocs.(PackageDocs.kt:13)
[ERROR] at org.jetbrains.dokka.PackageDocs.class(PackageDocs.kt:12)
[ERROR] while locating org.jetbrains.dokka.PackageDocs
[ERROR]
[ERROR] 1 error: Connection refused: connect

My guess is, that dokka cannot pass our proxy server and don't use the maven configuration. Is there a configuration for a proxy that I can use?

@jacombo
Copy link

jacombo commented May 31, 2018

proxy support would be added by #314
it support with basic authentication has been added using system properties below

-Dhttp.proxyHost=host.domain.com
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=host.domain.com
-Dhttps.proxyPort=8080
-DproxySet=true
-DproxyUser=user
-DproxyPassword=password

if proxySet is true and proxyUser with proxyPassword is set then basic proxy authentication is added

@semoro semoro changed the title ExternalDocumentationLinkResolver: cannot find external url in maven Maven: Proxy support: ExternalDocumentationLinkResolver: cannot find external url Jun 1, 2018
@semoro semoro added the enhancement An issue for a feature or an overall improvement label Jun 7, 2018
@Kordyjan
Copy link
Contributor

This issue is probably not present in 1.4.0. If it is still there feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An issue for a feature or an overall improvement
Projects
None yet
Development

No branches or pull requests

4 participants