Upload artifact in kie-wb

268 views
Skip to first unread message

Neeraj Pandey

unread,
Dec 9, 2016, 6:14:50 AM12/9/16
to jBPM Usage
When we upload artifact into kie-wb from Authoring->Artifact Repository artifact gets installed in maven repository.
Is there any other way to do the same such as kie-wb REST API?

Upon uploading artifact into repository there are some files created (maven-metadata-guvnor-m2-repo.xml  maven-metadata-local.xml  resolver-status.properties).
What archetype does kie-wb use? What is the way to simulate the same without kie-wb? 

Thanks

Maciej Swiderski

unread,
Dec 9, 2016, 6:41:49 AM12/9/16
to Neeraj Pandey, jBPM Usage
This is exactly the same way as you would use it any other maven repository.
On 09.12.2016, at 12:14, Neeraj Pandey <gpk.pand...@gmail.com> wrote:

When we upload artifact into kie-wb from Authoring->Artifact Repository artifact gets installed in maven repository.
Is there any other way to do the same such as kie-wb REST API?
you can use maven deploy goal to upload automatically to workbench’s maven repo. mvn clean deploy assuming your pom.xml has all the information configured.


Upon uploading artifact into repository there are some files created (maven-metadata-guvnor-m2-repo.xml  maven-metadata-local.xml  resolver-status.properties).
What archetype does kie-wb use? What is the way to simulate the same without kie-wb? 
it’s uses by maven to figure out various things it needs to properly manage dependency.

Maciej

Thanks

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/bab72198-4232-419a-a451-cfb3a2fd2d24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Neeraj Pandey

unread,
Dec 9, 2016, 7:01:23 AM12/9/16
to jBPM Usage, gpk.pand...@gmail.com
Hi Maciej,

Thanks for the guidance.
Well I am trying to do this with install:install-file goal as given at https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html.
I am able to get the jars installed using packaging as jar and kjar, but missing creation of these files maven-metadata-guvnor-m2-repo.xml, maven-metadata-local.xml  and resolver-status.properties.

Even though there is no packaging info in pom.xml when we upload the artifact using kie-wb, is creation of these files somehow related to the packaging or kie-wb places them additionally? 

Maciej Swiderski

unread,
Dec 9, 2016, 7:10:41 AM12/9/16
to Neeraj Pandey, jBPM Usage
install-file is only for local repo and not for workbench repo which is considered as remote repository.

Maciej
Reply all
Reply to author
Forward
0 new messages