
Following exception is thrown in 'Kie-Server v6.2.0' while creating a container in 'Kie Workbench v 6.2.0':
01:15:22,501 WARN [org.kie.scanner.MavenRepository] Unable to resolve artifact: first.second:third:1.0: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact first.second:third:jar:1.0 from/to central (
http://repo1.maven.org/maven2/):
repo1.maven.org at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444) [aether-impl-1.0.0.v20140518.jar:]
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) [aether-impl-1.0.0.v20140518.jar:]
As shown in the screen shot,
- 'Kie-workbench v6.2.0' and 'Kie-Server v6.2.0' are installed in two different servers.
- This property is set in both 'workbench' and 'execution server' <property name="org.guvnor.m2repo.dir" value="/drools/mvn"/>
- In Kie-workbench, when I build and deploy, artifacts are stored in the directory '/drools/mvn' as expected in the first server
- Manually I copied '/drools/mvn' directory to the Server 2 (to Kie-Server)
- Exception is thrown when I create a Kie-server container in the workbench with valid group and artifact id
Why does Kie-server go to '
repo1.maven.org' instead of looking at the directory '/drools/mvn' as I set the property?
Is there any other property I have to set so that Kie-server doesn't refer '
repo1.maven.org'?
Thanks,
Prakash