TIBCOSoftware / bw6-plugin-maven

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

Error Creating JAR File for Shared Modules with bw6-maven-plugin:bwmodule #711

Open piyushgoell opened 1 year ago

piyushgoell commented 1 year ago

Maven Plugin version: bw6-maven-plugin: 2.8.1

Maven version: 3.8.5

Product : TIBCO ActiveMatrix Businessworks 6

Product version:

Component: Either of Maven Eclipse Plugin or Maven build plugin

Additional environment details if any: I am encountering an issue when attempting to create JAR files for shared modules that have dependencies on other shared modules from project. This problem occurs during the execution of the com.tibco.plugins:bw6-maven-plugin:bwmodule command.

Describe the results you received: BUILD FAILURE

Describe the results you expected: BUILD SUCCESS

Steps to reproduce the issue:

  1. Open a terminal and navigate to the MySharedModule directory:
  2. Run the following Maven command to build the module: mvn com.tibco.plugins:bw6-maven-plugin:bwmodule install:insall -X
  3. The Maven build should complete successfully, and the JAR file should be published to your local .m2 repository.
  4. Now, navigate to the MySharedModule2 directory
  5. When you run the same Maven command as before, you encounter a build failure with the following error: Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling JAR at com.tibco.bw.maven.plugin.module.BWModulePackageMojo.execute (BWModulePackageMojo.java:159) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

Additional information you deem important (e.g. issue happens only occasionally):

piyushgoell commented 1 year ago

MySharedModule-buildlogs.txt MySharedModule2-buildlog.txt MySharedModule-pomfile.txt MySharedModule2-pomfile.txt

Apologies for closing and then re-opening it again. I have attached the terminal logs with debug mode enabled.