Hello,

I've got a parent POM that declares e.g.,

<project>
 …
 <url>http://javabuild2.mycompany.com/${project.artifactId}</url>
</project>

(in other words, top-level configuration that varies by the project
that has declared this parent).

Problem is, when I look at the effective POM (mvn help:effective-pom),
it shows up as follows:

<project>
 …
 <artifactId>m-installer</artifactId>
 <url>http://javabuild2.mycompany.com/m-installer/m-installer</url>
<project>

See where the duplication is occurring? Should I expect that? How can
I use top-level config in the parent pom that uses values taken from
the "child" pom?

Note that the problem doesn't only occur when I use
help:effective-pom, that's just been a useful way to help me figure
out wth is going on. Also, it's not just <url/> but other values that
are referred using a ${project.XYZ} form. On the other hand, inside
the "child" POM, I have other values that refer to ${artifactId} (not
${project.artifactId}) and these behave as I would expect.

Is this a bug in the code that resolves ${project} references?

Thanks,
--
Tommy

Reply via email to