<div dir="ltr"><div><div>Hi guys,<br><br></div>how can i add a module dependency to my plugin?(in forge 1.x)<br><br></div><div>I&#39;m using JavaParser and i need to access org.eclipse.jdt.core.dom.CompilationUnit api which is available in javaparser module (org.eclipse.jdt.core-3.9.1.jar) which doesnt comes in default module dependencies[1].<br>

<br></div><div>in my pom.xml i use &lt;dependency&gt;<br>      &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;<br>      &lt;artifactId&gt;org.eclipse.jdt.core&lt;/artifactId&gt;<br>      &lt;version&gt;3.9.1.v20130905-0837&lt;/version&gt;<br>

      &lt;scope&gt;provided&lt;/scope&gt; tried compile also<br>    &lt;/dependency&gt;<br><br></div><div>but i receive ***ERROR*** Exception encountered: (type &quot;set VERBOSE false&quot; to disable stack traces)<br>java.lang.ClassNotFoundException: org.eclipse.jdt.core.dom.CompilationUnit from [Module &quot;br.ufrgs.rmpestano.intrabundle:0.1-SNAPSHOT-35a537a5-1ab6-4b19-a253-03e3bbfae57d&quot; from local module loader @1eac903 (roots: /home/rmpestano/projetos/forge/dist/forge-distribution-1.4.3.Final/modules,/home/rmpestano/.forge/plugins,/home/rmpestano/projetos)]<br>

</div><div><br></div><div>if i add(manually) org.eclipse.javaparser module dependency in my plugin module.xml everything works.<br><br>How can i tell forge that i need that dependency?<br></div><br clear="all"><div><div>
<div>
Thanks in advance<br><br>[1]<a href="http://forge.jboss.org/docs/plugin_development/reference-libraries.html">http://forge.jboss.org/docs/plugin_development/reference-libraries.html</a><br></div><div>-- <br><div dir="ltr">

<a href="http://www.advancedit.com.br/" target="_blank"><span style="color:black;text-decoration:none"></span></a><span></span><span><span style="color:rgb(192,192,192)">Att, </span><br style="color:rgb(192,192,192)"><br style="color:rgb(192,192,192)">

<span style="color:rgb(192,192,192)">Rafael M. Pestano</span><br style="color:rgb(192,192,192)"><br style="color:rgb(192,192,192)"><span style="color:rgb(192,192,192)">Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul</span><br style="color:rgb(192,192,192)">

<span style="color:rgb(192,192,192)">Graduando em Ciência da Computação UFRGS</span></span><div><a href="http://conventions.github.io/home/" target="_blank">http://conventionsframework.org</a><br><div><div><font color="#c0c0c0"><a href="http://rpestano.wordpress.com/" target="_blank">http://rpestano.wordpress.com/</a></font></div>

<div><span style="color:rgb(192,192,192)">@realpestano</span></div></div></div></div>
</div></div></div></div>