Adding Distribution Management by default in pom.xml

285 views
Skip to first unread message

Apurva Vaingankar

unread,
Sep 12, 2019, 5:49:08 AM9/12/19
to Drools Development
Hi,

We wanted to add the distribution Management in the pom.xml of every project by default(when new Drools Project is created or imported).

We have multiple Projects in Multiple Spaces in the Business Central Workbench. Currently, to deploy the artifact on the remote maven repository we have to edit the pom.xml file manually to add the DistributionManagement tag.

Is there any way, we can have to DistributionManagement tag with specified values added in pom.xml during creation or importing of Project. If not, what code changes can we make in the Business Central Workbench so that we can meet this requirement.

Thanks,

Alex Porcelli

unread,
Sep 16, 2019, 9:09:26 AM9/16/19
to drools-de...@googlegroups.com
Hi Apurva,

Business Central does not have such feature out of the box (basically
create a project out of a template or something alike). However, you
can work around by creating a githook that would intercept the file
pom.xml file creation and add the DistributionManagement tag to it.

Regards,
___________________
Alex Porcelli
F: +1 (978) 844-8695
http://porcelli.me
> --
> You received this message because you are subscribed to the Google Groups "Drools Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-developm...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-development/587596e4-731a-408b-865f-cb7fb4962ffd%40googlegroups.com.

Apurva Vaingankar

unread,
Sep 16, 2019, 9:38:02 AM9/16/19
to Drools Development
Thanks Alex. For now we have made few changes in the code itself to add Distribution Management with Repository and Snapshot Repository when initial Project is created. Followed the same steps as that of adding kie-plugin in the pom.xml.


On Monday, 16 September 2019 18:39:26 UTC+5:30, Alex Porcelli wrote:
Hi Apurva,

Business Central does not have such feature out of the box (basically
create a project out of a template or something alike). However, you
can work around by creating a githook that would intercept the file
pom.xml file creation and add the DistributionManagement tag to it.

Regards,
___________________
Alex Porcelli
F: +1 (978) 844-8695
http://porcelli.me

On Thu, Sep 12, 2019 at 2:49 AM Apurva Vaingankar <apurv...@gmail.com> wrote:
>
> Hi,
>
> We wanted to add the distribution Management in the pom.xml of every project by default(when new Drools Project is created or imported).
>
> We have multiple Projects in Multiple Spaces in the Business Central Workbench. Currently, to deploy the artifact on the remote maven repository we have to edit the pom.xml file manually to add the DistributionManagement tag.
>
> Is there any way, we can have to DistributionManagement tag with specified values added in pom.xml during creation or importing of Project. If not, what code changes can we make in the Business Central Workbench so that we can meet this requirement.
>
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups "Drools Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-development+unsub...@googlegroups.com.

Alex Porcelli

unread,
Sep 16, 2019, 11:08:12 AM9/16/19
to drools-de...@googlegroups.com
Cool :)

Regards,
___________________
Alex Porcelli
F: +1 (978) 844-8695
http://porcelli.me

>> > To unsubscribe from this group and stop receiving emails from it, send an email to drools-developm...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups "Drools Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-developm...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-development/f5ee978f-5ee7-4b7b-a04d-cb91b7dee8b7%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages