[forge-dev] Test testFindPlugin fails
Ivan St. Ivanov
ivan.st.ivanov at gmail.com
Wed Nov 9 17:33:36 EST 2011
Deleting the file helped, thanks!
Now I have another issue though :-(
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:
java.lang.IllegalArgumentException: promptChoice() Cannot ask user to
select from a list of nothing. Ensure you have values in your options list.
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.
On Thu, Nov 10, 2011 at 12:01 AM, Lincoln Baxter, III <
lincolnbaxter at gmail.com> wrote:
> Hey Ivan!
> 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.
> Let me know if this works,
> On Wed, Nov 9, 2011 at 10:56 PM, Ivan St. Ivanov <ivan.st.ivanov at gmail.com
> > wrote:
>> Hi folks,
>> 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:
>> java.lang.RuntimeException: no default repository set: (to set, type: set
>> DEFAULT_PLUGIN_REPO <repository>)
>> at org.jboss.forge.shell.util.PluginUtil.findPlugin(PluginUtil.java:73)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at org.jboss.forge.shell.command.Execution.perform(Execution.java:147)
>> at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:716)
>> 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:
>> from Execution::perform:90
>> Class<? extends Plugin> pluginType =
>> Set<Bean<?>> beans = manager.getBeans(pluginType);
>> Bean<?> bean = manager.resolve(beans);
>> However, I checked the CI server logs from today (
>> http://ci.jboss.org/jenkins/view/Forge/job/Forge-CI/366/console). The
>> build is broken, but the Forge shell project is built successfully.
>> Is there anything wrong with my setup? Just for your information, I'm
>> using Windows.
>> Thanks and regards,
>> P.S. BTW I get the same compilation error as Jenkins when I run the build
>> with -DskipTests:
>> [ERROR] COMPILATION ERROR : [INFO] -------------------------------------------------------------[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
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
> Lincoln Baxter, III
> "Keep it Simple"
> forge-dev mailing list
> forge-dev at lists.jboss.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the forge-dev