Kie Workbench clone from remote git repo

2,574 views
Skip to first unread message

ravi pillala

unread,
Mar 16, 2016, 12:18:49 PM3/16/16
to Drools Setup
Hello All,

I'm trying to setup the kie-workbench development environment for our team. During this setup I want to connect to remote git repo. I'm not able to create a new project from the new repo clone.

Here are the steps i followed.
1. After initial setup , Home --> Administration --> Repositories --> Clone Repository --> Selected My Remote Git rep details and respective username/password
2. Project Authoring --> New Project --> Enter Project NAme --> Click "OK"


After step #2, I'm not getting any error message or new project popup screen. I'm wondering what i'm doing wrong here?. Not able to find any errors in log folder.

Any help or suggestions will be a great help to me.

Regards,
Ravi


Michael Anstis

unread,
Mar 16, 2016, 12:23:59 PM3/16/16
to drools...@googlegroups.com
Doesn't sound like you're doing anything particularly wrong.

Can you share your git repository?

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@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-setup/b7729868-384c-41bf-bb22-041483f20710%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ravi pillala

unread,
Mar 16, 2016, 12:44:55 PM3/16/16
to Drools Setup
My git repo is not accessible to internet. this repo is accessible, with in intranet only. I can create one empty one in public one and try.
 
Thanks
Ravi

ravi pillala

unread,
Mar 16, 2016, 9:24:32 PM3/16/16
to Drools Setup
I figured out that there is a bug in Kie workbench (6.3.0 Final). If the remote git repo is blank (non maven project), We are not able to create a drools project using workbench.

Question: Now i have made some changes to drl files, tested and build & deploy successful. Now I want to merge these changes to remote git repo (Commit & Push my changes to remote git repo)
1. I downloaded kie-config-cli-6.3.0.Final-dist.zip
2.I'm not able to push any of the changes to remote repo using following commands. i tryed to using push-changes.. no luck. please help how to move forward.

 
$ sh kie-config-cli.sh
********************************************************

************* Welcome to Kie config CLI ****************

********************************************************

>>Please specify location of remote git system repository [ssh://localhost:8001/system]
git
://localhost:9418/KIE9
>>Please enter username:
rpillala
>>Please enter password:

>>Please enter command (type help to see available commands):
list-repo
Result:
Currently available repositories:

>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):

Michael Anstis

unread,
Mar 17, 2016, 5:10:49 AM3/17/16
to drools...@googlegroups.com
Hi Ravi,

If the remote Repository is empty, then you should be able to clone it and create new Projects.

If the remote Repository is not empty and contains non-Maven project structure resources, I'd still like to think you could clone and create new Projects.

All that should be affected is that folder structures *not* Maven compliant (and *not* containing META-INF/kmodule.xml - making it a KIE Project) would *not* be visible in the Authoring Perspective.

If any of the above does not work, please create JIRAs at https://issues.jboss.org/projects/GUVNOR

As for pushing back to origin.. you'll need to navigate to .niogit/<your-repo> and perform a regular git push. We have no tooling to push back cloned repositories.

kie-cli-config is a CLI tool to configure some aspects of the Workbench.. The very first prompt states "Please specify location of remote git system repository".. It's use is covered in the User Guide.

With kind regards,

Mike

ravi pillala

unread,
Mar 18, 2016, 2:03:01 PM3/18/16
to Drools Setup
Thank you Mike for the Info. Is there anyway we can connect Kie to connect directly to remote git repo instead of having a local git repo?

Thanks
Ravi

Michael Anstis

unread,
Mar 18, 2016, 2:08:46 PM3/18/16
to drools...@googlegroups.com

No, that's not the way git works. It doesn't have the concept of a centralised remote server. All git operations on all git installations work on local clones.

Tom Cai

unread,
Jul 12, 2016, 8:47:03 AM7/12/16
to Drools Setup
Hi Michael ,
           I clone repository from remote git , this repository not a emtpy repository,I can find it in File Explorer ,but i can't find in project Explorer ;it's a stander maven project and have kmoudle.xml ;
           my remote git repository url: https://git.oschina.net/caicongyang/drools.git
   what should i do?

在 2016年3月19日星期六 UTC+8上午2:08:46,Michael Anstis写道:

Michael Anstis

unread,
Jul 12, 2016, 9:24:02 AM7/12/16
to drools...@googlegroups.com
The layout of the repository you link does not follow Maven's standards. KIE Workbench uses Maven layout conventions.

You can therefore either clone a completely empty git repository; or clone one with a standard Maven project structure. For example.  

Michael Anstis

unread,
Jul 12, 2016, 9:31:16 AM7/12/16
to drools...@googlegroups.com
For example:

<repo-root>/drools/src/main/java/rules/Message.java
<repo-root>/drools/src/main/resources/rules/msg.drl
<repo-root>/drools/src/main/resources/META-INF/kmodule.xml
<repo-root>/drools/pom.xml

"drools" will be the Project.

Message has been deleted

Michael Anstis

unread,
Jul 13, 2016, 2:53:03 AM7/13/16
to drools...@googlegroups.com
"Normally" the folder that "org.guvnor.m2repo.dir" can be configured to point to is in "<app-server-install-path>/bin" the default being "<app-server-install-path>/bin/repositories/kie".

Tomcat however has proven unusual in the past; especially if it has been installed by a "software manager" on the host operating system; e.g. Synaptic on Ubuntu.

If, in your case, Tomcat was installed via (something like) Synaptic you'll need to find the path yourself (Synaptic will show you all paths used by the installation).

On 13 July 2016 at 05:12, caicongyang <7730...@qq.com> wrote:
thanks Michael,

I install workbench use war package in tomcat ; I did not set "org
.guvnor.m2repo.dir" this properties, where is my repository file in my mac or how to set  system properties in tomcat about
"org.guvnor.m2repo.dir"

在 2016年7月12日星期二 UTC+8下午9:31:16,Michael Anstis写道:

caicongyang

unread,
Jul 13, 2016, 5:25:05 AM7/13/16
to Drools Setup
Thanks Michael ;
      I encountered another problem:
 i have 3 repositories :github,drools-web git ,eclipse egit;   I clone repo from github into drools-web; and clone repo from drools-web into eclipse egit for work use git url git://localhost:9418/uf-playground ;
      i minimum required to achieve   push change from eclipse git to drools-web git; i try push it to use drools user/password by ssh and git ,but it reponse auth fail;
how  i configure ? .security? or use kie-config-cli.sh? what should i do?
     i look over the below url ,but don't give me answer?
http://drools-moved.46999.n3.nabble.com/How-to-push-changes-to-cloned-repo-on-Kie-Workbench-td4027264.html#a4029670
   could you help me?
    thank you ! your are my angel!

   

在 2016年7月13日星期三 UTC+8下午2:53:03,Michael Anstis写道:

Michael Anstis

unread,
Jul 20, 2016, 7:13:37 AM7/20/16
to drools...@googlegroups.com
You need to use the ssh based URL when cloning a workbench repository.

So in Eclipse you should clone with ssh://user@localhost:8001/uf-playground.

You should then be able to commit back to the workbench repository.

caicongyang

unread,
Jul 28, 2016, 3:54:40 AM7/28/16
to Drools Setup
how i change repository_url to acess like ssh://us...@192.168.3.12:8001/uf-playground in workbench not ssh://user@localhost:8001/uf-playground

在 2016年7月20日星期三 UTC+8下午7:13:37,Michael Anstis写道:

Michael Anstis

unread,
Jul 28, 2016, 4:08:32 AM7/28/16
to drools...@googlegroups.com
Where do you want to change it?

If you mean the URL shown in the Administration Perspective.. at the moment you cannot. We have an open issue to fix it to show the server's IP address.

caicongyang

unread,
Jul 28, 2016, 4:40:19 AM7/28/16
to Drools Setup
i mean in wildfly8.2 standalone mode how to configure system properties about org.uberfire.nio.git.daemon.host and org.uberfire.nio.git.dir

in which file?

在 2016年7月28日星期四 UTC+8下午4:08:32,Michael Anstis写道:

Michael Anstis

unread,
Jul 28, 2016, 4:41:38 AM7/28/16
to drools...@googlegroups.com
I guess you'd be better asking on the Wildfly forums or reading their documentation; "How to set System Properties".

caicongyang

unread,
Aug 5, 2016, 2:33:03 AM8/5/16
to Drools Setup
thanks Michael Anstis:
          I Want to achieve Regular find like group() return a substr if matchs
in java in drools

在 2016年7月28日星期四 UTC+8下午4:41:38,Michael Anstis写道:

caicongyang

unread,
Aug 5, 2016, 2:34:13 AM8/5/16
to Drools Setup
can you  give me a demo ,I don't find some info in drools documents


在 2016年7月28日星期四 UTC+8下午4:41:38,Michael Anstis写道:
I guess you'd be better asking on the Wildfly forums or reading their documentation; "How to set System Properties".

Martijn Burger

unread,
Nov 11, 2016, 10:33:34 AM11/11/16
to Drools Setup
Hi Micheal,

I am seeing this issue too. Where is the issue and progress logged? Can you give me a JIRA link or something???

Op donderdag 28 juli 2016 10:08:32 UTC+2 schreef Michael Anstis:

Michael Anstis

unread,
Nov 11, 2016, 10:38:21 AM11/11/16
to drools...@googlegroups.com
Please humour me; what issue?

The last advice I gave on this thread was to try the Wildfly forums.

Happy to help.. I might just need reminding.

To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Martijn Burger

unread,
Nov 11, 2016, 11:24:16 AM11/11/16
to Drools Setup
You said: "If you mean the URL shown in the Administration Perspective.. at the moment you cannot. We have an open issue to fix it to show the server's IP address."

I am seeing localhost now, but I am on a webserver on the internet. The server hostname and hosts file are configured to show the public URL.

That open issue. :D

Op vrijdag 11 november 2016 16:38:21 UTC+1 schreef Michael Anstis:

Michael Anstis

unread,
Nov 11, 2016, 11:44:14 AM11/11/16
to drools...@googlegroups.com
OK.. thank-you.. I need poking from time to time; too many rods in too many fires as the saying (I've just made up!?!) goes.


To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Martijn Burger

unread,
Nov 11, 2016, 12:13:15 PM11/11/16
to Drools Setup
Great! just add the two parameters works like a charm!

Op vrijdag 11 november 2016 17:44:14 UTC+1 schreef Michael Anstis:
Reply all
Reply to author
Forward
0 new messages