ltearno / pom-explorer

A tool to aid managing lots of maven projects
MIT License
371 stars 65 forks source link

${project.parent.version} not recognized #15

Closed EXPEaneparaczki closed 7 years ago

EXPEaneparaczki commented 8 years ago

Reproduce:

${project.parent.version} is an implicit variable known by maven but unrecognized by this tool.

ie. with given parent:

<parent> <groupId>com.mycompany.www</groupId> <artifactId>my-wonderful-parent</artifactId> <version>0.1.25</version> </parent>

the bom.version property defined here:

<properties> <bom.version>${project.parent.version}</bom.version> <.....

should be 0.1.25

ltearno commented 8 years ago

Unfortunately i am not able to reproduce this error, both on master and dev branches...

I made up a project with a parent and a dependency to another project with version declared ${project.parent.version}. When i run the analyse directory command i get no error and running project details shows the correct information, as you can see on the following screenshot :

image

The interesting line says :

fr.lteconsulting:hexa-css:1.4:compile declared: fr.lteconsulting:hexa-css:${project.parent.version}

Are you sure you work on the tip of the branch ? master is c33cd593cf676325a91d33c14202872c132ced62 and dev is on b53601d76ddb4329d1ecb0a52f833df84e68b30c.

If you could send me a small repro case, i will investigate more.

EXPEaneparaczki commented 8 years ago

Uh, the problem is way more complicated than I thought, will take a closer look when I get a chance.

ltearno commented 8 years ago

OK let me know... If you have just a small repro (just the pom.xml are enough) it would be perfect !

Le jeu. 4 août 2016 à 10:44, EXPEaneparaczki notifications@github.com a écrit :

Uh, the problem is way more complicated than I thought, will take a closer look when I get a chance.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ltearno/pom-explorer/issues/15#issuecomment-237490975, or mute the thread https://github.com/notifications/unsubscribe-auth/AALqXXH45wSJvvvHlMw02N2I55LyyrH1ks5qcaZRgaJpZM4JUFdq .

ltearno commented 8 years ago

Hi, do you have a repro for this bug ? Thanks