Hi George,<div><br></div><div>i solved my problems!</div><div>If i launch mvn out of eclipse (in a shell), all works correctly, in eclipse not.</div><div><br></div><div>The time taken to solve the problems of compilation, however, served to know a little more about the architecture of forge.</div>
<div>I still believe it is possible to improve the test suite to make the test easier (as I suggested in a previous email).</div><div><br></div><div>Tomorrow I can go back to writing code ..</div><div><br></div><div>Fiorenzo<br>
<br><div class="gmail_quote">2012/8/27  <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Fiorenzio,<br>
    <br>
    I also had these test errors, however, when I cleaned my maven repo
    and started the build all over again, these errors were misteriously
    gone. I believe that maybe the keyboard is still being listened, so,
    try run all these tests in an isolated machine, I mean, don&#39;t type
    anything on it and see if that works.<br>
    <br>
    Best Regards,<br>
    <br>
    George Gastaldi<br>
    <br>
    PS: I have already created an issue about this:
    
    <a href="https://issues.jboss.org/browse/FORGE-658" target="_blank">https://issues.jboss.org/browse/FORGE-658</a>,
    however I closed because I couldn&#39;t reproduce it anymore. <br>
    <br>
    I&#39;d say: follow these procedures with the master branch and see if
    that works for you.<div><div class="h5"><br>
    <br>
    On 08/26/2012 05:45 PM, JFlower wrote:
    <blockquote type="cite">Hi,
      <div><br>
      </div>
      <div><span style="line-height:18px;color:rgb(51,51,51);font-size:13px;font-family:arial,sans-serif">to
          solve my problems compiling the </span>forge <span style="line-height:18px;color:rgb(51,51,51);font-size:13px;font-family:arial,sans-serif">project, </span>i
        started a big fighting with forge code ( 1.0.7-SNAPSHOT)...</div>
      <div><br>
      </div>
      <div>1) i created a new VirtualBox machine with:</div>
      <div>- 8 giga ram </div>
      <div>- ubuntu 12.04, </div>
      <div>- java version &quot;1.6.0_34&quot;- Java(TM) SE Runtime Environment
        (build 1.6.0_34-b04) - Java HotSpot(TM) 64-Bit Server VM (build
        20.9-b04, mixed mode)</div>
      <div>- Apache Maven 3.0.4 </div>
      <div>- Default locale: it_IT, platform encoding: UTF-8 - OS name:
        &quot;linux&quot;, version: &quot;3.2.0-29-generic&quot;, arch: &quot;amd64&quot;, family:
        &quot;unix&quot;</div>
      <div>2) i removed my nexus proxy, i used jboss/maven repository.</div>
      <div><br>
      </div>
      <div>In this neutral situation, the forge source code compiles
        correctly, but some test classes don&#39;t work well.</div>
      <div>But not for jvm, or dependencies questions,i think we
        have some misuse of queueInputLines method with
        getShell().execute(...) .</div>
      <div><br>
      </div>
      <div>The runtime error is always the same, in
        org.jboss.forge.test.<b>QueuedInputStream</b>, in the
        method requireCurrent(): </div>
      <div><b>throw new EndOfStreamException(&quot;End of stream: No more
          queued input.&quot;);</b></div>
      <div>--------------------------------------------------------------</div>
      <div><b>For example in the mdule forge-scaffold-faces, </b>in the
        class org.jboss.forge.scaffold.faces.<b>FacesScaffoldTest, </b>we <span style="line-height:18px;color:rgb(51,51,51);font-size:13px;font-family:arial,sans-serif">need
          to modify the code as shown below:</span></div>
      <div><br>
      </div>
      <div><b>- in AbstractFacesScaffoldTest i added this method, </b><span style="line-height:18px;color:rgb(51,51,51);font-size:13px;font-family:arial,sans-serif"><b>that </b></span><b>i
          copied from jpa plugin tests:</b></div>
      <div>
        <div>@Before</div>
        <div><span style="white-space:pre-wrap"> </span>@Override</div>
        <div><span style="white-space:pre-wrap"> </span>public void
          beforeTest() throws Exception {</div>
        <div><span style="white-space:pre-wrap"> </span>super.beforeTest();</div>
        <div><span style="white-space:pre-wrap"> </span>initializeJavaProject();</div>
        <div><span style="white-space:pre-wrap"> </span>if
          ((getProject() != null)</div>
        <div><span style="white-space:pre-wrap"> </span>&amp;&amp;
          !getProject().hasFacet(PersistenceFacet.class)) {</div>
        <div><span style="white-space:pre-wrap"> </span>queueInputLines(&quot;&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span><b>getShell().execute(&quot;project
            install-facet forge.spec.jpa&quot;);</b></div>
        <div>
          <span style="white-space:pre-wrap"> </span>}</div>
        <div><span style="white-space:pre-wrap"> </span>}</div>
        <div><br>
        </div>
        <div><b>and i changed setupScaffoldProject: </b></div>
        <div><span style="white-space:pre-wrap"> </span>protected
          Project setupScaffoldProject() throws Exception {</div>
        <div><span style="white-space:pre-wrap"> </span>// Project
          project = initializeJavaProject();</div>
        <div><span style="white-space:pre-wrap"> </span>//
          queueInputLines(&quot;HIBERNATE&quot;, &quot;JBOSS_AS7&quot;, &quot;&quot;, &quot;&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span>//
          getShell().execute(&quot;persistence setup&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span><b>queueInputLines(&quot;&quot;);</b></div>
        <div><b><span style="white-space:pre-wrap"> </span>getShell().execute(</b></div>
        <div><b><span style="white-space:pre-wrap"> </span>&quot;persistence
            setup --provider HIBERNATE --container JBOSS_AS7&quot;);</b></div>
        <div><span style="white-space:pre-wrap"> </span>queueInputLines(&quot;&quot;,
          &quot;&quot;, &quot;&quot;, &quot;&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span>getShell().execute(&quot;scaffold
          setup&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span>// return
          project;</div>
        <div><span style="white-space:pre-wrap"> </span>return
          getShell().getCurrentProject();</div>
        <div><span style="white-space:pre-wrap"> </span>}</div>
        <div><b> also i changed setupScaffoldProject</b>t<b>(String
            targetDir) : </b></div>
        <div><span style="white-space:pre-wrap"> </span>protected
          Project setupScaffoldProject(String targetDir) throws
          Exception {</div>
        <div>//<span style="white-space:pre-wrap"> </span>Project
          project = initializeJavaProject();</div>
        <div><span style="white-space:pre-wrap"> </span>//
          queueInputLines(&quot;HIBERNATE&quot;, &quot;JBOSS_AS7&quot;, &quot;&quot;, &quot;&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span>//
          getShell().execute(&quot;persistence setup&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span>queueInputLines(&quot;&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span>getShell().execute(</div>
        <div><span style="white-space:pre-wrap"> </span>&quot;persistence
          setup --provider HIBERNATE --container JBOSS_AS7&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span>queueInputLines(&quot;&quot;,
          &quot;&quot;, &quot;&quot;);</div>
        <div><span style="white-space:pre-wrap"> </span>getShell().execute(&quot;scaffold
          setup --targetDir &quot; + targetDir);</div>
        <div>//<span style="white-space:pre-wrap"> </span>return
          project;</div>
        <div><span style="white-space:pre-wrap"> </span>return
          getShell().getCurrentProject();</div>
        <div><span style="white-space:pre-wrap"> </span>}</div>
      </div>
      <div><br>
      </div>
      <div>Tomorrow I will open some jira bugs <span style="line-height:18px;color:rgb(51,51,51);font-size:13px;font-family:arial,sans-serif">divided
          by projects, and i will sent </span>some pull request.</div>
      <div><br>
      </div>
      <div>bye</div>
      <div><br>
      </div>
      <div>Fiorenzo</div>
      <div><br>
      </div>
      <div>PS my final maven result:</div>
      <div>
        <div><br>
        </div>
        <div>[INFO] Executed tasks</div>
        <div>[INFO] </div>
        <div>[INFO] --- maven-assembly-plugin:2.2-beta-5:single
          (distribution) @ forge-distribution ---</div>
        <div>[INFO] Reading assembly descriptor:
          src/main/assembly/assembly.xml</div>
        <div>[INFO] Building zip:
/home/fiorenzo/git/core/dist/target/forge-distribution-1.0.7-SNAPSHOT.zip</div>
        <div>[INFO]
          ------------------------------------------------------------------------</div>
        <div>[INFO] Reactor Summary:</div>
        <div>[INFO] </div>
        <div>[INFO] Forge - Parent ....................................
          SUCCESS [0.911s]</div>
        <div>[INFO] Forge - Targeted Event Bus ........................
          SUCCESS [10.226s]</div>
        <div>[INFO] Forge - Parser/Java API ...........................
          SUCCESS [6.250s]</div>
        <div>[INFO] Forge - Parser/XML ................................
          SUCCESS [6.214s]</div>
        <div>[INFO] Forge - Shell API .................................
          SUCCESS [5.173s]</div>
        <div>[INFO] Forge - Maven Integration APIs ....................
          SUCCESS [4.477s]</div>
        <div>[INFO] Forge - Git Integration ...........................
          SUCCESS [3.130s]</div>
        <div>[INFO] Forge - Test Harness ..............................
          SUCCESS [3.348s]</div>
        <div>[INFO] Forge - Maven Project Model .......................
          SUCCESS [3.189s]</div>
        <div>[INFO] Forge - Parser/Java ...............................
          SUCCESS [9.231s]</div>
        <div>[INFO] Forge - Shell .....................................
          SUCCESS [2:17.367s]</div>
        <div>[INFO] Forge - Git Integration Tests .....................
          SUCCESS [1:31.125s]</div>
        <div>[INFO] Forge - Project Model Maven Tests .................
          SUCCESS [9:48.275s]</div>
        <div>[INFO] Forge - Test Harness (Web) ........................
          SUCCESS [2.627s]</div>
        <div>[INFO] Forge - Java EE APIs ..............................
          SUCCESS [3.304s]</div>
        <div>[INFO] Forge - Java EE Integration Impl &amp; Plugins
          ........ SUCCESS [5:18.033s]</div>
        <div>[INFO] Forge - Scaffolding APIs ..........................
          SUCCESS [3.828s]</div>
        <div>[INFO] Forge - Scaffolding Plugins .......................
          SUCCESS [55.593s]</div>
        <div>[INFO] Forge - Dev Plugins ...............................
          SUCCESS [3:59.455s]</div>
        <div>[INFO] Forge - Scaffold Provider for Java Server Faces ...
          SUCCESS [2:08.892s]</div>
        <div>[INFO] Forge - Modular Plugin Loader .....................
          SUCCESS [6.214s]</div>
        <div>[INFO] JBoss Forge - Distribution Build ..................
          SUCCESS [9.518s]</div>
        <div>[INFO]
          ------------------------------------------------------------------------</div>
        <div>[INFO] BUILD SUCCESS</div>
        <div>[INFO]
          ------------------------------------------------------------------------</div>
        <div><b>[INFO] Total time: 14:19.018s (Wall Clock)</b></div>
        <div>[INFO] Finished at: Sun Aug 26 21:15:28 CEST 2012</div>
        <div>[INFO] Final Memory: 90M/755M</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <br>
      <div class="gmail_quote">2012/8/25 George Gastaldi <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF">
            <div>Wonderful idea. I am filling a jira for it<br>
              <br>
              Em 24/08/2012, às 20:46, Dan Allen &lt;<a href="mailto:dan.j.allen@gmail.com" target="_blank">dan.j.allen@gmail.com</a>&gt;
              escreveu:<br>
              <br>
            </div>
            <div>
              <div>
                <blockquote type="cite">
                  <div>George and others,
                    <div><br>
                    </div>
                    <div>It sounds like the Forge build could use some
                      validations to ensure the person building the
                      project has an environment that matches the
                      minimum requirements. Obviously, you want as few
                      validations as possible (to make it more portable)
                      but you can work to eliminate them once you know
                      what they are.</div>
                    <div><br>
                    </div>
                    <div><a href="http://maven.apache.org/plugins/maven-enforcer-plugin/" target="_blank">http://maven.apache.org/plugins/maven-enforcer-plugin/</a></div>
                    <div><br>
                    </div>
                    <div>Also, newer versions of Maven are suppose to be
                      able to differentiate between origins of
                      dependencies in the local repository, so we should
                      probably be looking closer at the cases when we
                      tell users to clean it out.</div>
                    <div><br>
                    </div>
                    <div>Just some suggestions.</div>
                    <div><br>
                    </div>
                    <div>-Dan<br>
                      <br>
                      <div class="gmail_quote">On Fri, Aug 24, 2012 at
                        8:58 AM, George Gastaldi <span dir="ltr">&lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF">
                            <div>Try upgrading your JDK 6 to the latest
                              build<br>
                              <br>
                              Em 24/08/2012, às 09:43, JFlower &lt;<a href="mailto:fiorenzino@gmail.com" target="_blank">fiorenzino@gmail.com</a>&gt;
                              escreveu:<br>
                              <br>
                            </div>
                            <div>
                              <div>
                                <blockquote type="cite">
                                  <div>Hi,
                                    <div><br>
                                    </div>
                                    <div>i have this error with mvn
                                      clean package</div>
                                    <div><br>
                                    </div>
                                    <div>
                                      <div>[ERROR] Failed to execute
                                        goal
                                        org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
                                        (default-compile) on project
                                        forge-shell-api: Compilation
                                        failure</div>
                                      <div><b>[ERROR]
                                          /home/fiorenzo/git/core/shell-api/src/main/java/org/jboss/forge/shell/util/ResourceUtil.java:[111,23]
                                          invalid inferred types for R;
                                          inferred type does not conform
                                          to declared bound(s)</b></div>
                                      <div><b>[ERROR] inferred:
                                          java.util.Collection&lt;E&gt;</b></div>
                                      <div><b>[ERROR] bound(s):
                                          java.util.Collection&lt;org.jboss.forge.resources.Resource&lt;?&gt;&gt;</b></div>
                                      <div><b>[ERROR] -&gt; [Help 1]</b></div>
                                      <div>[ERROR] </div>
                                      <div>[ERROR] To see the full stack
                                        trace of the errors, re-run
                                        Maven with the -e switch.</div>
                                      <div>[ERROR] Re-run Maven using
                                        the -X switch to enable full
                                        debug logging.</div>
                                      <div>[ERROR] </div>
                                      <div>[ERROR] For more information
                                        about the errors and possible
                                        solutions, please read the
                                        following articles:</div>
                                      <div>
                                        [ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException" target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException</a></div>

                                      <div>[ERROR] </div>
                                      <div>[ERROR] After correcting the
                                        problems, you can resume the
                                        build with the command</div>
                                      <div>[ERROR]   mvn &lt;goals&gt;
                                        -rf :forge-shell-api</div>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>[ubuntu 12.04 - Apache Maven
                                      3.0.4 - Java version: 1.6.0_24,
                                      vendor: Sun Microsystems Inc. Java
                                      home:
                                      /usr/lib/jvm/java-6-openjdk-amd64/jre Default
                                      locale: it_IT, platform encoding:
                                      UTF-8 OS name: &quot;linux&quot;, version:
                                      &quot;3.2.0-29-generic&quot;, arch: &quot;amd64&quot;,
                                      family: &quot;unix&quot;]</div>
                                    <div><br>
                                    </div>
                                    <div><span style="line-height:18px;color:rgb(51,51,51);font-size:13px;font-family:arial,sans-serif">Any
                                        help on this?</span></div>
                                    <div><span style="line-height:18px;color:rgb(51,51,51);font-size:13px;font-family:arial,sans-serif"><br>
                                      </span></div>
                                    <div><span style="line-height:18px;color:rgb(51,51,51);font-size:13px;font-family:arial,sans-serif">Fiorenzo</span></div>
                                  </div>
                                </blockquote>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div><span>_______________________________________________</span><br>
                                <span>forge-dev mailing list</span><br>
                                <span><a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a></span><br>
                                <span><a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a></span><br>
                              </div>
                            </blockquote>
                          </div>
                          <br>
_______________________________________________<br>
                          forge-dev mailing list<br>
                          <a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
                          <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                      <br clear="all">
                      <div><br>
                      </div>
                      -- <br>
                      <div>Dan Allen</div>
                      Principal Software Engineer, Red Hat | Author of
                      Seam in Action<br>
                      Registered Linux User #231597<br>
                      <br>
                      <div><a href="http://google.com/profiles/dan.j.allen" target="_blank">http://google.com/profiles/dan.j.allen</a><br>
                        <a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
                        <a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
                      </div>
                      <br>
                    </div>
                  </div>
                </blockquote>
                <blockquote type="cite">
                  <div><span>_______________________________________________</span><br>
                    <span>forge-dev mailing list</span><br>
                    <span><a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a></span><br>
                    <span><a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a></span><br>
                  </div>
                </blockquote>
              </div>
            </div>
          </div>
          <br>
          _______________________________________________<br>
          forge-dev mailing list<br>
          <a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
          <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
forge-dev mailing list
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a>
</pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><div>-- <br>
      <b>George Gastaldi</b> | <i>Senior Software Engineer</i> <br>
      JBoss Forge Team<br>
      Red Hat<br>
    </div>
  </font></span></div>

<br>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br></blockquote></div><br></div>