qoomon / maven-git-versioning-extension

This extension will set project version, based on current Git branch or tag.
GNU General Public License v3.0
305 stars 87 forks source link

Does not work with polyglot-maven-extension #268

Closed jycr closed 11 months ago

jycr commented 11 months ago

NB : polyglot extension is referenced on Maven web site

Here following project to reproduce issue:

With following files :

When execute following command:

mvn help:evaluate -Dexpression=project.version

maven-git-versioning-extension dose not seems to work:

[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------------< com.acme:test >----------------------------
[INFO] Building test ${revision}
[INFO]   from .polyglot.pom.yml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- help:3.4.0:evaluate (default-cli) @ test ---
[INFO] No artifact parameter specified, using 'com.acme:test:pom:${revision}' as project.
[INFO] 
null object or invalid expression
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.179 s
[INFO] Finished at: 2023-12-30T00:27:49+01:00
[INFO] ------------------------------------------------------------------------
qoomon commented 11 months ago

What is the maven command you execute?

qoomon commented 11 months ago

I'm not sure if it is possible to make the work together because both extensions replace the default ModelProcesser

jycr commented 11 months ago

What maven command are you running?

Sorry. I forgot to indicate the command I've executed.

I just edited my issue to clarify it.

qoomon commented 11 months ago

feel free to tryout version 9.7.0