OpenLiberty / ci.maven

Maven plugins for managing Liberty profile servers #devops
Apache License 2.0
130 stars 91 forks source link

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

Open imsandli opened 1 year ago

imsandli commented 1 year ago

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?

scottkurz commented 1 year ago

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 !