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