<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Feedback taken on board.<div><br></div><div>A number of refactorings have now happened here:</div><div><br></div><div>* Renamed archetypes</div><div>* Move to Archetype Plugin 2.0</div><div>* Created a testcase archetype</div><div>* Rudimentary docs</div><div><br></div><div>Give it a spin! &nbsp;Details are here:</div><div><br></div><div><a href="http://community.jboss.org/wiki/InfinispanMavenArchetypes">http://community.jboss.org/wiki/InfinispanMavenArchetypes</a></div><div><br></div><div>Let me know what you think</div><div><br></div><div>Cheers</div><div>Manik</div><div><br><div><div>On 7 Dec 2010, at 14:41, Galder Zamarreņo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On Dec 6, 2010, at 8:06 PM, Manik Surtani wrote:<br><br><blockquote type="cite">Early days yet, but if you feel like playing around with it, do:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">$ mvn archetype:create \<br></blockquote><blockquote type="cite"> &nbsp;-DarchetypeGroupId=org.infinispan \<br></blockquote><blockquote type="cite"> &nbsp;-DarchetypeArtifactId=sample-project \<br></blockquote><blockquote type="cite"> &nbsp;-DarchetypeVersion=5.0.0-SNAPSHOT \<br></blockquote><blockquote type="cite"> &nbsp;-DgroupId=&lt;YOUR_GROUP_ID&gt; \<br></blockquote><blockquote type="cite"> &nbsp;-DartifactId=&lt;YOUR_ARTIFACT_ID&gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This will create a skeleton project all set up to work with Infinispan 5.0.0-SNAPSHOT. &nbsp;Replace 5.0.0-SNAPSHOT to 4.2.0-SNAPSHOT for a 4.2.0-ready project. &nbsp;The skeleton project will include some sample configs as well. &nbsp;Pls have a look and provide feedback! &nbsp;<br></blockquote><br>Just run the archetype and tried to run Application from IDEA and got this:<br><br>4. &nbsp;Demonstrating use of listeners.<br>Dec 7, 2010 3:38:30 PM org.infinispan.factories.AbstractComponentRegistry internalStart<br>INFO: Infinispan version: Infinispan 'Pagoa' 5.0.0-SNAPSHOT<br>Exception in thread "main" org.infinispan.notifications.IncorrectListenerException: Cache listener class MUST be public!<br><span class="Apple-tab-span" style="white-space:pre">        </span>at org.infinispan.notifications.AbstractListenerImpl.testListenerClassValidity(AbstractListenerImpl.java:144)<br><span class="Apple-tab-span" style="white-space:pre">        </span>at org.infinispan.notifications.AbstractListenerImpl.validateAndAddListenerInvocation(AbstractListenerImpl.java:106)<br><span class="Apple-tab-span" style="white-space:pre">        </span>at org.infinispan.notifications.AbstractListenerImpl.addListener(AbstractListenerImpl.java:87)<br><span class="Apple-tab-span" style="white-space:pre">        </span>at org.infinispan.CacheDelegate.addListener(CacheDelegate.java:280)<br><span class="Apple-tab-span" style="white-space:pre">        </span>at com.acme.Application.registeringListeners(Application.java:81)<br><span class="Apple-tab-span" style="white-space:pre">        </span>at com.acme.Application.main(Application.java:99)<br><br>It appears that MyListener us is not declared as public. Where's the code for this to change it?<br><br>Also, it'd be good if the exception indicated the actual class name that's not been public.<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">The sample application is a command-line one. &nbsp;To watch it in action, in your newly created project, do this:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>$ mvn install -Prun<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cheers<br></blockquote><blockquote type="cite">Manik<br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Manik Surtani<br></blockquote><blockquote type="cite"><a href="mailto:manik@jboss.org">manik@jboss.org</a><br></blockquote><blockquote type="cite">Lead, Infinispan<br></blockquote><blockquote type="cite">Lead, JBoss Cache<br></blockquote><blockquote type="cite"><a href="http://www.infinispan.org">http://www.infinispan.org</a><br></blockquote><blockquote type="cite"><a href="http://www.jbosscache.org">http://www.jbosscache.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">infinispan-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br></blockquote><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br></blockquote><br>--<br>Galder Zamarreņo<br>Sr. Software Engineer<br>Infinispan, JBoss Cache<br><br><br>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div>Lead, Infinispan</div><div>Lead, JBoss Cache</div><div><a href="http://www.infinispan.org">http://www.infinispan.org</a></div><div><a href="http://www.jbosscache.org">http://www.jbosscache.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>