[infinispan-dev] Quick start maven archetype (ISPN-817)

Manik Surtani manik at jboss.org
Thu Dec 9 07:35:24 EST 2010


Thanks for pointing this out.  Pls try with archetype version 1.0.2, it should be fixed now.

On 8 Dec 2010, at 14:06, Michal Linhard wrote:

> Hi Manik, I had a small issue:
> 
> I did
> 
> mvn archetype:generate \
>     -DarchetypeGroupId=org.infinispan.archetypes \
>     -DarchetypeArtifactId=newproject-archetype \
>     -DarchetypeVersion=1.0.1 \
>     -DarchetypeRepository=http://repository.jboss.org/nexus/content/groups/public
> 
> supplied these values:
> Define value for property 'groupId': : org.jboss.test
> Define value for property 'artifactId': : testthing1
> Define value for property 'version': 1.0-SNAPSHOT: 
> Define value for property 'package': org.jboss.test: org.jboss.different
> 
> it created org/jboss/different/Application.java
> but with 
> package org.jboss.test;
> declared inside of the file.
> 
> Cheers,
> Michal
> 
> On 12/07/2010 05:27 PM, Manik Surtani wrote:
>> 
>> Feedback taken on board.
>> 
>> A number of refactorings have now happened here:
>> 
>> * Renamed archetypes
>> * Move to Archetype Plugin 2.0
>> * Created a testcase archetype
>> * Rudimentary docs
>> 
>> Give it a spin!  Details are here:
>> 
>> http://community.jboss.org/wiki/InfinispanMavenArchetypes
>> 
>> Let me know what you think
>> 
>> Cheers
>> Manik
>> 
>> On 7 Dec 2010, at 14:41, Galder Zamarreño wrote:
>> 
>>> 
>>> On Dec 6, 2010, at 8:06 PM, Manik Surtani wrote:
>>> 
>>>> Early days yet, but if you feel like playing around with it, do:
>>>> 
>>>> $ mvn archetype:create \
>>>>  -DarchetypeGroupId=org.infinispan \
>>>>  -DarchetypeArtifactId=sample-project \
>>>>  -DarchetypeVersion=5.0.0-SNAPSHOT \
>>>>  -DgroupId=<YOUR_GROUP_ID> \
>>>>  -DartifactId=<YOUR_ARTIFACT_ID>
>>>> 
>>>> This will create a skeleton project all set up to work with Infinispan 5.0.0-SNAPSHOT.  Replace 5.0.0-SNAPSHOT to 4.2.0-SNAPSHOT for a 4.2.0-ready project.  The skeleton project will include some sample configs as well.  Pls have a look and provide feedback!  
>>> 
>>> Just run the archetype and tried to run Application from IDEA and got this:
>>> 
>>> 4.  Demonstrating use of listeners.
>>> Dec 7, 2010 3:38:30 PM org.infinispan.factories.AbstractComponentRegistry internalStart
>>> INFO: Infinispan version: Infinispan 'Pagoa' 5.0.0-SNAPSHOT
>>> Exception in thread "main" org.infinispan.notifications.IncorrectListenerException: Cache listener class MUST be public!
>>>  at org.infinispan.notifications.AbstractListenerImpl.testListenerClassValidity(AbstractListenerImpl.java:144)
>>>  at org.infinispan.notifications.AbstractListenerImpl.validateAndAddListenerInvocation(AbstractListenerImpl.java:106)
>>>  at org.infinispan.notifications.AbstractListenerImpl.addListener(AbstractListenerImpl.java:87)
>>>  at org.infinispan.CacheDelegate.addListener(CacheDelegate.java:280)
>>>  at com.acme.Application.registeringListeners(Application.java:81)
>>>  at com.acme.Application.main(Application.java:99)
>>> 
>>> It appears that MyListener us is not declared as public. Where's the code for this to change it?
>>> 
>>> Also, it'd be good if the exception indicated the actual class name that's not been public.
>>> 
>>>> 
>>>> The sample application is a command-line one.  To watch it in action, in your newly created project, do this:
>>>> 
>>>>  $ mvn install -Prun
>>>> 
>>>> Cheers
>>>> Manik
>>>> --
>>>> Manik Surtani
>>>> manik at jboss.org
>>>> Lead, Infinispan
>>>> Lead, JBoss Cache
>>>> http://www.infinispan.org
>>>> http://www.jbosscache.org
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> infinispan-dev mailing list
>>>> infinispan-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>> 
>>> --
>>> Galder Zamarreño
>>> Sr. Software Engineer
>>> Infinispan, JBoss Cache
>>> 
>>> 
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> infinispan-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> 
>> --
>> Manik Surtani
>> manik at jboss.org
>> Lead, Infinispan
>> Lead, JBoss Cache
>> http://www.infinispan.org
>> http://www.jbosscache.org
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 
> 
> -- 
> 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
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20101209/bfc08195/attachment.html 


More information about the infinispan-dev mailing list