Michael,Thanks for the reply. The jar file is already been installed into m2 repository on KIE server. Here is the folder structure of m2 repository after each install. I am using InstallRequest API to install the jar and pom artifact. Do I need to Deploy as well? I disposed the container and recreated it again... No new rules were applied...On 26 April 2017 at 08:36, Michael Anstis <email@example.com> wrote:
Seems like you're using KIE Server? Is it KIE Server that is not "seeing" the revised Snapshots? What is the maven refresh policy for snapshots on the server running KIE Server? It'll only detect updates once a day by default.On 25 Apr 2017 21:31, "wang Sherry" <firstname.lastname@example.org> wrote:Hi, Michael,I followed your solution to auto generate kjar. I added the dependency and install the jar using Install to KIE's maven repository. Each time new timestamp is added to pom.xml of the kjar. After install, the container is disposed and recreated as well. But it will only take effect after a restart. I am using latest JBPM 7 Beta8https://groups.google.com/foru
m/?utm_medium=email&utm_source =footer#!msg/drools-usage/0MwV 2n3juYo/41Mk7NumJwAJThanksSherryOn 24 April 2017 at 21:32, Michael Anstis <email@example.com> wrote:Nope, sorry. The cache is "internal" and not for public (API) usage.What problem do you have? What application server are you using?On 24 April 2017 at 01:03, wang Sherry <firstname.lastname@example.org> wrote:Hi, Michael ,Is there any API that could be used to refresh the cache? I changed description in pom.xml each time when generating the JAR and then install it to m2 repository of KIE. It never refresh the cache....
On Monday, 9 May 2016 21:14:53 UTC+12, Michael Anstis wrote:There is a cache of class meta-data extracted from the Project's classes and Project's dependencies.The cache is cleared whenever a change to the pom.xml, kmodule.xml or Project .java file is detected.Since you are only uploading a new JAR the Workbench is not detecting any changes and the cache is not cleared.Try editing the pom.xml after uploading your new JAR (e.g. just change the Project Description and save).On 9 May 2016 at 10:09, Marius Lazar <marius...@gmail.com> wrote:I have uploaded a jar containing my data model to workbench through "Artifact repository" and set the version to "1.0-SNAPSHOT". Then I added the jar as a dependency to my project and I have built some rules with it ( no need to add the jar to "Config" because the class inside jar is in the same package ).--
Now I want to update the data model. After I generate a new jar with the new data model (added a new property) and upload it again through "Artifact repository", I want to see the new field when I try to update a rule. ( I didn't add the jar to dependency list of the project again because the first time I have set the version to SNAPSHOT, so it should take the right one, and it does, but not the way I want it).
I don't see the new field added nor when I refresh the project or refresh the page ( CTRL+F5 ), but I do see the field if I close the running instance of Workbench + Server ( CTRL+C on command line ) and start it again. ( I use the workbench and server on the same PC and opened them with one command ).
I really need to do the refresh programmatically, without the need of restarting the running instance of workbench + server. Can you give me some guidance ?
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.c
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/drools-usage/e88ec7e1-14b9. -41d0-8864-8abbaf77a2e8%40goog legroups.com
For more options, visit https://groups.google.com/d/op