-
1. Re: Not able to "Build and Deploy" a project from the cloned repository
salaboy21 Oct 30, 2013 8:47 AM (in response to waghvikrant)That should only happen with the Customer Relationship Project and that's due the fact that you need to compile and install into your maven repository the customer-services-workitem project first, so maven can resolve that dependency when it's building the project. You shouldn't experience any issue with the other two projects hosted in the jbpm playground repository.
-
2. Re: Not able to "Build and Deploy" a project from the cloned repository
waghvikrant Oct 30, 2013 9:00 AM (in response to salaboy21)Thanks for you reply.
I am not trying to build the projects from jbpm-playground repository. I have cloned the repository from my company's server. We are switching to jBPM 6. I am trying to build and deploy those bpmn processes inside the kie-wb Web designer.
-
3. Re: Not able to "Build and Deploy" a project from the cloned repository
swiderski.maciej Nov 1, 2013 7:44 AM (in response to waghvikrant)most likely the issues are caused by not being able to find the artifacts defined as dependencies in pom.xml. Maybe you don't have repositories configured in pom.xml of the project you're trying to deploy and thus maven resolution is failing.
HTH
-
4. Re: Not able to "Build and Deploy" a project from the cloned repository
salaboy21 Nov 1, 2013 7:49 AM (in response to waghvikrant)You can try imitating the project structure that we are proposing in the jbpm-playground repository for your projects.
We have the following:
1) Kjar, for example: customer-relationship/ project
2) Workitems and services: customer-relationship-workitems/ project
3) Tests: test the process with CDI and No CDI. -> This allows us to remove all the test dependencies from the KJar so it build and deploy faster without much dependency resolution for the project itself.
Take a look at the refactored projects:
-
5. Re: Not able to "Build and Deploy" a project from the cloned repository
sanjay05222 Jan 19, 2015 1:36 AM (in response to salaboy21)Mauricio Salatino wrote:
You can try imitating the project structure that we are proposing in the jbpm-playground repository for your projects.
We have the following:
1) Kjar, for example: customer-relationship/ project
2) Workitems and services: customer-relationship-workitems/ project
3) Tests: test the process with CDI and No CDI. -> This allows us to remove all the test dependencies from the KJar so it build and deploy faster without much dependency resolution for the project itself.
Take a look at the refactored projects:
Hi @Mauricio Salatino Please let me know if there was any update on this JIRA issue [JBPM-4202] Unable to deploy a project (kjar) with dependencies in the pom to jbpm 6-console - JBoss Issue Tracker
I dont think so that it is solved yet . is this a valid JIRA ? or it is just lying there ? I am also facing similar issue
Steps to reproduce are as below .
1. Got to Artifacts Repository and then upload the pojos.jar for which your process will need the pojos let say for data transfer between the various tasks like Data Model.
2. Open the project in kie work bench and then go to project editor select from the drop down the add dependencies and then select the polos.jar as dependencies.
3. Save the Project and then Try to build you will get the same error .
Work around had been that now I pack pojos along with the kie project side by side the data modeler.
22:13:32,717 ERROR [stderr] (FileRepositoryConnector-1) Exception in thread "FileRepositoryConnector-1" java.lang.IllegalArgumentException: number of transferred bytes cannot be negative
22:13:32,718 ERROR [stderr] (FileRepositoryConnector-1) at org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:123)
22:13:32,719 ERROR [stderr] (FileRepositoryConnector-1) at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:299)
22:13:32,714 ERROR [org.guvnor.common.services.builder.BuildServiceImpl] (default task-24) number of transferred bytes cannot be negative: java.lang.IllegalArgumentException: number of transferred byt
es cannot be negative
at org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:123) [aether-util-1.13.1.jar:]
at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:299) [aether-connector-file-1.13.1.jar:]
at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60) [aether-util-1.13.1.jar:]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]
Thanks
Sanjay Gautam