I can't remember in which version it was fixed, but "Build & Deploy" now honours the <distributionManagement> section in a project's pom and applicable server configuration in settings.xml

The fix was made March/April 2014 and hence will be in 6.1.0.CR1. 


On 26 June 2014 04:24, Zahid Ahmed <zahid.ahmed@emirates.com> wrote:

Hi,

 

I have a related question. When I do build and deploy, WB generates maven artifacts in a local repository (a directory defined as <localRepository> in settings.xml).

 

Problem

I am expecting WB to deploy it to the remote repository which it is not doing. I have done following configuration in maven setting.xml and project’s pom.xml.

 

Kindly let me know if I am missing any configuration.

 

Pom.xml

<?xml version="1.0" encoding="UTF-8"?>

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"

xmlns=http://maven.apache.org/POM/4.0.0

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 <modelVersion>4.0.0</modelVersion>

 

  <groupId>emiGrp</groupId>

  <artifactId>emiProj</artifactId>

  <version>1.0</version>

 

  <name>emiProj</name>

 

<distributionManagement>

<repository>

<id>droolssix</id>

<url>http://localhost:6900/archiva/repository/droolssix</url>

</repository>

</distributionManagement>

 

<repositories>

                <repository>

                                <id>droolssix</id>

                                <name>droolssix</name>

<url>http://localhost:6900/archiva/repository/droolssix/</url>

</repository>

</repositories>

</project>

 

 

 

Settngs.xml

<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">

 

                <localRepository>d:\localMaven\Repo</localRepository>

 

<servers>

                                <server>

                                                <id>droolssix</id>

                                                <username>admin</username>

                                                <password>$admin123$</password>

                                </server>

                </servers>

</settings>

 

 

 

Regards,

Zahid

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Michael Anstis
Sent: 25 June 2014 18:46
To: Rules Users List
Subject: Re: [rules-users] BRMS Build & Deploy

 

OK, so I didn't read your email properly :(

 

There is a REST API to build and deploy programmatically; see the User Guide for details: http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/wb.WorkbenchIntegration.html#drools.WorkbenchRemoteAPI

 

On 25 June 2014 15:07, Michael Anstis <michael.anstis@gmail.com> wrote:

Build+Deploy builds everything in your project (rules, processes etc) into a KJAR and deploys them to the workbench's maven repository.

 

If you're running kie-wb then there is also the notion of deploying a KJAR to the jBPM runtime.. but I don't know the exact mechanism (I've BCC'ed some colleagues who can help you).

 

On 25 June 2014 14:05, Shrinath Managuli <shrinath.managuli@aspiresys.com> wrote:

Hi Drools,

 

Is it possible to automate the Build & Deploy processes in BRMS?

 

 

Thanks,

Shrinath

Aspire Systems

This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

Aspire Systems

This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

 

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

 

 


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users