Import-Export jar

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Import-Export jar

hpaks23@gmail.com
Hello,

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

Any help is appreciated!!

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Import-Export jar

Jason Tesser-2
this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

see 

in fact the service plugin I linked right above is an example of what you are trying to do 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:
Hello,

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

Any help is appreciated!!

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Import-Export jar

Nathan Keiter

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f0e3ef622a3f4c1ea067f762e098b1de%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Import-Export jar

hpaks23@gmail.com
Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.


On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xQ8b_8LMBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xQ8b_8LMBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xQ8b_8LMBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@...
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

<a href="https://dotcms.com/docs/latest/osgi-services-plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;">https://dotcms.com/docs/latest/osgi-services-plugin

<a href="https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;">https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xQ8b_8LMBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hpa...@...> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xQ8b_8LMBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xQ8b_8LMBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;"> do...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xQ8b_8LMBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xQ8b_8LMBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Import-Export jar

Nathan Keiter

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: <a href="javascript:" target="_blank">dot...@...
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <<a href="javascript:" target="_blank">hpa...@...> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">do...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1314797de5b44596905a8a4770d98dcc%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Import-Export jar

hpaks23@gmail.com
Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2Z8uz0XVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2Z8uz0XVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2Z8uz0XVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hpa...@...
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

<a href="https://dotcms.com/docs/latest/osgi-services-plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;">https://dotcms.com/docs/latest/osgi-services-plugin

<a href="https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;">https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2Z8uz0XVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2Z8uz0XVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Import-Export jar

Nathan Keiter

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of <a href="javascript:" target="_blank">hpa...@...
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+[hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+[hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ce9a271b570d408bb9bd8ac38260417c%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Import-Export jar

hpaks23@gmail.com
Hmmm...  so you are saying it would be more feasible to
1. Either import the plugin jar to every plugin project.
2. Or to just use the save/update/delete methods directly in every plugin.

On Monday, November 6, 2017 at 12:41:36 PM UTC-6, Nathan Keiter wrote:

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-Ug3i-bVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="-Ug3i-bVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-Ug3i-bVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hpa...@...
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

<a href="https://dotcms.com/docs/latest/osgi-services-plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;">https://dotcms.com/docs/latest/osgi-services-plugin

<a href="https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;">https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-Ug3i-bVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-Ug3i-bVBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Import-Export jar

Nathan Keiter

#2. Add the source code of the package or classes directly to each plugin. (To avoid namespace conflicts adopt the package name of the specific plugin.)

 

For example by class:

 

edu.gettysburg.nkeiter.transportation.utilities.ContentletUtility.java

 

edu.gettysburg.nkeiter.admissions.utilities.ContentletUtility.java

 

Or by package

 

edu.gettysburg.nkeiter.transportation.utilities.content.services

 

edu.gettysburg.nkeiter.admissions.utilities.content.services

 

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:47 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Hmmm...  so you are saying it would be more feasible to

1. Either import the plugin jar to every plugin project.

2. Or to just use the save/update/delete methods directly in every plugin.


On Monday, November 6, 2017 at 12:41:36 PM UTC-6, Nathan Keiter wrote:

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of <a href="javascript:" target="_blank">hpa...@...
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6dea7b0d00334896a231ed4a743a84a8%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Import-Export jar

hpaks23@gmail.com
Cool!! i will update so... thank you for the help!!

On Monday, November 6, 2017 at 12:51:09 PM UTC-6, Nathan Keiter wrote:

#2. Add the source code of the package or classes directly to each plugin. (To avoid namespace conflicts adopt the package name of the specific plugin.)

 

For example by class:

 

edu.gettysburg.nkeiter.transportation.utilities.ContentletUtility.java

 

edu.gettysburg.nkeiter.admissions.utilities.ContentletUtility.java

 

Or by package

 

edu.gettysburg.nkeiter.transportation.utilities.content.services

 

edu.gettysburg.nkeiter.admissions.utilities.content.services

 

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="zhzC8mvWBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="zhzC8mvWBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="zhzC8mvWBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hpa...@...
Sent: Monday, November 06, 2017 1:47 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Hmmm...  so you are saying it would be more feasible to

1. Either import the plugin jar to every plugin project.

2. Or to just use the save/update/delete methods directly in every plugin.


On Monday, November 6, 2017 at 12:41:36 PM UTC-6, Nathan Keiter wrote:

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

<a href="https://dotcms.com/docs/latest/osgi-services-plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;">https://dotcms.com/docs/latest/osgi-services-plugin

<a href="https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;">https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="zhzC8mvWBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="zhzC8mvWBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Import-Export jar

Nathan Keiter

Cool. For a more concrete example, every plugin I write now uses a custom logger class if applicable:

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.template.viewtool/src/main/java/org/example/nkeiter/template/viewtool/log/Logger.java

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.generic/src/main/java/org/example/nkeiter/generic/log/Logger.java

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.contentlet.rest.light/src/main/java/org/example/nkeiter/contentlet/rest/light/log/Logger.java

 

Now depending on where it’s deployed the server names would be a little different, so it’s not the purest example, but should give the general idea. In a pure example, the source would be identical across all plugins. Unfortunately I don’t have any example code loaded on GitHub demonstrating that, but here in our private repos I have many such examples.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:55 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Cool!! i will update so... thank you for the help!!

On Monday, November 6, 2017 at 12:51:09 PM UTC-6, Nathan Keiter wrote:

#2. Add the source code of the package or classes directly to each plugin. (To avoid namespace conflicts adopt the package name of the specific plugin.)

 

For example by class:

 

edu.gettysburg.nkeiter.transportation.utilities.ContentletUtility.java

 

edu.gettysburg.nkeiter.admissions.utilities.ContentletUtility.java

 

Or by package

 

edu.gettysburg.nkeiter.transportation.utilities.content.services

 

edu.gettysburg.nkeiter.admissions.utilities.content.services

 

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of <a href="javascript:" target="_blank">hpa...@...
Sent: Monday, November 06, 2017 1:47 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Hmmm...  so you are saying it would be more feasible to

1. Either import the plugin jar to every plugin project.

2. Or to just use the save/update/delete methods directly in every plugin.


On Monday, November 6, 2017 at 12:41:36 PM UTC-6, Nathan Keiter wrote:

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f15ccc7c45e64149883da87c268112a0%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Import-Export jar

Nathan Keiter

Here’s another example. A copy of this class is in every plugin which runs queries against an Oracle database. It’s a helper method which parses the string value returned to a Java date object.

 

https://gist.github.com/nkeiter/4652d4aadddb6ce00434fc2b01174f82

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Monday, November 06, 2017 2:02 PM
To: [hidden email]
Subject: RE: [dotcms] Import-Export jar

 

Cool. For a more concrete example, every plugin I write now uses a custom logger class if applicable:

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.template.viewtool/src/main/java/org/example/nkeiter/template/viewtool/log/Logger.java

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.generic/src/main/java/org/example/nkeiter/generic/log/Logger.java

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.contentlet.rest.light/src/main/java/org/example/nkeiter/contentlet/rest/light/log/Logger.java

 

Now depending on where it’s deployed the server names would be a little different, so it’s not the purest example, but should give the general idea. In a pure example, the source would be identical across all plugins. Unfortunately I don’t have any example code loaded on GitHub demonstrating that, but here in our private repos I have many such examples.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:55 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Cool!! i will update so... thank you for the help!!

On Monday, November 6, 2017 at 12:51:09 PM UTC-6, Nathan Keiter wrote:

#2. Add the source code of the package or classes directly to each plugin. (To avoid namespace conflicts adopt the package name of the specific plugin.)

 

For example by class:

 

edu.gettysburg.nkeiter.transportation.utilities.ContentletUtility.java

 

edu.gettysburg.nkeiter.admissions.utilities.ContentletUtility.java

 

Or by package

 

edu.gettysburg.nkeiter.transportation.utilities.content.services

 

edu.gettysburg.nkeiter.admissions.utilities.content.services

 

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of <a href="javascript:" target="_blank">hpa...@...
Sent: Monday, November 06, 2017 1:47 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Hmmm...  so you are saying it would be more feasible to

1. Either import the plugin jar to every plugin project.

2. Or to just use the save/update/delete methods directly in every plugin.


On Monday, November 6, 2017 at 12:41:36 PM UTC-6, Nathan Keiter wrote:

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f15ccc7c45e64149883da87c268112a0%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/34fba8d1634b4fc2b9543944f8729688%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Import-Export jar

hpaks23@gmail.com
So you are adding the class to every plugin that needs to use this functionality. what would be the drawback of adding the plugin jar file itself to those plugins which need it?

On Monday, November 6, 2017 at 2:15:31 PM UTC-6, Nathan Keiter wrote:

Here’s another example. A copy of this class is in every plugin which runs queries against an Oracle database. It’s a helper method which parses the string value returned to a Java date object.

 

<a href="https://gist.github.com/nkeiter/4652d4aadddb6ce00434fc2b01174f82" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Fnkeiter%2F4652d4aadddb6ce00434fc2b01174f82\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEW5PTc2dVBLyK4dkAj_9mujuN4zw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Fnkeiter%2F4652d4aadddb6ce00434fc2b01174f82\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEW5PTc2dVBLyK4dkAj_9mujuN4zw&#39;;return true;">https://gist.github.com/nkeiter/4652d4aadddb6ce00434fc2b01174f82

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@googlegroups.com] On Behalf Of Nathan Keiter
Sent: Monday, November 06, 2017 2:02 PM
To: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@...
Subject: RE: [dotcms] Import-Export jar

 

Cool. For a more concrete example, every plugin I write now uses a custom logger class if applicable:

 

<a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.template.viewtool/src/main/java/org/example/nkeiter/template/viewtool/log/Logger.java" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms4.1.1%2Fosgi%2Forg.example.nkeiter.template.viewtool%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Ftemplate%2Fviewtool%2Flog%2FLogger.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEB0iZAw8ZMdS3VZPLKGwHCP7YfTQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms4.1.1%2Fosgi%2Forg.example.nkeiter.template.viewtool%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Ftemplate%2Fviewtool%2Flog%2FLogger.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEB0iZAw8ZMdS3VZPLKGwHCP7YfTQ&#39;;return true;">https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.template.viewtool/src/main/java/org/example/nkeiter/template/viewtool/log/Logger.java

 

<a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.generic/src/main/java/org/example/nkeiter/generic/log/Logger.java" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms4.1.1%2Fosgi%2Forg.example.nkeiter.generic%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fgeneric%2Flog%2FLogger.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFAg6qphcBH6_pVvVXFEmprLtYt9Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms4.1.1%2Fosgi%2Forg.example.nkeiter.generic%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fgeneric%2Flog%2FLogger.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFAg6qphcBH6_pVvVXFEmprLtYt9Q&#39;;return true;">https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.generic/src/main/java/org/example/nkeiter/generic/log/Logger.java

 

<a href="https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.contentlet.rest.light/src/main/java/org/example/nkeiter/contentlet/rest/light/log/Logger.java" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms4.1.1%2Fosgi%2Forg.example.nkeiter.contentlet.rest.light%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fcontentlet%2Frest%2Flight%2Flog%2FLogger.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGbO5LwqBjGcOYX2SXGV3oiPoa5EA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fnkeiter%2Fgeneric-dotCMS-plugin-code-examples%2Fblob%2Fmaster%2Fdotcms4.1.1%2Fosgi%2Forg.example.nkeiter.contentlet.rest.light%2Fsrc%2Fmain%2Fjava%2Forg%2Fexample%2Fnkeiter%2Fcontentlet%2Frest%2Flight%2Flog%2FLogger.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGbO5LwqBjGcOYX2SXGV3oiPoa5EA&#39;;return true;">https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.contentlet.rest.light/src/main/java/org/example/nkeiter/contentlet/rest/light/log/Logger.java

 

Now depending on where it’s deployed the server names would be a little different, so it’s not the purest example, but should give the general idea. In a pure example, the source would be identical across all plugins. Unfortunately I don’t have any example code loaded on GitHub demonstrating that, but here in our private repos I have many such examples.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@... [<a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mailto...@googlegroups.com] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hpa...@...
Sent: Monday, November 06, 2017 1:55 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Cool!! i will update so... thank you for the help!!

On Monday, November 6, 2017 at 12:51:09 PM UTC-6, Nathan Keiter wrote:

#2. Add the source code of the package or classes directly to each plugin. (To avoid namespace conflicts adopt the package name of the specific plugin.)

 

For example by class:

 

edu.gettysburg.nkeiter.transportation.utilities.ContentletUtility.java

 

edu.gettysburg.nkeiter.admissions.utilities.ContentletUtility.java

 

Or by package

 

edu.gettysburg.nkeiter.transportation.utilities.content.services

 

edu.gettysburg.nkeiter.admissions.utilities.content.services

 

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:47 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Hmmm...  so you are saying it would be more feasible to

1. Either import the plugin jar to every plugin project.

2. Or to just use the save/update/delete methods directly in every plugin.


On Monday, November 6, 2017 at 12:41:36 PM UTC-6, Nathan Keiter wrote:

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

<a href="https://www.gettysburg.edu/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.gettysburg.edu%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG7XlfToBr_IA0adrY4nu9tVtLS_w&#39;;return true;">https://www.gettysburg.edu

 

From: [hidden email] [mailto:dot...@googlegroups.com] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

<a href="https://dotcms.com/docs/latest/osgi-services-plugin" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdotcms.com%2Fdocs%2Flatest%2Fosgi-services-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFN_d0wv6t2X_2rc7B8P3Hd-aONbA&#39;;return true;">https://dotcms.com/docs/latest/osgi-services-plugin

<a href="https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FdotCMS%2Fplugin-seeds%2Fblob%2Fmaster%2FOSGi%2Fcom.dotcms.service%2Fbuild.gradle%23L27\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGoC7m_PuKaSepUQVQLcwym0Uddzg&#39;;return true;">https://github.com/dotCMS/plugin-seeds/blob/master/OSGi/com.dotcms.service/build.gradle#L27

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;"> https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
<a href="http://dotcms.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdotcms.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFT4ej1MQxQ2vu3iAUqYQgS59efw&#39;;return true;">http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dotcms+un...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="y_dtnwbbBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dot...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/dotcms/f15ccc7c45e64149883da87c268112a0%40exch13c.ms.gettysburg.edu?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/dotcms/f15ccc7c45e64149883da87c268112a0%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/dotcms/f15ccc7c45e64149883da87c268112a0%40exch13c.ms.gettysburg.edu?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;"> https://groups.google.com/d/msgid/dotcms/f15ccc7c45e64149883da87c268112a0%40exch13c.ms.gettysburg.edu.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1566fc66-47e2-4830-bf2a-59155b26a36c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Import-Export jar

Nathan Keiter
In reply to this post by Nathan Keiter

Here’s one of my personal favorites. This adds useful shortcuts to commonly used functions for any plugin which uses the contentletAPI.

 

So then I can just use shortcuts like ContentletUtility.checkout( contentlet );

 

Or ContentletUtility.findContentletByIdentifer( identifier );

 

https://gist.github.com/nkeiter/604d27e17c492a826079a71ba7746a05

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Nathan Keiter
Sent: Monday, November 06, 2017 3:15 PM
To: [hidden email]
Subject: RE: [dotcms] Import-Export jar

 

Here’s another example. A copy of this class is in every plugin which runs queries against an Oracle database. It’s a helper method which parses the string value returned to a Java date object.

 

https://gist.github.com/nkeiter/4652d4aadddb6ce00434fc2b01174f82

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Nathan Keiter
Sent: Monday, November 06, 2017 2:02 PM
To: [hidden email]
Subject: RE: [dotcms] Import-Export jar

 

Cool. For a more concrete example, every plugin I write now uses a custom logger class if applicable:

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.template.viewtool/src/main/java/org/example/nkeiter/template/viewtool/log/Logger.java

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.generic/src/main/java/org/example/nkeiter/generic/log/Logger.java

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.contentlet.rest.light/src/main/java/org/example/nkeiter/contentlet/rest/light/log/Logger.java

 

Now depending on where it’s deployed the server names would be a little different, so it’s not the purest example, but should give the general idea. In a pure example, the source would be identical across all plugins. Unfortunately I don’t have any example code loaded on GitHub demonstrating that, but here in our private repos I have many such examples.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:55 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Cool!! i will update so... thank you for the help!!

On Monday, November 6, 2017 at 12:51:09 PM UTC-6, Nathan Keiter wrote:

#2. Add the source code of the package or classes directly to each plugin. (To avoid namespace conflicts adopt the package name of the specific plugin.)

 

For example by class:

 

edu.gettysburg.nkeiter.transportation.utilities.ContentletUtility.java

 

edu.gettysburg.nkeiter.admissions.utilities.ContentletUtility.java

 

Or by package

 

edu.gettysburg.nkeiter.transportation.utilities.content.services

 

edu.gettysburg.nkeiter.admissions.utilities.content.services

 

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of <a href="javascript:" target="_blank">hpa...@...
Sent: Monday, November 06, 2017 1:47 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Hmmm...  so you are saying it would be more feasible to

1. Either import the plugin jar to every plugin project.

2. Or to just use the save/update/delete methods directly in every plugin.


On Monday, November 6, 2017 at 12:41:36 PM UTC-6, Nathan Keiter wrote:

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f15ccc7c45e64149883da87c268112a0%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/34fba8d1634b4fc2b9543944f8729688%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/ed3c610a62f74f6481ab1f8c9cbae3ca%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Import-Export jar

Nathan Keiter
In reply to this post by hpaks23@gmail.com

If you are just putting the commonly used libraries in a jar and placing that in the /libs/ folder of the plugin, that would probably work.

 

/libs/CommonUtilities.jar

 

This would require build.gradle changes to include the libs, and preclude source code access at the plugin level.

 

Note: You cannot put a dotCMS plugin jar in this location. (Then you’d have a plugin inside a plugin.)

 

I just find it simpler to have a standard build.gradle and include the source itself. Then it’s a simple build process.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 3:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

So you are adding the class to every plugin that needs to use this functionality. what would be the drawback of adding the plugin jar file itself to those plugins which need it?

On Monday, November 6, 2017 at 2:15:31 PM UTC-6, Nathan Keiter wrote:

Here’s another example. A copy of this class is in every plugin which runs queries against an Oracle database. It’s a helper method which parses the string value returned to a Java date object.

 

https://gist.github.com/nkeiter/4652d4aadddb6ce00434fc2b01174f82

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [mailto:<a href="javascript:" target="_blank">dot...@...] On Behalf Of Nathan Keiter
Sent: Monday, November 06, 2017 2:02 PM
To: <a href="javascript:" target="_blank">dot...@...
Subject: RE: [dotcms] Import-Export jar

 

Cool. For a more concrete example, every plugin I write now uses a custom logger class if applicable:

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.template.viewtool/src/main/java/org/example/nkeiter/template/viewtool/log/Logger.java

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.generic/src/main/java/org/example/nkeiter/generic/log/Logger.java

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.contentlet.rest.light/src/main/java/org/example/nkeiter/contentlet/rest/light/log/Logger.java

 

Now depending on where it’s deployed the server names would be a little different, so it’s not the purest example, but should give the general idea. In a pure example, the source would be identical across all plugins. Unfortunately I don’t have any example code loaded on GitHub demonstrating that, but here in our private repos I have many such examples.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: <a href="javascript:" target="_blank">dot...@... [<a href="javascript:" target="_blank">mailto...@...] On Behalf Of <a href="javascript:" target="_blank">hpa...@...
Sent: Monday, November 06, 2017 1:55 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Cool!! i will update so... thank you for the help!!

On Monday, November 6, 2017 at 12:51:09 PM UTC-6, Nathan Keiter wrote:

#2. Add the source code of the package or classes directly to each plugin. (To avoid namespace conflicts adopt the package name of the specific plugin.)

 

For example by class:

 

edu.gettysburg.nkeiter.transportation.utilities.ContentletUtility.java

 

edu.gettysburg.nkeiter.admissions.utilities.ContentletUtility.java

 

Or by package

 

edu.gettysburg.nkeiter.transportation.utilities.content.services

 

edu.gettysburg.nkeiter.admissions.utilities.content.services

 

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:47 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Hmmm...  so you are saying it would be more feasible to

1. Either import the plugin jar to every plugin project.

2. Or to just use the save/update/delete methods directly in every plugin.


On Monday, November 6, 2017 at 12:41:36 PM UTC-6, Nathan Keiter wrote:

No offense taken. Just trying to help. I have over 10 years experience  with dotCMS and I wouldn’t do it that way personally.

 

Is what they are suggesting possible? Yes, but personally I don’t think it’s worth the headaches.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:34 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Am sorry if i offended in any way... i was just giving more explanation on where i am coming from. I have zero experience in this import-exporting jars withing dotcms osgi plugins. I am completely depending on whatever suggestions you are providing here..

On Monday, November 6, 2017 at 12:30:06 PM UTC-6, Nathan Keiter wrote:

Proceed as you want. I’m just giving you my opinion based on my experience writing OSGI plugins.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Monday, November 06, 2017 1:21 PM
To: dotCMS User Group
Subject: Re: [dotcms] Import-Export jar

 

Basically the idea was to move all content saving/updating/deleting functionality to one plugin and let all the other plugins call this service. This idea was suggested by DOTCMS when they came to HCA.



On Monday, November 6, 2017 at 9:54:08 AM UTC-6, Nathan Keiter wrote:

FWIW, I would avoid the extra complexity.  Typically, there’s not much overhead in including the needed classes in each of the dependent plugins.  I prefer all my plugins to be “stand-alone” capable.  For example, if several plugins require my “ContentletUtility” class, I just include a copy of ContentletUtility.java in each plugin package.  If a global change is needed to that class, a simple copy-paste in eclipse will do it rather easily. Then recompile, redeploy. While typically I would tend to avoid this kind of redundancy, the benefit of easy “stand-alone” plugins outweighs my concern.

 

OSGI can be tricky enough without relying on external dependencies.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: [hidden email] [[hidden email]] On Behalf Of Jason Tesser
Sent: Monday, November 06, 2017 10:38 AM
To: [hidden email]
Subject: Re: [dotcms] Import-Export jar

 

this is an OSGi thing more then a gradle thing per say but yes this is what the Export is for in the manifest which is configurable in the gradle build. 

 

see 

 

in fact the service plugin I linked right above is an example of what you are trying to do 

 

On Mon, Nov 6, 2017 at 10:29 AM <[hidden email]> wrote:

Hello,

 

I have a dynamic plugin "Project-A". It has API service calls that will be used by other plugins. Is there a way I can export the jar of "Project-A" using build.gradle and all other plugins could import the same using their build.gradle.

 

Any help is appreciated!!

 

Thank you!!

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/4b5255eb-629a-40c9-ae75-9cecdf5618f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GPh%3DVa3f9AxNyfGJHvwDGtVSp%3D82_D0f00DgorED34wQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/0c7868b1-f553-45ba-b966-3d604b5135c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/eebe771a-57e1-4a8f-9fe7-e6b7a7cb5389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/37c6b05c-b811-43df-9f24-9429de9078ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/623b9316-a4a6-41e0-813e-0d3b3a850419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank">dotcms+un...@....
To post to this group, send email to <a href="javascript:" target="_blank">dot...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/f15ccc7c45e64149883da87c268112a0%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/1566fc66-47e2-4830-bf2a-59155b26a36c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/c91eec28a1f442f3aebf6e47b18ac95f%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.