TIBCOSoftware / bw6-plugin-maven

Plug-in Code for Apache Maven and TIBCO ActiveMatrix BusinessWorks™
Other
65 stars 78 forks source link

How to generate POM for external shared modules? #404

Open rsunkavalli opened 4 years ago

rsunkavalli commented 4 years ago

Hi

I have an application that uses an external shared module. When I import the external shared module and try to generate POM for the application, the external shared module is not getting listed as shared module. How can we generate POM for an application which uses external shared modules?

image

Thanks, Raja

rsunkavalli commented 4 years ago

Can someone please help on this?

SujataDarekar commented 4 years ago

@rsunkavalli Which version of BW maven Plugin are you using?

SujataDarekar commented 4 years ago

@rsunkavalli Also Does it show in dependencies(required plugin) of module project ?

rsunkavalli commented 4 years ago

@SujataDarekar We are using Maven plugin 1.3.1. And yeah the shared module is shown in the application module dependencies.

SujataDarekar commented 4 years ago

@rsunkavalli I would suggest use the the latest BW Maven Plugin and then try your use case.

rsunkavalli commented 4 years ago

@SujataDarekar, will it be compatible with BW 6.4.2?

SujataDarekar commented 4 years ago

@rsunkavalli looking at your use case yes it is

rsunkavalli commented 4 years ago

@SujataDarekar , I have installed the latest BW Maven Plugin. I have imported the external shared modules to the workspace and tried to generate the POM file. Still the shared modules are not listed.

We are importing these shared modules to the workspace as external shared modules by following Window > Preferences > Plug-in Development > Target Platform > bw-runtime (Active) > Edit > Locations > Add > BW Shared Module. Then Add the shared modules in the application module under Dependencies.

image

image

SujataDarekar commented 4 years ago

@rsunkavalli Can you share the project?

rsunkavalli commented 4 years ago

@SujataDarekar Attached the application and shared modules. Please let me know if you need more details. VendorHub.zip SharedModules.zip

SujataDarekar commented 4 years ago

@rsunkavalli I have checked your project. I am facing some namespace related issues in module project. So I have just created one simple project and added the shared module attached with the issue. I can see the list of all shared module while generating the POM. Even in screenshot shared by you I can see the scroll down option. Please check the same

rsunkavalli commented 4 years ago

@SujataDarekar, I checked the scroll down and shared modules are not listed. Wanted to check if we are on the same page, did you import the shared module zipped folders by following: Window > Preferences > Plug-in Development > Target Platform > bw-runtime (Active) > Edit > Locations > Add > BW Shared Module? Or you imported using the Import option?

https://docs.tibco.com/pub/activematrix_businessworks/6.4.2/doc/html/GUID-A6742E60-6ED4-4D27-82D1-F55D06C579B5.html

Namespace issues persist if the shared modules are imported using Import option. Please confirm. image

rsunkavalli commented 4 years ago

@SujataDarekar did you get a chance to look into this?

awagle commented 4 years ago

Are you still facing the issue? Have you tried re-generating the application POM after adding the shared modules as dependencies to both application and application module projects?