IBM / cics-bundle-maven

The plugin to build and deploy CICS bundles in a Maven build.
https://ibm.github.io/cics-bundle-maven/plugin-info.html
Eclipse Public License 2.0
18 stars 25 forks source link

NoClassDefFoundError on mvn clean install for demo-war sample #137

Closed jshubash closed 4 years ago

jshubash commented 4 years ago

I'm using jdk 1.8. I get this error when I try to create the cics-bundle for the demo-war sample project.

Command used: mvn clean install Error messages: [WARNING] Error injecting: com.ibm.cics.cbmp.BundleWarMojo java.lang.NoClassDefFoundError: com/ibm/cics/bundle/parts/BundlePublisher$PublishException ... Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:1.0.0:bundle-war (default) on project demo-war-bundle: Execution default of goal com. ibm.cics:cics-bundle-maven-plugin:1.0.0:bundle-war failed: A required class was missing while executing com.ibm.cics:cics-bundle-maven-plugin:1.0.0:bundle -war: com/ibm/cics/bundle/parts/BundlePublisher$PublishException

jshubash commented 4 years ago

I added dependencies in the plugin section to solve this. Thanks!

ind1go commented 4 years ago

Glad to hear you got it fixed! It doesn't sound like you should need to do what you did - can you put an example of what you had to change to get it to work?