Does the KieScanner require artifact in local maven repository?

1,120 views
Skip to first unread message

Webster Homer

unread,
Apr 29, 2016, 1:35:18 PM4/29/16
to Drools Usage
I have a project that we would like to run in a docker container. It appears that the KieScanner fails if it cannot find the KJAR in the local repository. 

1 Why does it require a local repo at all?
2.The KJAR is clearly present in our Artifactory maven repository. But I get this error:
12:24:52,825 WARN  [org.kie.scanner.MavenRepository] (default task-1) Unable to resolve artifact: com.sial.rules:search-catalog-kjar:0.0.2-SNAPSHOT: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact com.sial.rules:search-catalog-kjar:jar:0.0.2-SNAPSHOT in local (file:/home/whomer/.m2/repository/)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) [aether-impl-1.13.1.jar:]
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) [aether-impl-1.13.1.jar:]


This seems like a stopper for a docker deployment of our application, or more likely we will not be able to leverage dynamic Rules deployment until this issue is addressed. 

I think that the use of Maven to support dynamic deployment was a poor choice, it is just too heavy a solution.

Abhijit Humbe

unread,
May 1, 2016, 3:28:56 AM5/1/16
to drools...@googlegroups.com
The KieScanner is a maven-oriented, it allows for continuous monitoring of the remote maven repository(/maven2/) to check if a new release of a Kie project has been installed. If artifact is not available in local maven repository it will download artifact from kieworkbench maven repository. You have to configure remote maven repository in setting.xml

Abhijit Humbe

This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you must not copy this message or attachment or disclose the contents to any other person. If you have received this transmission in error, please notify the sender immediately and delete the message and any attachment from your system. Merck KGaA, Darmstadt, Germany and any of its subsidiaries do not accept liability for any omissions or errors in this message which may arise as a result of E-Mail-transmission or for damages resulting from any unauthorized changes of the content of this message and any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its subsidiaries do not guarantee that this message is free of viruses and does not accept liability for any damages caused by any virus transmitted therewith.

Click http://www.merckgroup.com/disclaimer to access the German, French, Spanish and Portuguese versions of this disclaimer.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/1764ef92-ef41-4fc0-a615-0744bf6ae8c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Webster Homer

unread,
May 2, 2016, 1:37:20 PM5/2/16
to Drools Usage

Turned out that the problem was a proxy in the settings.xml file

Saroj Panigrahy

unread,
Aug 18, 2016, 2:00:43 AM8/18/16
to Drools Usage
Hi Webster,

I have requirement of running our API which uses KieScanner to get the jar file from a remote maven repo. 
For this to happen, do we need to have the local maven inside the docker container so that the downloaded artifacts can be stored and used from the local repo ?

Regards
Saroj
Reply all
Reply to author
Forward
0 new messages