Hi Lincoln,<div><br></div><div>Deleting the file helped, thanks!</div><div><br></div><div>Now I have another issue though :-(</div><div><br></div><div>The test FacesScaffoldTest has the method setupScaffoldProject, which creates project and then sets up scaffolding by "passing" on the command line some parameters. Well, it seems that the list which is passed ("", "", "2", "", "", "") doesn't work. I see the following exception:</div>
<div><br></div><div><div>java.lang.IllegalArgumentException: promptChoice() Cannot ask user to select from a list of nothing. Ensure you have values in your options list.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.forge.shell.AbstractShellPrompt.promptChoiceTyped(AbstractShellPrompt.java:250)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.promptChoiceTyped(ShellImpl$Proxy$_$$_WeldClientProxy.java)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.forge.scaffold.faces.FacesScaffold.install(FacesScaffold.java:419)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:266)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:180)</div>
<div><br></div></div><div><br></div><div>It seems that there is a question on the version of the faces scaffold FacesScaffold.java:419, but the queue input lines don't provide it. I tried with the following input: queueInputLines("", "", "", "", "2", ""); But I was not successful. I ran the same sequence of commands on a forge distribution which I have installed (I guess it is Beta 3), but there the questions seem slightly different, so I can't figure out what and where is expected to be entered.</div>
<div><br></div><div>Thanks,</div><div>Ivan</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 12:01 AM, Lincoln Baxter, III <span dir="ltr"><<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hey Ivan!<br><br>First, you should make sure that you are using Java version 6.0.24, otherwise, the build will not succeed due to compilor errors. Also, with regard to your DEFAULT_PLUGIN_REPO, just delete your ~/.forge/config file, and this will be fixed.<br>
<br>Let me know if this works,<br>~Lincoln<br><br><div class="gmail_quote"><div><div class="h5">On Wed, Nov 9, 2011 at 10:56 PM, Ivan St. Ivanov <span dir="ltr"><<a href="mailto:ivan.st.ivanov@gmail.com" target="_blank">ivan.st.ivanov@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi folks,<div><br></div><div>I just fetched the latest version of forge. I launched maven build and it failed while building the forge shell project. One of the tests (ForgePluginTest::testFindPlugin) failed with the following exception:</div>
<div><br></div><div><div>java.lang.RuntimeException: no default repository set: (to set, type: set DEFAULT_PLUGIN_REPO <repository>)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.util.PluginUtil.getDefaultRepo(PluginUtil.java:62)</div>
<div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.util.PluginUtil.findPlugin(PluginUtil.java:73)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.plugins.builtin.ForgePlugin.find(ForgePlugin.java:158)</div>
<div><span style="white-space:pre-wrap">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div><span style="white-space:pre-wrap">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</div>
<div><span style="white-space:pre-wrap">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div><span style="white-space:pre-wrap">        </span>at java.lang.reflect.Method.invoke(Method.java:597)</div>
<div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.command.Execution.perform(Execution.java:147)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)</div>
<div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:716)</div>
<div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.execute(ShellImpl$Proxy$_$$_WeldClientProxy.java)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.forge.shell.test.plugins.builtin.ForgePluginTest.testFindPlugin(ForgePluginTest.java:41)</div>
</div><div><br></div><div>I did a quick debug (the test failed in the IDE as well) and found that the ForgePlugin class under test is initialized with an Environment object that has an empty properties map. I tried to find out how the plugin gets initialized, but I got lost somewhere in the calls of the Weld library:</div>
<div><br></div><div>from Execution::perform:90</div><div><br></div><div><div> Class<? extends Plugin> pluginType = command.getParent().getType();</div><div><br></div><div> Set<Bean<?>> beans = manager.getBeans(pluginType);</div>
<div> Bean<?> bean = manager.resolve(beans);</div></div><div><br></div><div>However, I checked the CI server logs from today (<a href="http://ci.jboss.org/jenkins/view/Forge/job/Forge-CI/366/console" target="_blank">http://ci.jboss.org/jenkins/view/Forge/job/Forge-CI/366/console</a>). The build is broken, but the Forge shell project is built successfully. </div>
<div><br></div><div>Is there anything wrong with my setup? Just for your information, I'm using Windows.</div><div><br></div><div>Thanks and regards,</div><div>Ivan</div><div><br></div><div>P.S. BTW I get the same compilation error as Jenkins when I run the build with -DskipTests:</div>
<div><br></div><div><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;font-size:11px;background-color:rgb(255, 255, 255)"><span style="color:rgb(204, 0, 0);font-weight:bold">[ERROR] COMPILATION ERROR :
</span>[INFO] -------------------------------------------------------------
<span style="color:rgb(204, 0, 0);font-weight:bold">[ERROR] /mnt/hudson_workspace/workspace/Forge-CI/scaffold-faces/src/main/java/org/jboss/forge/scaffold/faces/metawidget/inspector/propertystyle/ForgePropertyStyle.java:[529,59] type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.annotation.Annotation
</span></pre></div><div><span style="color:rgb(204, 0, 0);font-weight:bold"><br></span></div>
<br></div></div>_______________________________________________<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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br><a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
"Keep it Simple"<br>
</font></span><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>