pom.xml の guvnor-m2-repo に認証情報を付けたい。
<repositories> <repository> <id>guvnor-m2-repo</id> <name>Guvnor M2 Repo</name> <url>http://localhost:8080/jbpm-console/maven2/</url> </repository> </repositories>
C:\Users\ku_000\.m2\settings.xml というファイルを作成。中身はこんな感じです。詳細
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers>
<server>
<id>guvnor-m2-repo</id>
<username>builder</username>
<password>builder</password>
</server>
</servers>
<mirrors/>
<proxies/>
<profiles/>
<activeProfiles/>
</settings>
builder はユーザーを作成するか、既存のものを指定してください。
それから Alt + F5 で Update Maven Project を実施します。
0 件のコメント:
コメントを投稿