Max,<br><br>Could you please create a JIRA issue for this and attach your Plugin project to it? That way I will be able to debug it and see what is going on. I&#39;m still not exactly sure what you are saying. I&#39;ll do my best.<br>
<br>Thanks,<br>~Lincoln<br><br><div class="gmail_quote">On Fri, Jan 13, 2012 at 4:35 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">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <pre>Hey Lincoln,

I found this while I&#39;m looking for the reason for the warning

***WARNING*** Could not resolve dependency [some-jar:jar::${some.version}]

It appears in the installing process for my plugin from a local project after a successful build.
To avoid this warning the mentioned method should be changed, because forge is using it internally.

Best regards

Max

P.S.

I don&#39;t get mails from the list, thats why I repeat with a new email..


You can use properties. Have you tried the getEffectiveDependency() and
getDirectDependency() methods in DependencyFacet?

Chances are that you should *not* be using MavenCoreFacet. It should be
your last resort.

Does this help?
~Lincoln

On Tue, Jan 10, 2012 at 6:43 AM, Max Schwaab &lt;<a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">max.schwaab at akquinet.de</a>&gt;wrote:

&gt;<i> Hey there,
</i>&gt;<i>
</i>&gt;<i> would be cool if you fix the getPom() method in the MavenCroreFacteImpl
</i>&gt;<i> class.
</i>&gt;<i>
</i>&gt;<i> I&#39;m develping a plugin for forge and its not good that you can&#39;t use
</i>&gt;<i> properties for dependency versions in your plugin pom.
</i>&gt;<i>
</i>&gt;<i> Im talking about this mehtod:
</i>&gt;<i>
</i>&gt;<i> @Override
</i>&gt;<i>    public Model getPOM()
</i>&gt;<i>    {
</i>&gt;<i>       try
</i>&gt;<i>       {
</i>&gt;<i>          Model result = new Model();
</i>&gt;<i>
</i>&gt;<i>          // FIXME this should/can-not use the Maven Native file writer
</i>&gt;<i> if we are going to abstract file APIs
</i>&gt;<i>          MavenXpp3Reader reader = new MavenXpp3Reader();
</i>&gt;<i>          FileInputStream stream = new
</i>&gt;<i> FileInputStream(getPOMFile().getUnderlyingResourceObject());
</i>&gt;<i>          if (stream.available() &gt; 0)
</i>&gt;<i>          {
</i>&gt;<i>             result = reader.read(stream);
</i>&gt;<i>          }
</i>&gt;<i>          stream.close();
</i>&gt;<i>
</i>&gt;<i>          result.setPomFile(getPOMFile().getUnderlyingResourceObject());
</i>&gt;<i>          return result;
</i>&gt;<i>       }
</i>&gt;<i>       catch (IOException e)
</i>&gt;<i>       {
</i>&gt;<i>          throw new ProjectModelException(&quot;Could not open POM file: &quot; +
</i>&gt;<i> getPOMFile(), e);
</i>&gt;<i>       }
</i>&gt;<i>       catch (XmlPullParserException e)
</i>&gt;<i>       {
</i>&gt;<i>          throw new ProjectModelException(&quot;Could not parse POM file: &quot; +
</i>&gt;<i> getPOMFile(), e);
</i>&gt;<i>       }
</i>&gt;<i>    }
</i>&gt;<i>
</i>&gt;<i> Cheers
</i>&gt;<i>
</i>&gt;<i> Max
</i>&gt;<i> _______________________________________________
</i>&gt;<i> forge-users mailing list
</i>&gt;<i> <a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">forge-users at lists.jboss.org</a>
</i>&gt;<i> <a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a>
</i>&gt;<span class="HOEnZb"><font color="#888888"><i>
</i>


-- 
Lincoln Baxter, III
<a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a>
<a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a>
&quot;Keep it Simple&quot;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a href="http://lists.jboss.org/pipermail/forge-users/attachments/20120110/3aa33a5b/attachment.html" target="_blank">http://lists.jboss.org/pipermail/forge-users/attachments/20120110/3aa33a5b/attachment.html</a></font></span></pre>

  </div>

<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>
<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>