Wrong Repository search during installing kjar through REST-API in BPMS 6
Issue
- The system property
org.guvnor.m2repo.diris set to
<property name="org.guvnor.m2repo.dir" value="\\domain.com\path\to\maven_repo"></property>
A maven install is performed via REST-Call /repositories/{repositoryName}/projects/{projectName}/maven/install. The kjar installation breaks wiith Exception:
ERROR [stderr] (EJB default - 6) java.lang.RuntimeException: org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor for com.test:SampleProject:jar:LATEST
. . .
ERROR [stderr] (EJB default - 6) Caused by: org.eclipse.aether.resolution.VersionResolutionException: Failed to resolve version for com.test:SampleProject:jar:LATEST: Could not find metadata com.test:SampleProject/maven-metadata.xml in local (C:\Users\TestUser\.m2\repository)
It looks like the repository which is set via system property isn't used. Instead the local maven repository of the user is scanned.
Environment
- Red Hat JBoss BPM Suite
- 6.x
- Red Hat JBoss BRMS
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
