Как сделать настраиваемый компонент сплетения в расширении maven?
Я пытаюсь изменить расширение tesla-profiler для поддержки различных форматов вывода, а также выбрать путь для записи файла.
Мой текущий файл component.xml определяет "средство визуализации" с определенной реализацией, которая требуется профилировщику и выбирается ролью-подсказкой, но теперь она полностью статична и выглядит следующим образом:
<?xml version="1.0" encoding="UTF-8"?>
<component-set>
<components>
<component>
<role>io.tesla.lifecycle.profiler.SessionProfileRenderer</role>
<role-hint>file-writer</role-hint>
<implementation>io.tesla.lifecycle.profiler.SessionProfileFileWriter</implementation>
<configuration>
<filename>profile.out</filename>
</configuration>
</component>
<component>
<role>org.apache.maven.eventspy.EventSpy</role>
<role-hint>tesla-profiler</role-hint>
<implementation>io.tesla.lifecycle.profiler.LifecycleProfiler</implementation>
<isolated-realm>false</isolated-realm>
<requirements>
<requirement>
<role>io.tesla.lifecycle.profiler.SessionProfileRenderer</role>
<role-hint>file-writer</role-hint>
</requirement>
</requirements>
</component>
</components>
</component-set>
Я хотел бы знать, могу ли я как-то параметризировать или переопределить его, чтобы я мог выбрать из pom.xml проекта SessionProfileRenderer
использовать и, возможно, также параметры для рендерера, например, путь к файлу для записи в SessionProfileFileWriter
,