<div dir="ltr">Good morning, all.<div><br></div><div>It seems that the Forge community has been hard at work to refactor the Forge 1.x structure to Forge 2. Well done.</div><div><br></div><div>I would simply like to migrate a decently complex add-on to Forge 2, implying I would want to find a solid step-by-step tutorial on how I should proceed. However, all of the documentation I have been able to find so far pertains to Forge1. While I feel I&#39;m most likely missing something fundamental here, there may be other folks in the same position. So...</div>
<div><br></div><div><ol><li>Where can I find a step-by-step tutorial on how to develop and test a Forge2 plugin which accesses Maven libraries and Forge libraries?</li><li>Where can I find a cookbook on what functionality different APIs provide? For example:</li>
<ol><li>My <i>new-nazgul-project </i>add-on needs to create or use an existing project structure, implying that it must detect if a project exists and has the correct Maven GAV structure, some internal structure details and the correct parent. I used to do this with a mix of Maven and Forge 1.x functionality, but I wonder how I can find out how to do this under Forge 2.x</li>
</ol></ol><br></div><div>So ... I used to use the following resources to create directories, analyze POMs and generate resources. Of course, all is doable using raw JDK and Maven APIs, but likely much simpler with Forge APIs.</div>
<div><br></div><div><div>    // Internal state</div><div>    protected Shell shell;</div><div>    protected ProjectFactory projectFactory;</div><div>    protected ResourceFactory resourceFactory;</div></div><div><br></div>
<div>-- <br><span style="font-family:monospace;font-size:medium"><pre>--
+==============================+
| Bästa hälsningar,
| [sw. &quot;Best regards&quot;]
|
| Lennart Jörelid
| EAI Architect &amp; Integrator
|
| jGuru Europe AB
| Mölnlycke - Kista
|
| Email: <a href="mailto:lj@jguru.se" target="_blank">lj@jguru.se</a>
| URL:   <a href="http://www.jguru.se" target="_blank">www.jguru.se</a>
| Phone
| (skype):    jgurueurope
| (intl):     +46 708 507 603
| (domestic): 0708 - 507 603
+==============================+</pre></span>
</div></div>