- Использование плагина exec-maven для вычисления учетных данных Base64:
Код: Выделить всё
org.codehaus.mojo
exec-maven-plugin
3.1.0
compute-base64
initialize
exec
sh
-c
echo -n '${ar.user}:${ar.password}' | base64
${project.build.directory}/base64-output.txt
- Использование плагина свойств-maven для чтения вывода Base64:
Код: Выделить всё
org.codehaus.mojo
properties-maven-plugin
1.2.1
read-project-properties
${project.build.directory}/base64-output.txt
- Передача учетных данных Base64 генератору OpenAPI:
Код: Выделить всё
org.openapitools
openapi-generator-maven-plugin
7.2.0
jaxrs-spec
false
${project.basedir}/reference/project.yaml
project.api.dto
Authorization: Basic ${base64-output}
src
project.api
true
java8-localdatetime
true
true
true
true
true
generate-api
generate
Подробнее здесь: https://stackoverflow.com/questions/793 ... ven-plugin
Мобильная версия