maven pom placeholder in parent/version tag is not replaced http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/maven-pom-placeholder-in-parentversion-tag-is-not-replaced.htm You GX guys got this working in the web-apps poms, how did you guys do this? when i do this with a WCB POM placeholders in the parent/version tag are totally ignored. Any ideas why? The property is defined in the settings.xml maven pom placeholder in parent/version tag is not replaced http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/maven-pom-placeholder-in-parentversion-tag-is-not-replaced.htm?pagenr=1#message2657 Cthulhu One point I did see in a presentation on Maven 3 (see <a href="https://www.gxdeveloperweb.com/Forums/Forum-GeneralDiscussion/Maven-3.htm" rel="nofollow" target="_blank">this thread, too</a>) was a note on &apos;Versionless parent elements&apos;. I&apos;m not entirely sure if this applies to this particular case, but it might. Although I&apos;d still recommend adding a parent element version in all cases - else you can get funky results / compiler errors if it chooses a parent that has a different API than the one you intended it to. vr, 23 okt 2009 10:13:37 GMT maven pom placeholder in parent/version tag is not replaced http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/maven-pom-placeholder-in-parentversion-tag-is-not-replaced.htm?pagenr=1#message2653 bramk More or less correct and effectively so.. <img src="/static/forum/icons/smiley_cool.gif"/> The fact that this works for the webapp poms in the SDK is kind because of the way maven resolve parent references...<br /><br /></p><blockquote><br />Maven looks for the parent pom first in the reactor of currently building projects, then in this location <br /> on the filesystem, then the local repository, and lastly in the remote repo. relativePath allows you to <br /> select a different location, for example when your structure is flat, or deeper without an intermediate <br /> parent pom. However, the group ID, artifact ID and version are still required, and must match the file <br /> in the location given or it will revert to the repository for the POM.<br /></blockquote><p class="messageContent"><br /><br />In the SDK case you will see that the backend webapp module actually has a parent declaration that matches (as in equals) the ../pom.xml, which in turn has a parent declaration that matches it&apos;s own ../pom.xml being the SDK root pom. This is not true for your WCB and therefore it fails.<br /><br />So, basically this kind of works by accident and you can and should not use it outside your own project. In general I prefer to stick a project pom between the webmanager-wcbs pom and my own WCB poms so I can control the webmanager version an possibly other global settings in one place.<br /><br />Regards,<br />Bram<br /><br /><br /> do, 22 okt 2009 15:17:58 GMT maven pom placeholder in parent/version tag is not replaced http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/maven-pom-placeholder-in-parentversion-tag-is-not-replaced.htm?pagenr=1#message2639 Cthulhu that&apos;s probably because the ${parent.version} tag is only made available after the parent is actually loaded in. It can&apos;t know the value of parent.version without knowing which parent version it has - if you know what I mean, I&apos;m confusing myself.<br /><br />Say you&apos;ve got WebManager 1.3.7, 9.8.5, and 9.502346.1 on your system - which one of the three should your WCB use? It can&apos;t know unless you specify one, which is why at least ${parent.version} won&apos;t work in the pom.<br /><br />Hope that&apos;s what you mean. ma, 19 okt 2009 11:36:15 GMT maven pom placeholder in parent/version tag is not replaced http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/maven-pom-placeholder-in-parentversion-tag-is-not-replaced.htm?pagenr=1#message2633 maxzilla Hi Patrick,<br /><br />placeholders do work, but not in the parent tag.<br />see code below. I can&apos;t make the parent -&gt; version tag dynamic.<br /><br /> </p><div class="code"><div class="codeContent"><pre><br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;<br /> xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;<br /> &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;<br /> &lt;parent&gt;<br /> &lt;artifactId&gt;webmanager-libraries&lt;/artifactId&gt;<br /> &lt;groupId&gt;nl.gx.webmanager.libraries&lt;/groupId&gt;<br /> &lt;version&gt;9.6.2 &lt;!-- why has this to be hardcoded? --&gt; &lt;/version&gt;<br /> &lt;/parent&gt;<br /> &lt;groupId&gt;nl.gx.srb&lt;/groupId&gt;<br /> &lt;artifactId&gt;snsbankstaticlib&lt;/artifactId&gt;<br /> &lt;name&gt;SNS Bank static library&lt;/name&gt;<br /> &lt;description&gt;Static library for the www.snsregiobank.nl website&lt;/description&gt;<br /> &lt;url&gt;www.snsregiobank.nl&lt;/url&gt;<br /> &lt;version&gt;1.2.0&lt;/version&gt;<br /> &lt;build&gt;<br /> &lt;defaultGoal&gt;package&lt;/defaultGoal&gt;<br /> &lt;plugins&gt;<br /> &lt;plugin&gt;<br /> &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;<br /> &lt;version&gt;1.1&lt;/version&gt;<br /> &lt;executions&gt;<br /> &lt;execution&gt;<br /> &lt;phase&gt;package&lt;/phase&gt;<br /> &lt;goals&gt;<br /> &lt;goal&gt;run&lt;/goal&gt;<br /> &lt;/goals&gt;<br /> &lt;configuration&gt;<br /> &lt;tasks&gt;<br /> &lt;echo message=&quot;Copying the WCB jar to deploy directory&quot; /&gt;<br /> &lt;copy file=&quot;${project.build.directory}\${project.build.finalName}.jar&quot; todir=&quot;${webmanager.wcbdeploydir}&quot; overwrite=&quot;true&quot; /&gt;<br /> &lt;/tasks&gt;<br /> &lt;/configuration&gt;<br /> &lt;/execution&gt;<br /> &lt;/executions&gt;<br /> &lt;/plugin&gt;<br /> &lt;/plugins&gt;<br /> &lt;/build&gt;<br /></pre></div></div><p class="messageContent"> ma, 19 okt 2009 06:18:47 GMT maven pom placeholder in parent/version tag is not replaced http://www.gxdeveloperweb.com/Forums/Forum-WCB-Java-Development/maven-pom-placeholder-in-parentversion-tag-is-not-replaced.htm?pagenr=1#message2625 patricka Can you give an example of what you are trying to do?<br /><br />For local development, I usually copy this bit into my WCB&apos;s pom.xml:<br /><br /></p><div class="code"><div class="codeContent"><pre><br />&lt;!-- plugin to copy the WCB to a local installation --&gt;<br />&lt;plugin&gt;<br /> &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;<br /> &lt;version&gt;1.1&lt;/version&gt;<br /> &lt;executions&gt;<br /> &lt;execution&gt;<br /> &lt;phase&gt;package&lt;/phase&gt;<br /> &lt;goals&gt;<br /> &lt;goal&gt;run&lt;/goal&gt;<br /> &lt;/goals&gt;<br /> &lt;configuration&gt;<br /> &lt;tasks&gt;<br /> &lt;copy<br /> file=&quot;${project.build.directory}\${project.build.finalName}.jar&quot;<br /> todir=&quot;${webmanager.wcbdeploydir}&quot; overwrite=&quot;true&quot; /&gt;<br /> &lt;/tasks&gt;<br /> &lt;/configuration&gt;<br /> &lt;/execution&gt;<br /> &lt;/executions&gt;<br />&lt;/plugin&gt;<br /></pre></div></div><p class="messageContent"><br /><br />As you can see, this uses properties defined in the settings.xml and it works like a charm. I&apos;m not sure what magic was involved to get it working - if any at all. <img src="/static/forum/icons/smiley_wink.gif"/><br /><br />Greetings,<br /><br />Patrick vr, 16 okt 2009 09:30:00 GMT