<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for pointing this out. &nbsp;Pls try with archetype version 1.0.2, it should be fixed now.<div><br><div><div>On 8 Dec 2010, at 14:06, Michal Linhard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div text="#000000" bgcolor="#ffffff">
Hi Manik, I had a small issue:<br>
<br>
I did<br>
<br>
mvn archetype:generate \<br>
&nbsp;&nbsp;&nbsp; -DarchetypeGroupId=org.infinispan.archetypes \<br>
&nbsp;&nbsp;&nbsp; -DarchetypeArtifactId=newproject-archetype \<br>
&nbsp;&nbsp;&nbsp; -DarchetypeVersion=1.0.1 \<br>
&nbsp;&nbsp;&nbsp;
-DarchetypeRepository=<a class="moz-txt-link-freetext" href="http://repository.jboss.org/nexus/content/groups/public">http://repository.jboss.org/nexus/content/groups/public</a><br>
<br>
supplied these values:<br>
Define value for property 'groupId': : org.jboss.test<br>
Define value for property 'artifactId': : testthing1<br>
Define value for property 'version': 1.0-SNAPSHOT: <br>
Define value for property 'package': org.jboss.test: org.jboss.different<br>
<br>
it created org/jboss/different/Application.java<br>
but with <br>
package org.jboss.test;<br>
declared inside of the file.<br>
<br>
Cheers,<br>
Michal<br>
<br>
On 12/07/2010 05:27 PM, Manik Surtani wrote:
<blockquote cite="mid:DD2B354D-7903-4BCF-B4E3-90D72A9C6C12@jboss.org" type="cite">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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" href="http://www.infinispan.org/">http://www.infinispan.org</a><br>
    </blockquote>
    <blockquote type="cite"><a moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
    </blockquote>
    <blockquote type="cite"><a moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
    </div>
  </blockquote>
  </div>
  <br>
  <div><span class="Apple-style-span" style="font-size: 12px;">
  <div style="word-wrap: break-word;">
  <div>--</div>
  <div>Manik Surtani</div>
  <div><a moz-do-not-send="true" href="mailto:manik@jboss.org">manik@jboss.org</a></div>
  <div>Lead, Infinispan</div>
  <div>Lead, JBoss Cache</div>
  <div><a moz-do-not-send="true" href="http://www.infinispan.org/">http://www.infinispan.org</a></div>
  <div><a moz-do-not-send="true" 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>
  <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
infinispan-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Michal Linhard                    
Quality Assurance Engineer
                                      
Red Hat Czech s.r.o.
Purkynova 99 612 45 Brno, Czech Republic
phone: +420 532 294 320 ext. 62320
mobile: +420 728 626 363</pre>
</div>

_______________________________________________<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</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><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"></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>