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

WAR Bundle can't not have a version #224

Closed LukasJaks closed 9 months ago

LukasJaks commented 1 year ago

It seems like its impossible for the bundle not to have version (as _.war). It doesn't seem to help defining "${project.artifactId}" in "".

For us, when we deploy the bundle, the URL of the project is the war file name, and as cool it is to have that in development, when we are deploying to "production" the version number just makes the URL complicated.

There seems to be piece of code that no matter what takes the version and appends it to the file name.

grafik (cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/PackageCICSBundleMojo.java static File createCICSBundle())

Would it be possible to add clause that checks if finalName is defined, and if so, use that and don't add version?

stewartfrancis commented 1 year ago

Just making sure I understand, you're setting something like:

<project>
  <build>
    <finalName>helloWorld</finalName>
  </build>
</project>

in your Maven pom.xml, and you'd like us to write a CICS bundle called helloWorld.zip in the case that project.build.finalName is set?

LukasJaks commented 1 year ago

Yes, that would be exactly what we need!

ind1go commented 9 months ago

@LukasJaks this is available in plugin version 1.0.5.