This guide explains how to configure additional Maven repositories to improve Kiuwan Insights dependency resolution for Gradle-based projects.
Local configuration of Kiuwan Insights repositories
Configure additional repositories by editing the ${KLA_INST_DIR}/conf/insight.properties file
Local Maven Repository
In case your installation contains a local Maven repository, you can configure Kiuwan to search for components' information in that repository.
To do it, configure the location through the property: maven.local.directory
#Directory where the local maven repository is.
#Example: maven.local.directory=C:/Users/user/.m2/repository
maven.local.directory=Additional Public Maven Repositories Configuration
By default, Kiuwan searches for components' information in Maven central. We will be adding some other public repositories, but you can also add repositories you know are being used.
To add additional public Maven repositories, add those repos to the property: maven.public.repositories
#Url of public repositories (different to maven repository) for example, https://repository.jboss.org/nexus/content/repositories/public
#separated by comma.
maven.public.repositories=Additional Private Maven Repositories
If you are accessing private Maven repos, add them using the properties below:
#Remote repositories data.
#If you need add other remote repositories you can add new properties
#with next number at the end of word repository (repository2, repository3,...)
maven.private.repository1.url=
maven.private.repository1.user=
maven.private.repository1.password=
maven.private.repository1.privateKeyFile=
maven.private.repository1.passphrase=
maven.private.repository1.useProxy=Important notes
By default, Kiuwan Insights uses the public Maven repository (Maven Central) and also considers repository configurations defined in the Maven
settings.xmlfile, if available.Any custom repositories used in Gradle that are not defined in
settings.xmlmust be explicitly configured in theinsight.propertiesfile, as explained above.