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

Setting the WAR archive file name is not respected by the CICS bundle plugin bundle-war builds #161

Open
PhilWakelin opened this issue Oct 10, 2024 · 0 comments

Comments

@PhilWakelin
Copy link
Member

The name of the WAR archive file can be important and in Maven & Gradle builds defaults to the artifact + version. However, it can be pre-set to a given name for both Maven and Gradle.

Here is an example Maven pom.xml excerpt, which uses the <warName>attribute to set the name of the WAR archive. This works correctly and the WAR file is built as cics-java-liberty-restapp.war. However, the bundle-war build creates a WAR built using the and elements i.e. cics-java-liberty-restapp-0.1.0.war

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>3.4.0</version>
				<configuration>
					<failOnMissingWebXml>false</failOnMissingWebXml>					
					<warName>cics-java-liberty-restapp</warName>
				</configuration>
			</plugin>

			<plugin>
				<groupId>com.ibm.cics</groupId>
				<artifactId>cics-bundle-maven-plugin</artifactId>
				<version>1.0.6</version>
				<executions>
				  <execution>
					<goals>
					  <goal>bundle-war</goal>
					</goals>								
					<configuration>
					  <jvmserver>${jvmserver}</jvmserver>
					</configuration>
				  </execution>
				</executions>
			  </plugin>
		</plugins>
	</build>

A similar problem exists with the Gradle plugin.

This sample repo was used in the above example

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

1 participant