I am trying to use the maven to mount the Listener component, however I am getting this
following error:
mvn clean install
[ERROR] Failed to execute goal on project commentListener: Could not resolve dep
endencies for project com.energisa:commentListener:jar:1.0-SNAPSHOT: The followi
ng artifacts could not be resolved: org.xwiki.platform:xwiki-platform-oldcore:ja
r:5.4.4, org.xwiki.platform:xwiki-platform-mailsender:jar:5.4.4: Could not find
artifact org.xwiki.platform:xwiki-platform-oldcore:jar:5.4.4 in central (http://
repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
Do I need to configure the repositories in Maven, in order to make it download from the
right place?
Thank you.
Danilo
Grupo Energisa
Danilo Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.oliveira(a)energisa.com.br | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue
ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do
computador.
Privileged and confidential. If this message has been received by mistake, do not disclose
or copy its contents. Please notify sender and delete immediately.
-----Mensagem original-----
De: users [mailto:users-bounces@xwiki.org] Em nome de Marius Dumitru Florea
Enviada em: sexta-feira, 30 de maio de 2014 04:32
Para: XWiki Users
Assunto: Re: [xwiki-users] New Notifications Tutorial (a.k.a Event Listener)
On Fri, May 30, 2014 at 9:32 AM, vincent(a)massol.net <vincent(a)massol.net> wrote:
On 30 May 2014 at 07:39:44, Marius Dumitru Florea
(mariusdumitru.florea@xwiki.com(mailto:mariusdumitru.florea@xwiki.com)) wrote:
Event listeners should not keep a reference to
the XWiki context from
when they were created. XWiki context is created per request while
the event listener is used on multiple requests. I updated the
LoggingEventListener.
Thanks but I think it’s better to get it from the
passed “data” parameters which represents the XWikiContext.
I didn't say otherwise :) , even if you get it from the passed "data"
or from the execution context you should still not keep a reference to the XWiki context
between events.
Also
http://platform.xwiki.org/xwiki/bin/download/DevGuide/WritingEventListenerT…
needs to be updated too.
Thanks
-Vincent
Thanks,
Marius
On Thu, May 29, 2014 at 7:39 PM, vincent(a)massol.net wrote:
Dear XWiki users,
Since I’ve seen several questions recently on the list related to XWiki events, I’ve
spent several hours rewriting the XWiki Notifications Tutorial here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingEventListe
nerTutorial
You’ll learn for example:
- Adding content to pages on save
- Log when a document is modified
- Send a mail whenever a comment is added
Enjoy!
Thanks
-Vincent
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users