Thanks for the clarification Geoffrey.<br><br><br><div class="gmail_quote">On 14 October 2010 14:20, Geoffrey De Smet <span dir="ltr">&lt;<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">The eclipse GWT plugin doesn&#39;t use maven.<br>
<br>
<br>
With kind regards / Met vriendelijke groeten,<br>
Geoffrey De Smet<br>
<br>
Op 14-10-10 12:05, Anstis, Michael (M.) schreef:<br>
<div class="im">&gt; Hi Geoffrey, Esteban,<br>
&gt; The Eclipse GWT Plugin in essence calls out to GWT&#39;s<br>
&gt; com.google.gwt.dev.DevMode and does not use maven.<br>
<br>
</div>Yes, AFAIC it doesn&#39;t use maven.<br>
<div class="im"><br>
&gt; I think half the problem could be the disjoint between the default paths<br>
&gt; used by maven compared to the default paths used by gwt i.e. they are<br>
&gt; different: mvn uses src/main/webapp by default whereas gwt prefers /war.<br>
<br>
</div>The latest gwt plugin for eclipse (since 2.0.3) isn&#39;t hardcoded to the<br>
/war directory, so the /war issues is not longer relevant normally.<br>
See the note on<br>
<div class="im"><a href="http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html" target="_blank">http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html</a><br>
</div>So don&#39;t use an old gwt plugin for eclipse.<br>
Toni Rikkola is working fine with eclipse, maybe you can ask him how he<br>
said it up?<br>
<div class="im"><br>
&gt; It looks like you can bring the two inline<br>
&gt; <a href="http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html" target="_blank">http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html</a> but<br>
&gt; I haven&#39;t tried it. A warning to this effect is in the log you show<br>
&gt; &quot;Your POM &lt;build&gt;&lt;outputdirectory&gt; does not match your hosted webapp<br>
&gt; WEB-INF/classes folder for GWT Hosted browser to see your classes.&quot; I<br>
&gt; think the classes are JIT&#39;ed so you won&#39;t get any errors until launching<br>
&gt; your browser. I also think the &quot;target&quot; folder<br>
&gt; (&quot;/home/esteban/plugTree/trunkTMP/drools-guvnor/*target*/drools-guvnor&quot;)<br>
&gt; is a GWT1.6 hang-over and wonder whether Guvnor is fully GWT2.x or a<br>
&gt; hybrid of bits and pieces that wouldn&#39;t help matters.<br>
<br>
</div>There is the sources wierdness. Basically gwt needs the *.java sources<br>
of all the java to javascript it needs to compile, not just the *.class<br>
sources. So to be able to compile drools-guvnor it needs the sources of<br>
drools-ide-common.<br>
- If you have drools open in IntelliJ/Eclipse, this isn&#39;t a problem: the<br>
sources are there anyway and you don&#39;t need to configure anything<br>
special. Note you can&#39;t have just drools-guvnor open without<br>
drools-ide-common open... I would expect this to be the same for netbeans<br>
- In Maven, things are different because modules need to be able to<br>
compile individually. There are 2 ways to handle it:<br>
-- the GWT hack way: just add the sources to the jar. This is the bad<br>
way as it violates the maven repository contract.<br>
-- the maven way (which we follow): also install/deploy the sources into<br>
the repository as a separate jar (so as a<br>
drools-idea-common-...-sources.jar) and re-use that to build<br>
drools-guvnor (and note that the maven intellij/eclipse reuse those<br>
sources to automatically download sources etc).<br>
<div class="im"><br>
&gt; Not wanting to tread on toes.<br>
</div>idem dito :) Hope this helps too<br>
<div><div></div><div class="h5"><br>
&gt; With kind regards,<br>
&gt; Mike<br>
&gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     *From:* <a href="mailto:rules-dev-bounces@lists.jboss.org">rules-dev-bounces@lists.jboss.org</a><br>
&gt;     [mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org">rules-dev-bounces@lists.jboss.org</a>] *On Behalf Of<br>
&gt;     *<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a><br>
&gt;     *Sent:* 14 October 2010 00:07<br>
&gt;     *To:* Rules Dev List<br>
&gt;     *Subject:* Re: [rules-dev] Guvnor build changes summary<br>
&gt;<br>
&gt;     Geoffrey, again, great work!<br>
&gt;     But I have a question for you. I&#39;m trying to run/debug guvnor<br>
&gt;     without eclipse.<br>
&gt;     Thanks to your work, now I am able to execute *mvn gwt:compile*<br>
&gt;     without modify the pom.xml file! That is great.<br>
&gt;     Then I run Guvnor doing:* mvn -Dgwt.module=org.drools.guvnor.Guvnor<br>
&gt;     -DrunTarget=org.drools.guvnor.Guvnor/Guvnor.html gwt:debug*<br>
&gt;     Everything seams to look right. I get this output:<br>
&gt;<br>
&gt;     /Preparing gwt:debug/<br>
&gt;     /[resources:resources]/<br>
&gt;     /Using &#39;UTF-8&#39; encoding to copy filtered resources./<br>
&gt;     /Copying 29 resources/<br>
&gt;     /[compiler:compile]/<br>
&gt;     /Nothing to compile - all classes are up to date/<br>
&gt;     /[gwt:debug]/<br>
&gt;     /starting debugger on port 8000 in suspend mode/<br>
&gt;     /You&#39;re project declares dependency on gwt-user 2.0.4. This plugin<br>
&gt;     is designed for version 2.1-20101001.MGWT219/<br>
&gt;     /create exploded Jetty webapp in<br>
&gt;     /home/esteban/plugTree/trunkTMP/drools-guvnor/target/drools-guvnor/<br>
&gt;     /Your POM &lt;build&gt;&lt;outputdirectory&gt; does not match your hosted webapp<br>
&gt;     WEB-INF/classes folder for GWT Hosted browser to see your classes./<br>
&gt;     /Listening for transport dt_socket at address: 8000/<br>
&gt;<br>
&gt;     Now, when I try to attach a debugger (in my case, using Netbeans), I<br>
&gt;     get the following behavior:<br>
&gt;<br>
</div></div>&gt;        1. The GWT Development Mode console appears<br>
&gt;        2. After a few seconds, the Startup URL appears in the combobox<br>
&gt;        3. At this point, I have some warnings in &quot;Development Mode&quot; and<br>
<div class="im">&gt;           &quot;Jetty&quot; tabs. (probably you are using tomcat, but should be<br>
&gt;           the same)<br>
</div>&gt;        4. When I try to enter Guvnor using firefox, a new tab appears in<br>
<div class="im">&gt;           the GWT Development Mode (which is the expected behavior), but<br>
&gt;           a lot of errors appear there. The errors are because the<br>
&gt;           source code of ide.common packages can&#39;t be found.<br>
&gt;<br>
&gt;<br>
&gt;     I&#39;m attaching a screenshot showing the error:<br>
&gt;<br>
</div>&gt;     news://<a href="http://news.gmane.org:119/C7774483B6A70C4BB10E917CC1A59DC10766BE79%40eu1wam35.warley.ford.com?group=gmane.comp.java.drools.devel&amp;key=3996&amp;header=quotebody&amp;part=1.1.2&amp;filename=Screenshot.png" target="_blank">news.gmane.org:119/C7774483B6A70C4BB10E917CC1A59DC10766BE79%40eu1wam35.warley.ford.com?group=gmane.comp.java.drools.devel&amp;key=3996&amp;header=quotebody&amp;part=1.1.2&amp;filename=Screenshot.png</a><br>

<div class="im">&gt;<br>
&gt;     The questions are: do you know how is eclipse running guvnor? Does<br>
&gt;     it use maven at all? Am I missing any argument when running<br>
&gt;     gwt:debug goal?<br>
&gt;<br>
&gt;     Best Regards,<br>
&gt;<br>
&gt;     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
&gt;<br>
&gt;     Esteban Aliverti<br>
</div>&gt;     - Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a> &lt;<a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>&gt;<br>
<div class="im">&gt;     - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
&gt;<br>
&gt;<br>
&gt;     On Sat, Oct 9, 2010 at 7:53 AM, Geoffrey De Smet<br>
</div><div class="im">&gt;     &lt;<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a> &lt;mailto:<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;         No, I no longer think we should &quot;split up drools-guvnor into<br>
&gt;         drools-guvnor-gwtclient and drools-guvnor-server&quot;,<br>
&gt;         not at least until GWT supports separate client vs server<br>
&gt;         classpaths better.<br>
&gt;         I will still look into moving factconstraints module guvnor part to<br>
&gt;         guvnor (and the rest might be movable to drools-core/compiler?)?<br>
&gt;<br>
&gt;         With kind regards,<br>
&gt;         Geoffrey De Smet<br>
&gt;<br>
&gt;         Op 08-10-10 09:54, Anstis, Michael (M.) schreef:<br>
&gt;          &gt; I&#39;m not sure Geoffrey is planning on the split anymore:<br>
&gt;          &gt;&gt; I haven&#39;t split up drools-guvnor into<br>
&gt;         drools-guvnor-gwtclient and<br>
&gt;          &gt;&gt; drools-guvnor-server, because GWT simply doesn&#39;t really<br>
&gt;         allow that (not<br>
&gt;          &gt;&gt; without making the solution worse than the problem at least...).<br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;         ------------------------------------------------------------------------<br>
&gt;          &gt; *From:* <a href="mailto:rules-dev-bounces@lists.jboss.org">rules-dev-bounces@lists.jboss.org</a><br>
&gt;         &lt;mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org">rules-dev-bounces@lists.jboss.org</a>&gt;<br>
</div><div class="im">&gt;          &gt; [mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org">rules-dev-bounces@lists.jboss.org</a><br>
</div><div class="im">&gt;         &lt;mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org">rules-dev-bounces@lists.jboss.org</a>&gt;] *On Behalf Of<br>
&gt;         *Michael Neale<br>
&gt;          &gt; *Sent:* 08 October 2010 03:34<br>
&gt;          &gt; *To:* Rules Dev List<br>
&gt;          &gt; *Subject:* Re: [rules-dev] Guvnor build changes summary<br>
&gt;          &gt;<br>
&gt;          &gt; yes, that probably would make sense. Although, there would<br>
&gt;         have to<br>
&gt;          &gt; be maybe a 3rd for the common code. Or else the server module<br>
&gt;          &gt; depends on the client module?<br>
&gt;          &gt;<br>
&gt;          &gt; On Fri, Oct 8, 2010 at 12:51 PM, Jervis Liu &lt;<a href="mailto:jliu@redhat.com">jliu@redhat.com</a><br>
&gt;         &lt;mailto:<a href="mailto:jliu@redhat.com">jliu@redhat.com</a>&gt;<br>
</div><div><div></div><div class="h5">&gt;          &gt; &lt;mailto:<a href="mailto:jliu@redhat.com">jliu@redhat.com</a> &lt;mailto:<a href="mailto:jliu@redhat.com">jliu@redhat.com</a>&gt;&gt;&gt; wrote:<br>
&gt;          &gt;<br>
&gt;          &gt; Good job, Geoffrey! BTW, what is this about: &quot;split up<br>
&gt;         drools-guvnor<br>
&gt;          &gt; into drools-guvnor-gwtclient and drools-guvnor-server&quot; ?<br>
&gt;          &gt;<br>
&gt;          &gt; Thanks,<br>
&gt;          &gt; Jervis<br>
&gt;          &gt;<br>
&gt;          &gt; Geoffrey De Smet wrote:<br>
&gt;          &gt; &gt; Hi guys,<br>
&gt;          &gt; &gt;<br>
&gt;          &gt; &gt; The Guvnor build has changed somewhat. Here&#39;s the changes:<br>
&gt;          &gt; &gt; - &quot;mvn clean compile&quot; now compiles the GWT java sources to<br>
&gt;          &gt; javascript<br>
&gt;          &gt; &gt; with the gwt-maven-plugin.<br>
&gt;          &gt; &gt; -- So now, to really clean build guvnor, you don&#39;t need to<br>
&gt;          &gt; run the ANT<br>
&gt;          &gt; &gt; script separate no more<br>
&gt;          &gt; &gt; -- The maven plugin is about 50% faster than the ANT script.<br>
&gt;          &gt; &gt; -- This makes the entire drools build slower (as it now gwt<br>
&gt;          &gt; compiles<br>
&gt;          &gt; &gt; too), but I am looking into improving that (for example in a<br>
&gt;          &gt; development<br>
&gt;          &gt; &gt; mode profile, we can only gwt compile to english and firefox)<br>
&gt;          &gt; &gt; - The generated GWT javascript files have been removed from<br>
&gt;          &gt; subversion<br>
&gt;          &gt; &gt; and are now generated under the target/drools-guvnor directory<br>
&gt;          &gt; &gt; -- No more A43BF34D23567676DF.js files in svn or tree<br>
&gt;          &gt; conflicts on those<br>
&gt;          &gt; &gt; directories<br>
&gt;          &gt; &gt;<br>
&gt;          &gt; &gt; I haven&#39;t split up drools-guvnor into<br>
&gt;         drools-guvnor-gwtclient and<br>
&gt;          &gt; &gt; drools-guvnor-server, because GWT simply doesn&#39;t really allow<br>
&gt;          &gt; that (not<br>
&gt;          &gt; &gt; without making the solution worse than the problem at<br>
&gt;         least...).<br>
&gt;          &gt; &gt;<br>
&gt;          &gt; &gt; If you feel any rough edges, let me know and I &#39;ll take a<br>
&gt;          &gt; look at it.<br>
&gt;          &gt; &gt;<br>
&gt;          &gt; &gt; I &#39;ll remove the old ANT script soon, once the maven<br>
&gt;          &gt; filtering for the<br>
&gt;          &gt; &gt; version and revision is in place.<br>
&gt;          &gt; &gt;<br>
&gt;          &gt;<br>
&gt;          &gt; _______________________________________________<br>
&gt;          &gt; rules-dev mailing list<br>
&gt;          &gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>&gt;<br>
&gt;         &lt;mailto:<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
&gt;         &lt;mailto:<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>&gt;&gt;<br>
&gt;          &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;          &gt; --<br>
&gt;          &gt; Michael D Neale<br>
&gt;          &gt; home: <a href="http://www.michaelneale.net" target="_blank">www.michaelneale.net</a> &lt;<a href="http://www.michaelneale.net" target="_blank">http://www.michaelneale.net</a>&gt;<br>
&gt;         &lt;<a href="http://www.michaelneale.net" target="_blank">http://www.michaelneale.net</a>&gt;<br>
&gt;          &gt; blog: <a href="http://michaelneale.blogspot.com" target="_blank">michaelneale.blogspot.com</a><br>
&gt;         &lt;<a href="http://michaelneale.blogspot.com" target="_blank">http://michaelneale.blogspot.com</a>&gt;<br>
&gt;         &lt;<a href="http://michaelneale.blogspot.com" target="_blank">http://michaelneale.blogspot.com</a>&gt;<br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;          &gt; _______________________________________________<br>
&gt;          &gt; rules-dev mailing list<br>
&gt;          &gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>&gt;<br>
&gt;          &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         rules-dev mailing list<br>
&gt;         <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>&gt;<br>
&gt;         <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-dev mailing list<br>
&gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br>