Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
piyushgoell opened this issue Sep 23, 2023 · 2 comments
Assignees

Comments

@piyushgoell
Copy link

piyushgoell commented Sep 23, 2023

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
Copy link
Author

piyushgoell commented Oct 1, 2023

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.

@sarundes-tibco
Copy link
Collaborator

@piyushgoell Can you please try with latest bw6-maven-plugin (2.9.9) and let us know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants