ci.maven icon indicating copy to clipboard operation
ci.maven copied to clipboard

Loose app doesn't honor outputFileNameMapping config on maven-war-plugin (e.g. for JAR dependencies)

Open imsandli opened this issue 1 year ago • 1 comments

In a maven multimodule war project with jpa it would help to point to a <jar-file> in the persistence.xml.

Example: <jar-file>../../lib/entities.jar</jar-file>

Failed tries:

  1. <stripVersion>true</stripVersion> seems to be ignored in LooseAppSupport.

  2. configuring <outputFileNameMapping>@{artifactId}@.@{extension}@</outputFileNameMapping> in maven-ear/war-plugin did not help. Probably because my project is a war. (See here)

Is there a way to link to jars without a version number?

imsandli avatar May 26 '23 13:05 imsandli

I changed the title since I think the second observation you mentioned (that <outputFileNameMapping> doesn't work for WARs) is what we should center on.

(I don't think it makes as much sense to look at expanding the interpretation of the liberty-maven-plugin <stripVersion> however. )

But thank you @imsandli for opening the issue and for digging up and including references to the past PRs here !

scottkurz avatar May 26 '23 22:05 scottkurz