Table of Contents
<profile>
<id>guvnor-m2-repo</id>
<repositories>
<repository>
<id>guvnor-m2-repo</id>
<name>BRMS Repository</name>
<url>http://localhost:8080/decision-central/maven2/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
Note
|
The updatePolicy can be always", "daily" (default), "interval:XXX" (in minutes) or "never" (only if it doesn’t exist locally).
|
It is either needed to turn on pre-emptive authentication for the repository server by
<server>
<id>guvnor-m2-repo</id>
<username>kylin</username>
<password>password1!</password>
<configuration>
<wagonProvider>httpclient</wagonProvider>
<httpConfiguration>
<all>
<usePreemptive>true</usePreemptive>
</all>
</httpConfiguration>
</configuration>
</server>
or set Authorization HTTP header with Base64 encoded credentials
<server>
<id>guvnor-m2-repo</id>
<configuration>
<httpHeaders>
<property>
<name>Authorization</name>
<!-- Base64-encoded "kylin:password1!" -->
<value>Basic a3lsaW46cGFzc3dvcmQxIQ==</value>
</property>
</httpHeaders>
</configuration>
</server>