<p>If you want to more rapidly test the plugin, I recommend writing a test case with the forge test harness :)</p>
<p>--<br>
Lincoln Baxter's Droid<br>
<a href="http://ocpsoft.com">http://ocpsoft.com</a><br>
"Keep it Simple"</p>
<div class="gmail_quote">On Sep 23, 2011 10:03 AM, "Lincoln Baxter, III" <<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>> wrote:<br type="attribution">> You need to actually close forge and restart it at the moment. We changed<br>
> how plains are loaded and haven't gotten hot-loading back yet :/ its coming<br>> though. Never fear :)<br>> <br>> --<br>> Lincoln Baxter's Droid<br>> <a href="http://ocpsoft.com">http://ocpsoft.com</a><br>
> "Keep it Simple"<br>> On Sep 23, 2011 4:02 AM, "Cordenier Christophe" <<br>> <a href="mailto:Christophe.Cordenier@atos.net">Christophe.Cordenier@atos.net</a>> wrote:<br>>> Hi<br>
>><br>>> I am currently testing seam forge 1.0.0-beta2 and especially trying to<br>> create custom plugins. But after following the documentation and installing<br>> the plugin successfully, seam forge still does not recognize my new<br>
> commands...<br>>><br>>> After setting the @Alias and @Named of my plugin to "forgest",<br>> implementing a default command and let the sample one 'run' as is. i<br>> installed my new plugin as follows :<br>
>><br>>> [no project] Temp $ forge source-plugin d:\Temp\forgest<br>>> ***INFO*** Invoking build with underlying build system.<br>>> [INFO] Scanning for projects...<br>>> [INFO]<br>>> [INFO]<br>
> ------------------------------------------------------------------------<br>>> [INFO] Building forgest 1.0.0-SNAPSHOT<br>>> [INFO]<br>> ------------------------------------------------------------------------<br>
>> [INFO]<br>>> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ forgest ---<br>>> [INFO] Deleting d:\Temp\forgest\target<br>>> [INFO]<br>>> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @<br>
> forgest<br>>> ---<br>>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered<br>> resources,<br>>> i.e. build is platform dependent!<br>>> [INFO] Copying 2 resources<br>>> [INFO]<br>
>> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ forgest<br>> ---<br>>> [WARNING] File encoding has not been set, using platform encoding Cp1252,<br>> i.e. b<br>>> uild is platform dependent!<br>
>> [INFO] Compiling 1 source file to d:\Temp\forgest\target\classes<br>>> [INFO]<br>>> [INFO] --- maven-resources-plugin:2.4.3:testResources<br>> (default-testResources) @<br>>> forgest ---<br>>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered<br>
> resources,<br>>> i.e. build is platform dependent!<br>>> [INFO] Copying 0 resource<br>>> [INFO]<br>>> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @<br>> forge<br>
>> st ---<br>>> [INFO] Nothing to compile - all classes are up to date<br>>> [INFO]<br>>> [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ forgest ---<br>>> [INFO] Surefire report directory: d:\Temp\forgest\target\surefire-reports<br>
>><br>>> -------------------------------------------------------<br>>> T E S T S<br>>> -------------------------------------------------------<br>>> There are no tests to run.<br>>><br>
>> Results :<br>>><br>>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0<br>>><br>>> [INFO]<br>>> [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forgest ---<br>>> [INFO] Building jar: d:\Temp\forgest\target\forgest.jar<br>
>> [INFO]<br>> ------------------------------------------------------------------------<br>>> [INFO] BUILD SUCCESS<br>>> [INFO]<br>> ------------------------------------------------------------------------<br>
>> [INFO] Total time: 5.141s<br>>> [INFO] Finished at: Fri Sep 23 09:48:00 CEST 2011<br>>> [INFO] Final Memory: 9M/22M<br>>> [INFO]<br>> ------------------------------------------------------------------------<br>
>> ***SUCCESS*** Build successful.<br>>> ***INFO*** Installing plugin artifact.<br>>> ? An existing installation for version [1.0.0-SNAPSHOT] of this plugin was<br>> foun<br>>> d. Replace it? [Y/n] Y<br>
>> Warning: The encoding 'UTF-8' is not supported by the Java runtime.<br>>> Warning: The encoding 'UTF-8' is not supported by the Java runtime.<br>>> Warning: The encoding 'UTF-8' is not supported by the Java runtime.<br>
>> ***SUCCESS*** Installed from [forgest] successfully.<br>>> ***INFO*** Please restart Forge to complete plugin installation.<br>>> Wrote D:\/Documents and<br>> Settings/a136316/.forge/plugins/net/atos/test/forgest/1.<br>
>> 0.0-SNAPSHOT/forgest.jar<br>>> Wrote D:\/Documents and<br>> Settings/a136316/.forge/plugins/net/atos/test/forgest/1.<br>>> 0.0-SNAPSHOT/module.xml<br>>> Wrote D:\/Documents and<br>> Settings/a136316/.forge/plugins/net/atos/test/forgest/de<br>
>> pendencies/1.0.0-SNAPSHOT/javax.inject-1.jar<br>>> Wrote D:\/Documents and<br>> Settings/a136316/.forge/plugins/net/atos/test/forgest/de<br>>> pendencies/1.0.0-SNAPSHOT/module.xml<br>>> Wrote D:\/Documents and<br>
> Settings/a136316/.forge/plugins/org/jboss/forge/plugins/<br>>> main/module.xml<br>>> [no project] Temp $ forge restart<br>>> Windows? Really? Okay...<br>>><br>>> [no project] Temp $ forgest<br>
>> ***ERROR*** No such command: forgest<br>>><br>>> Any clue ?<br>>><br>>> Christophe Cordenier<br>>><br>>> ________________________________<br>>><br>>> Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage<br>
> exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret<br>> professionnel. Si vous recevez ce message par erreur, merci d'en avertir<br>> imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne<br>
> pouvant ?tre assur?e sur Internet, la responsabilit? d'Atos ne pourra ?tre<br>> recherch?e quant au contenu de ce message. Bien que les meilleurs efforts<br>> soient faits pour maintenir cette transmission exempte de tout virus,<br>
> l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne<br>> saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.<br>>><br>>> This e-mail and the documents attached are confidential and intended<br>
> solely for the addressee; it may also be privileged. If you receive this<br>> e-mail in error, please notify the sender immediately and destroy it. As its<br>> integrity cannot be secured on the Internet, the Atos liability cannot be<br>
> triggered for the message content. Although the sender endeavours to<br>> maintain a computer virus-free network, the sender does not warrant that<br>> this transmission is virus-free and will not be liable for any damages<br>
> resulting from any virus transmitted.<br></div>