第 19 章 Maven Indexer 插件
Maven Indexer 插件需要 Maven Indexer 插件,以便其快速搜索 Maven Central 工件。
要部署 Maven Indexer 插件,请使用以下命令:
先决条件
在部署 Maven Indexer 插件前,请确定您已遵循在 Apache Karaf Preparing to Use Maven 部分的"安装"中的说明。
部署 Maven Indexer 插件
进入 Karaf 控制台,输入以下命令来安装 Maven Indexer 插件:
features:install hawtio-maven-indexer
输入以下命令配置 Maven Indexer 插件:
config:edit io.hawt.maven.indexer config:proplist config:propset repositories 'https://maven.oracle.com' config:proplist config:update
等待部署 Maven Indexer 插件。这可能需要几分钟时间。寻找日志选项卡中显示的消息,如下方所示的信息。
部署 Maven Indexer 插件后,使用以下命令将进一步的外部 Maven 存储库添加到 Maven Indexer 插件配置:
config:edit io.hawt.maven.indexer
config:proplist
config:propset repositories external repository
config:proplist
config:update