You can use properties. Have you tried the getEffectiveDependency() and getDirectDependency() methods in DependencyFacet?<br><br>Chances are that you should <b>not</b> be using MavenCoreFacet. It should be your last resort.<br>
<br>Does this help?<br>~Lincoln<br><br><div class="gmail_quote">On Tue, Jan 10, 2012 at 6:43 AM, Max Schwaab <span dir="ltr">&lt;<a href="mailto:max.schwaab@akquinet.de">max.schwaab@akquinet.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey there,<br>
<br>
would be cool if you fix the getPom() method in the MavenCroreFacteImpl<br>
class.<br>
<br>
I&#39;m develping a plugin for forge and its not good that you can&#39;t use<br>
properties for dependency versions in your plugin pom.<br>
<br>
Im talking about this mehtod:<br>
<br>
@Override<br>
    public Model getPOM()<br>
    {<br>
       try<br>
       {<br>
          Model result = new Model();<br>
<br>
          // FIXME this should/can-not use the Maven Native file writer<br>
if we are going to abstract file APIs<br>
          MavenXpp3Reader reader = new MavenXpp3Reader();<br>
          FileInputStream stream = new<br>
FileInputStream(getPOMFile().getUnderlyingResourceObject());<br>
          if (stream.available() &gt; 0)<br>
          {<br>
             result = reader.read(stream);<br>
          }<br>
          stream.close();<br>
<br>
          result.setPomFile(getPOMFile().getUnderlyingResourceObject());<br>
          return result;<br>
       }<br>
       catch (IOException e)<br>
       {<br>
          throw new ProjectModelException(&quot;Could not open POM file: &quot; +<br>
getPOMFile(), e);<br>
       }<br>
       catch (XmlPullParserException e)<br>
       {<br>
          throw new ProjectModelException(&quot;Could not parse POM file: &quot; +<br>
getPOMFile(), e);<br>
       }<br>
    }<br>
<br>
Cheers<br>
<br>
Max<br>
_______________________________________________<br>
forge-users mailing list<br>
<a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>