<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-15">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <pre>Hey Lincoln,

I found this while I'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'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">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'm develping a plugin for forge and its not good that you can'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("Could not open POM file: " +
</i>&gt;<i> getPOMFile(), e);
</i>&gt;<i>       }
</i>&gt;<i>       catch (XmlPullParserException e)
</i>&gt;<i>       {
</i>&gt;<i>          throw new ProjectModelException("Could not parse POM file: " +
</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">forge-users at lists.jboss.org</a>
</i>&gt;<i> <a href="https://lists.jboss.org/mailman/listinfo/forge-users">https://lists.jboss.org/mailman/listinfo/forge-users</a>
</i>&gt;<i>
</i>


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