Hi Geoffrey,<div><br></div><div>I admit that I didn&#39;t know about &quot;compileSourcesArtifact&quot; before (I haven&#39;t used GWT since 1.7) it&#39;s a pretty hack :)</div><div><br></div><div>And thank you for fixing it, you&#39;re doing great job !</div>
<div><br><div class="gmail_quote">2011/3/2 Geoffrey De Smet <span dir="ltr">&lt;<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
  
  <div text="#000000" bgcolor="#ffffff">
    Hi Sayhi,<br>
    <br>
    After a little investigating, I &#39;ve found the root cause of the
    problem why compeSourceArtifact didn&#39;t work for gwt:run:<br>
      <a href="http://jira.codehaus.org/browse/MGWT-266" target="_blank">http://jira.codehaus.org/browse/MGWT-266</a><br>
    and created a patch to fix it in the gwt-maven-plugin itself.<br>
    Please vote for the issue :)<br>
    Hopefully it makes the 2.2.1 release of the plugin and then I &#39;ll
    upgrade our gwt plugin version immediately after.<br>
    <br>
    I don&#39;t want to litter the production jars with sources because that
    will make IntelliJ and Eclipse confused (you &#39;ll find everything
    twice).<br>
    <br>
    Thank you for bringing the problem to our attention and the patch to
    prove it&#39;s indeed a problem :)<br>
    <br>
    Op 28-02-11 10:23, Geoffrey De Smet schreef:
    <div><div></div><div class="h5"><blockquote type="cite">
      
      Hi Sayhi,<br>
      <br>
      Thank you, great work :)<br>
      <br>
      I am migrating the patch to master, since 5.2.0.M2 will be slated
      from master.<br>
      <br>
      In the guvnor-webapp pom (renamed from drools-guvnor) on master, I
      do have 2 notable things:<br>
      <br>
            &lt;plugin&gt;<br>
              &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt;<br>
              &lt;version&gt;<b>2.1.0-1</b>&lt;/version&gt;<br>
              &lt;configuration&gt;<br>
                ...<br>
                &lt;compileSourcesArtifacts&gt;<br>
                  <b>&lt;compileSourcesArtifact&gt;org.drools:droolsjbpm-ide-common&lt;/compileSourcesArtifact&gt;</b><br>
                &lt;/compileSourcesArtifacts&gt;<br>
                ...<br>
              &lt;/configuration&gt;<br>
      <br>
      That should make it work without including the java files in the
      normal jar (which is against maven guidelines, and which is also
      bloat).<br>
      <blockquote type="cite"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">one of the rules for
          developing gwt libraries is that when packaged, classes that
          reside in the client package (i.e. those that will be used in
          client code of projets using the library) should have their
          sources packaged with them.</span></blockquote>
      Yes, it was. But there&#39;s been some discussion (and an issue,
      probably fixed for 2.1 or 2.1.1 IIRC) that states that the gwt
      libraries deployed to the maven repository should follow maven
      conventions and separate jars and source-jars, so Intellij,
      Eclipse, Netbeans and the rest of the maven ecosystem can find and
      deal with the sources too.<br>
      <br>
      Anyway, gwt:run should work and I &#39;ll apply your patch if it
      doesn&#39;t.<br>
      Thanks again.<br>
      <br>
      Op 25-02-11 17:38, Sayhi Aymen schreef:
      <blockquote type="cite"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Hi Geoffrey,
          <div><br>
          </div>
          <div>I&#39;ve fixed all things you&#39;ve talked about and I&#39;ve some
            remarks:</div>
        </span><br>
        <div class="gmail_quote">2011/2/24 Geoffrey De Smet <span dir="ltr">&lt;<a href="mailto:ge0ffrey.spam@gmail.com" target="_blank">ge0ffrey.spam@gmail.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"> Hi Sayhi,<br>
              <br>
              Thanks for noticing this issue and creating a patch.<br>
              <br>
              Unfortunately I cannot accept and apply this patch
              because:<br>
              - By changing the build resources to only include
              src/main/resources/**/*.gwt.xml, it breaks the backend
              which needs other resources out of src/main/resources.<br>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Fixed

              : you&#39;re right !</span></div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"> - By changing the
              build resources to include the java files from
              src/main/java, it clutters the deployed jars and dirties
              the build (those things are in source jars already).<br>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">
              <div>Maintained: </div>
              <div>Projects &quot;drools-factconstraint&quot; and
                &quot;drools-ide-common&quot; are seen as gwt libraries by
                &quot;drools-guvnor&quot;, one of the rules for developing gwt
                libraries is that when packaged, classes that reside in
                the client package (i.e. those that will be used in
                client code of projets using the library) should have
                their sources packaged with them. The reason for this is
                that sources should be available on the classpath for
                the gwt compiler.</div>
              <div><br>
              </div>
              <div>You can check this in gwt-user.jar itself :</div>
              <div><a href="http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1.jar" style="color:rgb(0, 0, 204)" target="_blank">http://repo1.maven.org/maven2/com/google/gwt/gwt-user/2.1.1/gwt-user-2.1.1.jar</a></div>

              <div><br>
              </div>
              <div>And in the famous library Ext GWT :</div>
              <div><a href="http://repo1.maven.org/maven2/com/extjs/gxt/2.2.0/gxt-2.2.0.jar" style="color:rgb(0, 0, 204)" target="_blank">http://repo1.maven.org/maven2/com/extjs/gxt/2.2.0/gxt-2.2.0.jar</a></div>
            </span></div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"> - It&#39;s stale when
              compared to master on <a href="https://github.com/droolsjbpm/guvnor" target="_blank">https://github.com/droolsjbpm/guvnor</a><br>
              -- drools-factconstraints has been removed some time
              already on master<br>
              -- droolsjbpm-ide-common is ne<br>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>This patch is intended for &quot;origin/5.2.0.M1.x&quot; branch,
            not for master.</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"> - The changes are
              obfuscated with style changes that do not follow our
              guidelines.<br>
              -- See README <a href="https://github.com/droolsjbpm/droolsjbpm-build-bootstrap" target="_blank">https://github.com/droolsjbpm/droolsjbpm-build-bootstrap</a><br>
              --- More specifically about indentation<br>
              <br>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>Fixed: sorry for that :) I&#39;m using your cleaning and
            formatting settings now.</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"> I believe a much
              better way to deal with the gwt:run problem is to fix this
              issue:<br>
                <a href="https://issues.jboss.org/browse/GUVNOR-1196" target="_blank">https://issues.jboss.org/browse/GUVNOR-1196</a></div>
          </blockquote>
          <div><br>
          </div>
          <div>You don&#39;t really think it is needed to do All that in
            order to run the guvnor project with maven.</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"><br>
              But that&#39;s stuck on the fact that I don&#39;t know if and how
              intellij/eclipse can deal with hosted mode in that
              structure.<br>
              Any experiments and data to answer that question will help
              that issue forward.<br>
              <font color="#888888">
                <pre cols="72">-- 
With kind regards,
Geoffrey De Smet</pre>
                <br>
              </font></div>
          </blockquote>
          <div><br>
          </div>
          <div>
            <div>I attached a patch (fixed one :)) to this e-mail for
              those who are using branch 5.2.0.M1.x and need to run the
              guvnor project in hosted mode with maven.</div>
            <div> <br>
            </div>
            <div>P.S. sorry for the previous e-mail, it was incomplete.</div>
          </div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"> <font color="#888888"> Op 24-02-11 02:17, Sayhi Aymen schreef:
              </font>
              <div>
                <div>
                  <blockquote type="cite">
                    <div><br>
                    </div>
                    Here is the patch. I hope it helps !
                    <div>
                      <div><br>
                        <div class="gmail_quote">2011/2/23 Mauricio
                          Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><br>
                          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
                            Sounds really cool.. if you can help to get
                            maven working better for the project I think
                            that the dev team will highly appreciate
                            that.<br>
                            Greetings.<br>
                            <br>
                            <div class="gmail_quote">
                              <div>
                                <div>On Wed, Feb 23, 2011 at 1:36 PM,
                                  Sayhi Aymen <span dir="ltr">&lt;<a href="mailto:sayhi.aymen@gmail.com" target="_blank">sayhi.aymen@gmail.com</a>&gt;</span>
                                  wrote:<br>
                                </div>
                              </div>
                              <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
                                <div>
                                  <div>
                                    <div><br>
                                    </div>
                                    Hi everybody,
                                    <div><br>
                                      I checked Drools 5.2.0.M1.x
                                      sources yesterday in order to look
                                      with more insight to <i>Guvnor </i>internals.<br>
                                      <br>
                                    </div>
                                    <div>I built the whole project with <i>Maven</i> and


                                      that was ok.<br>
                                      <br>
                                    </div>
                                    <div>But when I tried to run <i>Guvnor </i>with <i>Maven </i>(mvn


                                      gwt:run) I was surprised to see
                                      that the <i>Maven </i>config do
                                      not allow that, I get a lot of
                                      errors !<br>
                                      <br>
                                    </div>
                                    <div>Thankfully I fixed that (after
                                      a hard night) and I want to
                                      contribute with that <i>Maven </i>config
                                      fix.<br>
                                      <br>
                                    </div>
                                    <div>Are you interested ?<br>
                                      <br>
                                    </div>
                                    <div>By the way, I&#39;ve already been <i>Maven </i>maintainer


                                      of an open source project on
                                      sourceforge, <i><a href="http://noon.gilead.free.fr/gilead/index.php?page=thanks" target="_blank">Gilead</a></i>.
                                      And I can help you in the future
                                      for anything related to <i>Maven</i>.</div>
                                    <br>
                                    -- <br>
                                    Best Regards<br>
                                    <font color="#888888">Aymen SAYHI<br>
                                      <br>
                                      <br>
                                    </font><br>
                                  </div>
                                </div>
_______________________________________________<br>
                                rules-dev mailing list<br>
                                <a href="mailto:rules-dev@lists.jboss.org" target="_blank">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>
                                <br>
                              </blockquote>
                            </div>
                            <font color="#888888"><br>
                              <br clear="all">
                              <br>
                              -- <br>
                               - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a> 
                              <br>
                               - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
                               - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
                               <br>
                               - Salatino &quot;Salaboy&quot; Mauricio -<br>
                            </font></blockquote>
                        </div>
                        <br>
                        <br clear="all">
                        <br>
                        -- <br>
                        Best Regards<br>
                        Aymen SAYHI<br>
                        <br>
                        <br>
                      </div>
                    </div>
                    <pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            rules-dev mailing list<br>
            <a href="mailto:rules-dev@lists.jboss.org" target="_blank">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>
            <br>
          </blockquote>
        </div>
        <div><br>
          -- <br>
          Best Regards<br>
          Aymen SAYHI<br>
          <br>
          <br>
        </div>
        <pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
      </blockquote>
      <br>
      <pre cols="72">-- 
With kind regards,
Geoffrey De Smet</pre>
      <pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
    <pre cols="72">-- 
With kind regards,
Geoffrey De Smet</pre>
  </div></div></div>

<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Aymen SAYHI<br><br><br>
</div>