hi together
In my gradle.build I referenced a KJAR (Kie Jar containing rules) with
“implementation ‘com.esalute:esalutebasic:1.0.0-SNAPSHOT’”. The package (JAR) and the associated POM was build with mvn install and is located in the directory C:\users\myUsername.m2\Repository\com\esalute\esalutebasic.
mavenlocal() is defined as follows:
repositories {
mavenLocal()
mavenCentral()
maven {
url ‘https://global.repo.jmix.io/repository/public’
}
maven {
url = ‘https://global.repo.jmix.io/repository/premium’
credentials {
username(rootProject.hasProperty(‘premiumRepoUser’) ?
rootProject[‘premiumRepoUser’] : System.getenv(‘PREMIUM_REPO_USER’))
password(rootProject.hasProperty(‘premiumRepoPass’) ?
rootProject[‘premiumRepoPass’] : System.getenv(‘PREMIUM_REPO_PASS’))
}
}
}
Compiling the project leads to the following error message:
Execution failed for task ‘:compileJava’.
Could not resolve all files for configuration ‘:compileClasspath’.
Could not resolve com.esalute:esalutebasic:1.0.0-SNAPSHOT.
Required by:
project :
Could not resolve com.esalute:esalutebasic:1.0.0-SNAPSHOT.
Unable to load Maven meta-data from https://global.repo.jmix.io/repository/premium/com/esalute/esalutebasic/1.0.0-SNAPSHOT/maven-metadata.xml.
Could not GET ‘https://global.repo.jmix.io/repository/premium/com/esalute/esalutebasic/1.0.0-SNAPSHOT/maven-metadata.xml’. Received status code 403 from server: Forbidden
To me it looks like jmix is not able to locate “mavenlocal()”. But the environmental variables and paths are set in a correct manner.
Any idea? Any hint is welcome since I am totally stucked here.
thx and best regards
Michael