You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this error that info.licenseUrlhas evaluated to null or missing. Where am I supposed to set it, and to what? I tried defining it as Java property, so far no luck.
[ERROR] Failed to execute goal com.webcohesion.enunciate:enunciate-maven-plugin:2.12.1:docs (default-cli) on project com.foo.bar.baz: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:[ERROR] ==> info.licenseUrl [in template "jar:file:/home/cartley/.m2/repository/dk/jyskebank/tooling/enunciate/enunciate-openapi/1.1.5/enunciate-openapi-1.1.5.jar!/dk/jyskebank/tools/enunciate/modules/openapi/openapi.fmt" at line 41, column 12][ERROR] [ERROR] ----[ERROR] Tip: It's the step after the last dot that caused this error, not those before it.[ERROR] ----[ERROR] Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??[ERROR] ----[ERROR] [ERROR] ----[ERROR] FTL stack trace ("~" means nesting-related):[ERROR] - Failed at: ${info.licenseUrl} [in template "jar:file:/home/cartley/.m2/repository/dk/jyskebank/tooling/enunciate/enunciate-openapi/1.1.5/enunciate-openapi-1.1.5.jar!/dk/jyskebank/tools/enunciate/modules/openapi/openapi.fmt" at line 41, column 10][ERROR] - Reached through: @file name="openapi.yml" charset="utf-8" [in template "jar:file:/home/cartley/.m2/repository/dk/jyskebank/tooling/enunciate/enunciate-openapi/1.1.5/enunciate-openapi-1.1.5.jar!/dk/jyskebank/tools/enunciate/modules/openapi/openapi.fmt" at line 19, column 1][ERROR] ----
The text was updated successfully, but these errors were encountered:
It's actually maven, but same difference. I've tried a few different versions of enunciate and enunciate-openapi as well as the config file settings. I'll be sure to let you know if I figure it out.
i have the same issue with maven.
The issue is that it use the maven license url information and when is not available it fails.
Workaround is set in maven pom.xml something like this:
I get this error that
info.licenseUrl
has evaluated to null or missing.
Where am I supposed to set it, and to what? I tried defining it as Java property, so far no luck.The text was updated successfully, but these errors were encountered: