You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff Jensen <je...@upstairstechnology.com> on 2005/07/17 14:45:35 UTC

RE: newbie : how to have a task (copying files...) done with Maven

Get to know well the plugins page:
http://maven.apache.org/reference/plugins/index.html

Everything in Maven is done through a plugin.

Read the docs well too:
http://maven.apache.org/
  Read all the documents in "Getting Started" and "User's Guide" sections.
 

-----Original Message-----
From: ah2 sur communication-langages-et-systemes.com
[mailto:ah2@communication-langages-et-systemes.com] 
Sent: Sunday, July 17, 2005 7:56 AM
To: users@maven.apache.org
Subject: newbie : how to have a task (copying files...) done with Maven


Hello,

To prepare the build of my project, I regularly need to "do some cleaning of
the folders" : delete, move and copy of files.

How do I do that with maven ?
I thought of writting an ant task, but is there a way to do it directly in
maven ?

If I make a "build ant file", how do I get it executed in maven ?

Thanks,
Antoine




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE : newbie : how to have a task (copying files...) done with Maven

Posted by "ah2 sur communication-langages-et-systemes.com" <ah...@communication-langages-et-systemes.com>.
I have followed the advice to build a plugin (maven 2)... And not to use
ant inside maven...
But i am struggling with the hello plugin example.
see my other post... If any idea ?
It seems m2 can't find the marmalade component. 
It is difficult to know if it is on my side, or if the snapshot "may" be
not working... And I have litle experience to diagnostic these
problems...
Thank you.
Antoine

-----Message d'origine-----
De : Arnaud HERITIER [mailto:aheritier@gmail.com] 
Envoyé : dimanche 17 juillet 2005 18:57
À : 'Maven Users List'
Objet : RE: newbie : how to have a task (copying files...) done with
Maven


If what you should done isn't done in an existing plugin, you can either
create your own plugin as Jeff said, or create a custom goal or extend
an existing one through the maven.xml file :

http://maven.apache.org/reference/scripting.html

Arnaud
 

> -----Message d'origine-----
> De : Jeff Jensen [mailto:jeffjensen@upstairstechnology.com]
> Envoyé : dimanche 17 juillet 2005 14:46
> À : 'Maven Users List'
> Objet : RE: newbie : how to have a task (copying files...) 
> done with Maven
> 
> Get to know well the plugins page: 
> http://maven.apache.org/reference/plugins/index.html
> 
> Everything in Maven is done through a plugin.
> 
> Read the docs well too:
> http://maven.apache.org/
>   Read all the documents in "Getting Started" and "User's
> Guide" sections.
>  
> 
> -----Original Message-----
> From: ah2 sur communication-langages-et-systemes.com
> [mailto:ah2@communication-langages-et-systemes.com]
> Sent: Sunday, July 17, 2005 7:56 AM
> To: users@maven.apache.org
> Subject: newbie : how to have a task (copying files...) done
> with Maven
> 
> 
> Hello,
> 
> To prepare the build of my project, I regularly need to "do
> some cleaning of
> the folders" : delete, move and copy of files.
> 
> How do I do that with maven ?
> I thought of writting an ant task, but is there a way to do
> it directly in
> maven ?
> 
> If I make a "build ant file", how do I get it executed in maven ?
> 
> Thanks,
> Antoine
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: newbie : how to have a task (copying files...) done with Maven

Posted by Arnaud HERITIER <ah...@gmail.com>.
If what you should done isn't done in an existing plugin, you can either create your own plugin as Jeff said, or create a custom
goal or extend an existing one through the maven.xml file :

http://maven.apache.org/reference/scripting.html

Arnaud
 

> -----Message d'origine-----
> De : Jeff Jensen [mailto:jeffjensen@upstairstechnology.com] 
> Envoyé : dimanche 17 juillet 2005 14:46
> À : 'Maven Users List'
> Objet : RE: newbie : how to have a task (copying files...) 
> done with Maven
> 
> Get to know well the plugins page:
> http://maven.apache.org/reference/plugins/index.html
> 
> Everything in Maven is done through a plugin.
> 
> Read the docs well too:
> http://maven.apache.org/
>   Read all the documents in "Getting Started" and "User's 
> Guide" sections.
>  
> 
> -----Original Message-----
> From: ah2 sur communication-langages-et-systemes.com
> [mailto:ah2@communication-langages-et-systemes.com]
> Sent: Sunday, July 17, 2005 7:56 AM
> To: users@maven.apache.org
> Subject: newbie : how to have a task (copying files...) done 
> with Maven
> 
> 
> Hello,
> 
> To prepare the build of my project, I regularly need to "do 
> some cleaning of
> the folders" : delete, move and copy of files.
> 
> How do I do that with maven ?
> I thought of writting an ant task, but is there a way to do 
> it directly in
> maven ?
> 
> If I make a "build ant file", how do I get it executed in maven ?
> 
> Thanks,
> Antoine
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org