maven-dependency-plugin:copy-dependencies sometimes does not copy file in parallel build

2018-05-30 Thread Vivi An
Hi All,

Using maven-dependency-plugin to download some dependencies to indicated target 
folder. Which works fine under serial build. Under parallel build,  
copy-dependency-to-test works as expected but did not see 
copy-byteman-dependency gets executed. Is there any restriction of using 
maven-dependency-plugin: copy-dependencies under parallel build?

Thank you~

Regards,

~ Vivi



org.jboss.byteman
byteman
${byteman.version}



org.jboss.byteman
byteman-submit
${byteman.version}






maven-dependency-plugin


copy-byteman-dependency
install

copy-dependencies


true

${project.basedir/byteman/lib



copy-dependency-to-test
install

copy-dependencies


true

${project.basedir/test/lib/java








Re: copy file renaming to WEB-INF

2015-05-19 Thread Greg Trasuk

Hello Aitor:

Using profiles is really the wrong way to do this.  You are better off to 
realize that you have three separate artifacts that are being generated:
- The “.war” file for ‘pre’
- The “.war” file for ‘local’
- The “.war” file for ‘prod’.

You should treat these as separate artifacts, with a separate artifact-id, 
otherwise, how do you know that a given artifact was built using the correct 
profile?  You don’t want to risk installing your ‘pre’ build into production, 
do you?

That being the case, you should have three separate assembly projects that 
generate the separate artifacts.

Cheers,

Greg Trasuk
Web Age Solutions http://www.webagesolutions.com 


> On May 19, 2015, at 2:56 PM, Aitor Iturriondobeitia  
> wrote:
> 
> hello
> 
> i have some files into one directory:
> jboss-ejb-client_local.xml
> jboss-ejb-client_pre.xml
> jboss-ejb-client_prod.xml
> 
> i have into my pom some profiles, one for each file (local, pre.  prod)
> if i compiel for one profile, for example, pre, i need to copy the pre file
> (jboos-ejb-client_pre.xml to WEB-INF with the name jboss-ejb-client.xml
> 
> can i make this using maven?
> 
> can you help me?
> 
> thanks



copy file renaming to WEB-INF

2015-05-19 Thread Aitor Iturriondobeitia
hello

i have some files into one directory:
jboss-ejb-client_local.xml
jboss-ejb-client_pre.xml
jboss-ejb-client_prod.xml

i have into my pom some profiles, one for each file (local, pre.  prod)
if i compiel for one profile, for example, pre, i need to copy the pre file
(jboos-ejb-client_pre.xml to WEB-INF with the name jboss-ejb-client.xml

can i make this using maven?

can you help me?

thanks


AW: AW: copy file from dependent jar

2009-09-29 Thread Entner Harald
Thx all for your input!

i'm currently using maven-dependency-plugin and unpack. It works perfectly, 
when one wants to extract a file from a dependent jar. Here's the code snipped, 
for those who are searching for a similar solution: Easy when you know the 
right plugin for the right job :). Especially because all logic is situated in 
parent poms (besides the special cases) - as i like it. 



org.apache.maven.plugins
maven-dependency-plugin


unpack
generate-sources

unpack





de.afb

afbCommon

1.0-SNAPSHOT

${temp.directory}

*.xsd








> That's a reasonable solution (though I'm not sure why copying to a  
> defined location is needed, you should be able to refer to it from the  
> dependency:unpack location). 

@Brett: yes indeed, that was my plan. The temp directory IS the predefined 
position. 


-Ursprüngliche Nachricht-
Von: Brett Porter [mailto:br...@porterclan.net] Im Auftrag von Brett Porter
Gesendet: Montag, 28. September 2009 01:29
An: Maven Users List
Betreff: Re: AW: copy file from dependent jar

On 25/09/2009, at 6:24 PM, Entner Harald wrote:

> The ant script has in my opinion a bad side effect. The structure is  
> not allowed to change, so i would prefer to use dependencies so  
> structure changes would have no side effects.
>
> Currently i use the maven-dependency-plugin that copies the file to  
> a defined position and wrote a plugin that handles the extraction  
> and the replacement.

That's a reasonable solution (though I'm not sure why copying to a  
defined location is needed, you should be able to refer to it from the  
dependency:unpack location).

However, the CXF codegen plugin also has an option to download the  
WSDL from a Maven artifact: 
http://cwiki.apache.org/CXF20DOC/maven-cxf-codegen-plugin-wsdl-to-java.html 
  (at the bottom) which will work better for you.

- Brett


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


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



Re: AW: copy file from dependent jar

2009-09-27 Thread Daniel Kulp
On Sun September 27 2009 7:28:48 pm Brett Porter wrote:
> On 25/09/2009, at 6:24 PM, Entner Harald wrote:
> > The ant script has in my opinion a bad side effect. The structure is
> > not allowed to change, so i would prefer to use dependencies so
> > structure changes would have no side effects.
> >
> > Currently i use the maven-dependency-plugin that copies the file to
> > a defined position and wrote a plugin that handles the extraction
> > and the replacement.
> 
> That's a reasonable solution (though I'm not sure why copying to a
> defined location is needed, you should be able to refer to it from the
> dependency:unpack location).
> 
> However, the CXF codegen plugin also has an option to download the
> WSDL from a Maven artifact:
>  http://cwiki.apache.org/CXF20DOC/maven-cxf-codegen-plugin-wsdl-to-java.htm
> l (at the bottom) which will work better for you.

One complication was that code was just added to CXF two weeks ago.   It's not 
released yet.   SNAPSHOTs should have it though.

-- 
Daniel Kulp
dk...@apache.org
http://www.dankulp.com/blog

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



Re: AW: copy file from dependent jar

2009-09-27 Thread Brett Porter

On 25/09/2009, at 6:24 PM, Entner Harald wrote:

The ant script has in my opinion a bad side effect. The structure is  
not allowed to change, so i would prefer to use dependencies so  
structure changes would have no side effects.


Currently i use the maven-dependency-plugin that copies the file to  
a defined position and wrote a plugin that handles the extraction  
and the replacement.


That's a reasonable solution (though I'm not sure why copying to a  
defined location is needed, you should be able to refer to it from the  
dependency:unpack location).


However, the CXF codegen plugin also has an option to download the  
WSDL from a Maven artifact: http://cwiki.apache.org/CXF20DOC/maven-cxf-codegen-plugin-wsdl-to-java.html 
 (at the bottom) which will work better for you.


- Brett


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



AW: copy file from dependent jar

2009-09-25 Thread Entner Harald
Hi Brett, 

Yes, Resource1.xsd is part of Proj1. And there is a dependency between Proj3 
and Proj1. 

Maybe i should explain it differently: 

I need to run wsdl2java (i use the cxf plugin for that) which needs the 
Resource1.xsd to be able to run correctly. Additionally some namespaces have to 
be adapted. 

So i need to extract one file from a dependent artifact, place it in a project 
specific directory and do some replacements. 

The build script (in ant) looks like this: 










The ant script has in my opinion a bad side effect. The structure is not 
allowed to change, so i would prefer to use dependencies so structure changes 
would have no side effects. 

Currently i use the maven-dependency-plugin that copies the file to a defined 
position and wrote a plugin that handles the extraction and the replacement.

regards,

Harald 

-Ursprüngliche Nachricht-
Von: Brett Porter [mailto:br...@porterclan.net] Im Auftrag von Brett Porter
Gesendet: Freitag, 25. September 2009 03:55
An: Maven Users List
Betreff: Re: copy file from dependent jar

I'm a bit lost. Is Resource1 already included in Proj1 and is Proj1 a  
dependency of Proj3?

- Brett

On 24/09/2009, at 8:01 PM, Entner Harald wrote:

> Hello,
>
>
>
> i face the following problem. Currently i'm refactoring a project so
> that i can move from ant to maven. It works rather well (i have done
> this in my old company as well), but some special cases occur. Most of
> them i could fix, but one causes me a headache.
>
>
>
> This is the simple view of the project layout:
>
>
>
> Proj1
>
>Resource1.xsd
>
> Proj2
>
> Proj3
>
>
>
>
>
> The thing is, that Proj3 (actually all Webservices) needs Resource1
> (besides it should do some replacements on the content of  
> Resource1.xd).
> So far ant copies the file using relative paths. I would really like  
> to
> avoid that (it would be easy with relative paths), because it adds a  
> lot
> of dependencies. (the project structure is much bigger and has a lot  
> of
> subprojects, the file is needed in many places).
>
>
>
> So one solution would be to use the maven-resource-plugin and let it
> copy the resource (additionally it could do the replacement).
> Unfortunately, it only works with paths, but not with dependent
> projects. Or am i missing something?
>
>
>
>
>
> The solution i am thinking about is to use the dependency plugin and
> copy the resource first (it can handle dependent jars) and place it  
> in a
> predefined-(project)-place (i think i can put it into the parent pom,
> and hopefully this will work under all circumstances). Then i could  
> use
> the resource-plugin to do the rest and so i only have the resource
> plugin inside the project poms.
>
>
>
> The bad thing is that i need a second parent. Because Proj1 should not
> execute dependency:copy (as it is depends on itself). I could leave  
> the
> phase undefined, but then i would have to add the plugin in every
> project pom, which i would like to avoid. I think i could live with  
> this
> solution, but i m wondering if nobody had the same problem and maybe
> there is a better solution.
>
>
>
> Every input is appreciated.
>
>
>
> regards, Harald
>


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


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



Re: copy file from dependent jar

2009-09-24 Thread Brett Porter
I'm a bit lost. Is Resource1 already included in Proj1 and is Proj1 a  
dependency of Proj3?


- Brett

On 24/09/2009, at 8:01 PM, Entner Harald wrote:


Hello,



i face the following problem. Currently i'm refactoring a project so
that i can move from ant to maven. It works rather well (i have done
this in my old company as well), but some special cases occur. Most of
them i could fix, but one causes me a headache.



This is the simple view of the project layout:



Proj1

   Resource1.xsd

Proj2

Proj3





The thing is, that Proj3 (actually all Webservices) needs Resource1
(besides it should do some replacements on the content of  
Resource1.xd).
So far ant copies the file using relative paths. I would really like  
to
avoid that (it would be easy with relative paths), because it adds a  
lot
of dependencies. (the project structure is much bigger and has a lot  
of

subprojects, the file is needed in many places).



So one solution would be to use the maven-resource-plugin and let it
copy the resource (additionally it could do the replacement).
Unfortunately, it only works with paths, but not with dependent
projects. Or am i missing something?





The solution i am thinking about is to use the dependency plugin and
copy the resource first (it can handle dependent jars) and place it  
in a

predefined-(project)-place (i think i can put it into the parent pom,
and hopefully this will work under all circumstances). Then i could  
use

the resource-plugin to do the rest and so i only have the resource
plugin inside the project poms.



The bad thing is that i need a second parent. Because Proj1 should not
execute dependency:copy (as it is depends on itself). I could leave  
the

phase undefined, but then i would have to add the plugin in every
project pom, which i would like to avoid. I think i could live with  
this

solution, but i m wondering if nobody had the same problem and maybe
there is a better solution.



Every input is appreciated.



regards, Harald




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



copy file from dependent jar

2009-09-24 Thread Entner Harald
Hello,

 

i face the following problem. Currently i'm refactoring a project so
that i can move from ant to maven. It works rather well (i have done
this in my old company as well), but some special cases occur. Most of
them i could fix, but one causes me a headache.

 

This is the simple view of the project layout: 

 

Proj1

Resource1.xsd

Proj2

Proj3

 

 

The thing is, that Proj3 (actually all Webservices) needs Resource1
(besides it should do some replacements on the content of Resource1.xd).
So far ant copies the file using relative paths. I would really like to
avoid that (it would be easy with relative paths), because it adds a lot
of dependencies. (the project structure is much bigger and has a lot of
subprojects, the file is needed in many places). 

 

So one solution would be to use the maven-resource-plugin and let it
copy the resource (additionally it could do the replacement).
Unfortunately, it only works with paths, but not with dependent
projects. Or am i missing something? 

 

 

The solution i am thinking about is to use the dependency plugin and
copy the resource first (it can handle dependent jars) and place it in a
predefined-(project)-place (i think i can put it into the parent pom,
and hopefully this will work under all circumstances). Then i could use
the resource-plugin to do the rest and so i only have the resource
plugin inside the project poms.

 

The bad thing is that i need a second parent. Because Proj1 should not
execute dependency:copy (as it is depends on itself). I could leave the
phase undefined, but then i would have to add the plugin in every
project pom, which i would like to avoid. I think i could live with this
solution, but i m wondering if nobody had the same problem and maybe
there is a better solution.  

 

Every input is appreciated. 

 

regards, Harald 



Re: How to copy file(.jks) KEEPING ORIGINAL FILE DATE in maven

2009-06-09 Thread Mick Knutson
Have you tried an assembly instead?

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Tue, Jun 9, 2009 at 9:58 AM, Flores, Cesar (Genworth, Contractor) <
cesar.flo...@genworth.com> wrote:

>  Hello,
>
> I'm trying to copy with maven a file (*.jks) so that file keeps the
> original file date , but no success till now, the copied file get the
> current date not the original one.
>
> Have someone faced something like this? Any advises?
>
> Thanks for your kind Help
>
> I'm using something like next:
>
>
>
> ·  .
>
> · .
>
> · .
>
> ·  
>
> · myApp
>
> ·
> 
> src/main/filters/filter-${env}.properties
>
> ·  
>
> ·  
>
> ·  src/main/resources
>
> ·  true
>
> ·  
>
> ·**/*.jks
>
> ·  
>
> ·  
>
> ·  
>
> ·  src/main/resources
>
> ·  false
>
> ·  
>
> ·**/*.jks
>
> ·  
>
> ·  
>
> · .
>
> · .
>
> · .
>


How to copy file(.jks) KEEPING ORIGINAL FILE DATE in maven

2009-06-09 Thread Flores, Cesar (Genworth, Contractor)
Hello, 

I'm trying to copy with maven a file (*.jks) so that file keeps the
original file date , but no success till now, the copied file get the
current date not the original one. 

Have someone faced something like this? Any advises? 

Thanks for your kind Help  

I'm using something like next:

 

*  .  

* .  

* .  

*

* myApp  

*
src/main/filters/filter-${env}.properties  

*

*

*  src/main/resources  

*  true  

*

***/*.jks 

*   

*   

*   

*  src/main/resources 

*  false 

*   

***/*.jks  

*

*

* .  

* .  

* .  



Re: Copy file

2007-06-29 Thread geirgp

Hi,

No, I have not found the answer yet. I actually worked around the problem
and changed the application so that the config file can be deployed at
runtime, a solution I found to be more flexible as it does not require  a
full rebuild.



Ahmet Aytekin wrote:
> 
> Hi,
> 
> Did you find an answer for your problem below? I am trying to do the 
> same thing here. I 'd appreciate it if anyone can answer this.
> 
> Regards,
> 
> 
> 
> 
> geirgp wrote:
>> Thanks for replying, but I can't see how configuring this plugin can help
>> me
>> copy a file during the process-sources phase. What I need is something
>> that
>> copies "config-customer1.xml" to "config.xml", and as far as I can see
>> this
>> plugin only handles inclusion/exclusion of files within a resource
>> directory. 
>>
>>
>>
>> Maria Odea Ching-2 wrote:
>>   
>>> In each of your profiles, you could define a separate  block 
>>> which contains which resources you want to be included in each profile 
>>> (using the  and  tags).
>>>
>>> You may want to take a look at this..
>>> http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
>>>
>>> Btw, the resources:resources goal of the maven-resources-plugin is 
>>> already bound to Maven's process-resources phase so when you do' mvn 
>>> install', its already executed.. you need not execute 'mvn 
>>> resources:resources'.
>>>
>>> -Deng
>>>
>>> Geir Gullestad Pettersen wrote:
>>> 
>>>> Is there a plugin to copy a specified file during the build process?
>>>>
>>>> In src/main/resources I have "config-customer1.xml", 
>>>> "config-customer2.xml",
>>>> "...3" and so on.. Depending on which profile I activate when running 
>>>> Maven
>>>> I need one of these files to be copied to 
>>>> "src/main/resources/config.xml" so
>>>> that the correct config for the given customer is used. Is that
>>>> possible?
>>>>
>>>>   
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> 
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Copy-file-tf3926772s177.html#a11367687
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Copy file

2007-06-28 Thread Nathan Maves

I think the following solution should work for you.

Here are two example profiles


   env-qa
   
   
   env
   qa
   
   
   
   qa
   
   

   
   env-prod
   
   
   env
   prod
   
   
   
   prod
   
   


and here are my resouces

   
   
   src/main/resources
   
   
   src/main/resources-${env}
   
   

and your directory structure would look like

/src/main
 /resources
 /resources-qa
 /resources-prod

place any env specific files in the qa or prod directories

then build via profile

  mvn package -p env-prod

or by env var

  mvn package -Denv=prod

Hope this helps

Nathan

On 6/28/07, Manos Batsis <[EMAIL PROTECTED]> wrote:



AFAIK this can only be done with the antrun plugin.

Ahmet Aytekin wrote:
> Hi,
>
> Did you find an answer for your problem below? I am trying to do the
> same thing here. I 'd appreciate it if anyone can answer this.
>
> Regards,
>
>
>
>
> geirgp wrote:
>> Thanks for replying, but I can't see how configuring this plugin can
>> help me
>> copy a file during the process-sources phase. What I need is something
>> that
>> copies "config-customer1.xml" to "config.xml", and as far as I can see
>> this
>> plugin only handles inclusion/exclusion of files within a resource
>> directory.
>>
>>
>> Maria Odea Ching-2 wrote:
>>
>>> In each of your profiles, you could define a separate  block
>>> which contains which resources you want to be included in each
>>> profile (using the  and  tags).
>>>
>>> You may want to take a look at this..
>>>
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
>>>
>>>
>>> Btw, the resources:resources goal of the maven-resources-plugin is
>>> already bound to Maven's process-resources phase so when you do' mvn
>>> install', its already executed.. you need not execute 'mvn
>>> resources:resources'.
>>>
>>> -Deng
>>>
>>> Geir Gullestad Pettersen wrote:
>>>
 Is there a plugin to copy a specified file during the build process?

 In src/main/resources I have "config-customer1.xml",
 "config-customer2.xml",
 "...3" and so on.. Depending on which profile I activate when
 running Maven
 I need one of these files to be copied to
 "src/main/resources/config.xml" so
 that the correct config for the given customer is used. Is that
 possible?


>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Copy file

2007-06-28 Thread Manos Batsis


AFAIK this can only be done with the antrun plugin.

Ahmet Aytekin wrote:

Hi,

Did you find an answer for your problem below? I am trying to do the 
same thing here. I 'd appreciate it if anyone can answer this.


Regards,




geirgp wrote:
Thanks for replying, but I can't see how configuring this plugin can 
help me
copy a file during the process-sources phase. What I need is something 
that
copies "config-customer1.xml" to "config.xml", and as far as I can see 
this

plugin only handles inclusion/exclusion of files within a resource
directory.


Maria Odea Ching-2 wrote:
 
In each of your profiles, you could define a separate  block 
which contains which resources you want to be included in each 
profile (using the  and  tags).


You may want to take a look at this..
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html 



Btw, the resources:resources goal of the maven-resources-plugin is 
already bound to Maven's process-resources phase so when you do' mvn 
install', its already executed.. you need not execute 'mvn 
resources:resources'.


-Deng

Geir Gullestad Pettersen wrote:
   

Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", 
"config-customer2.xml",
"...3" and so on.. Depending on which profile I activate when 
running Maven
I need one of these files to be copied to 
"src/main/resources/config.xml" so
that the correct config for the given customer is used. Is that 
possible?


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Copy file

2007-06-28 Thread Ahmet Aytekin

Hi,

Did you find an answer for your problem below? I am trying to do the 
same thing here. I 'd appreciate it if anyone can answer this.


Regards,




geirgp wrote:

Thanks for replying, but I can't see how configuring this plugin can help me
copy a file during the process-sources phase. What I need is something that
copies "config-customer1.xml" to "config.xml", and as far as I can see this
plugin only handles inclusion/exclusion of files within a resource
directory. 




Maria Odea Ching-2 wrote:
  
In each of your profiles, you could define a separate  block 
which contains which resources you want to be included in each profile 
(using the  and  tags).


You may want to take a look at this..
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

Btw, the resources:resources goal of the maven-resources-plugin is 
already bound to Maven's process-resources phase so when you do' mvn 
install', its already executed.. you need not execute 'mvn 
resources:resources'.


-Deng

Geir Gullestad Pettersen wrote:


Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", 
"config-customer2.xml",
"...3" and so on.. Depending on which profile I activate when running 
Maven
I need one of these files to be copied to 
"src/main/resources/config.xml" so

that the correct config for the given customer is used. Is that possible?

  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


Re: Copy file

2007-06-21 Thread Stephen Coy

Hi,

There's a couple of approaches to this:

1) use separate resources directories for each customer, with each  
one containing a config.xml. Then configure a resources block in each  
profile that points at the appropriate directory.


2) use a single config file that has its values specified as property  
values (using ${property.name} notation. Specify the property values  
in each profile and configure the main resources block to use filter  
copying.


Cheers,

Steve Coy


On 15/06/2007, at 7:29 PM, Geir Gullestad Pettersen wrote:


Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", "config- 
customer2.xml",
"...3" and so on.. Depending on which profile I activate when  
running Maven
I need one of these files to be copied to "src/main/resources/ 
config.xml" so
that the correct config for the given customer is used. Is that  
possible?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Copy file

2007-06-21 Thread Maria Odea Ching

Hi,

Sorry, I misread your previous email. I thought it was about using a 
different config file for every profile.
Anyway, I don't know of any plugin that can be used for what you wanted 
to do..


-Deng

geirgp wrote:

Thanks for replying, but I can't see how configuring this plugin can help me
copy a file during the process-sources phase. What I need is something that
copies "config-customer1.xml" to "config.xml", and as far as I can see this
plugin only handles inclusion/exclusion of files within a resource
directory. 




Maria Odea Ching-2 wrote:
  
In each of your profiles, you could define a separate  block 
which contains which resources you want to be included in each profile 
(using the  and  tags).


You may want to take a look at this..
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

Btw, the resources:resources goal of the maven-resources-plugin is 
already bound to Maven's process-resources phase so when you do' mvn 
install', its already executed.. you need not execute 'mvn 
resources:resources'.


-Deng

Geir Gullestad Pettersen wrote:


Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", 
"config-customer2.xml",
"...3" and so on.. Depending on which profile I activate when running 
Maven
I need one of these files to be copied to 
"src/main/resources/config.xml" so

that the correct config for the given customer is used. Is that possible?

  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Copy file

2007-06-17 Thread geirgp

Thanks for replying, but I can't see how configuring this plugin can help me
copy a file during the process-sources phase. What I need is something that
copies "config-customer1.xml" to "config.xml", and as far as I can see this
plugin only handles inclusion/exclusion of files within a resource
directory. 



Maria Odea Ching-2 wrote:
> 
> In each of your profiles, you could define a separate  block 
> which contains which resources you want to be included in each profile 
> (using the  and  tags).
> 
> You may want to take a look at this..
> http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
> 
> Btw, the resources:resources goal of the maven-resources-plugin is 
> already bound to Maven's process-resources phase so when you do' mvn 
> install', its already executed.. you need not execute 'mvn 
> resources:resources'.
> 
> -Deng
> 
> Geir Gullestad Pettersen wrote:
>> Is there a plugin to copy a specified file during the build process?
>>
>> In src/main/resources I have "config-customer1.xml", 
>> "config-customer2.xml",
>> "...3" and so on.. Depending on which profile I activate when running 
>> Maven
>> I need one of these files to be copied to 
>> "src/main/resources/config.xml" so
>> that the correct config for the given customer is used. Is that possible?
>>
> 
> 
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Copy-file-tf3926772s177.html#a11168077
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: copy file in maven

2007-06-15 Thread Ralf Quebbemann
Files can also be copied locally with the wagon-maven-plugin (use file protocol 
instead of scp). BTW, the plugin is able to copy multiple files, because it 
takes an input directory as argument. Filtering or multiple source/destination 
directories do not work currently.


I use this plugin for copying nightly builds using webdav protocol.

A configuration example using local file copy might be:


  myserverid
  target/assembly 
  file:///usr/local/share/myapplicationdir



Take care

Ralf

acec acec wrote:

But I do not need scp, I only need file copy on my
localhost.
:-(
Maybe I have to use ant plugin.

--- Bernd Bohmann <[EMAIL PROTECTED]> wrote:


Hello Jon,

just deployed a little bit documentation about the
wagon plugin.

http://myfaces.apache.org/wagon-maven-plugin

We are using this plugin to publish the nightly
builds to the nightly 
build download location.


Regards

Bernd

Jon Strayer wrote:

Is there any documentation on the wagon plugin?

On 6/14/07, Ralf Quebbemann <[EMAIL PROTECTED]> wrote:

Hi,

maybe it's not the best way to use the

recommended copy-maven-plugin.

Although
it does its job (and yes I wrote it) there are

plugins out there which

have
better capabilities.

You might want to check out the

wagon-maven-plugin from the MyFaces

project:

org.apache.myfaces.maven
wagon-maven-plugin
1.0.5

This plugin uses wagon. So copying to remote

destinations (scp, webdav,

etc..)
should be no problem.

The only drawback is, that it's not very

convenient. Currently it's not

possible
to copy more than one file. Wildcards are not

supported either.

Source code is available and I am sure patches

are welcome. So give it a

try.

However, the copy-maven-plugin works on local

filesystems but is not

maintained
anymore.

Ralf

Jeff Mutonho wrote:

On 6/14/07, Eric Redmond

<[EMAIL PROTECTED]> wrote:

Yeah, ant is the easiest way.

Eric


Or you can try this :



http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html






"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042



-

To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]



-

To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]







-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]






  Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger 
with Voice at http://ca.messenger.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: copy file in maven

2007-06-15 Thread acec acec
But I do not need scp, I only need file copy on my
localhost.
:-(
Maybe I have to use ant plugin.

--- Bernd Bohmann <[EMAIL PROTECTED]> wrote:

> Hello Jon,
> 
> just deployed a little bit documentation about the
> wagon plugin.
> 
> http://myfaces.apache.org/wagon-maven-plugin
> 
> We are using this plugin to publish the nightly
> builds to the nightly 
> build download location.
> 
> Regards
> 
> Bernd
> 
> Jon Strayer wrote:
> > Is there any documentation on the wagon plugin?
> > 
> > On 6/14/07, Ralf Quebbemann <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> maybe it's not the best way to use the
> recommended copy-maven-plugin.
> >> Although
> >> it does its job (and yes I wrote it) there are
> plugins out there which
> >> have
> >> better capabilities.
> >>
> >> You might want to check out the
> wagon-maven-plugin from the MyFaces
> >> project:
> >>
> >> org.apache.myfaces.maven
> >> wagon-maven-plugin
> >> 1.0.5
> >>
> >> This plugin uses wagon. So copying to remote
> destinations (scp, webdav,
> >> etc..)
> >> should be no problem.
> >>
> >> The only drawback is, that it's not very
> convenient. Currently it's not
> >> possible
> >> to copy more than one file. Wildcards are not
> supported either.
> >>
> >> Source code is available and I am sure patches
> are welcome. So give it a
> >> try.
> >>
> >> However, the copy-maven-plugin works on local
> filesystems but is not
> >> maintained
> >> anymore.
> >>
> >> Ralf
> >>
> >> Jeff Mutonho wrote:
> >> > On 6/14/07, Eric Redmond
> <[EMAIL PROTECTED]> wrote:
> >> >> Yeah, ant is the easiest way.
> >> >>
> >> >> Eric
> >> >>
> >> >
> >> > Or you can try this :
> >> >
> >> >
> >>
>
http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html
> 
> >>
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > "Don't take the name of root in vain."
> >> >
> >> > Jeff  Mutonho
> >> > Cape Town
> >> > South Africa
> >> >
> >> > GoogleTalk : ejbengine
> >> > Skype: ejbengine
> >> > Registered Linux user number 366042
> >> >
> >> >
>
-
> >> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>
> >>
>
-
> >> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>
> >>
> > 
> > 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



  Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger 
with Voice at http://ca.messenger.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Copy file

2007-06-15 Thread Maria Odea Ching
In each of your profiles, you could define a separate  block 
which contains which resources you want to be included in each profile 
(using the  and  tags).


You may want to take a look at this..
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

Btw, the resources:resources goal of the maven-resources-plugin is 
already bound to Maven's process-resources phase so when you do' mvn 
install', its already executed.. you need not execute 'mvn 
resources:resources'.


-Deng

Geir Gullestad Pettersen wrote:

Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", 
"config-customer2.xml",
"...3" and so on.. Depending on which profile I activate when running 
Maven
I need one of these files to be copied to 
"src/main/resources/config.xml" so

that the correct config for the given customer is used. Is that possible?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Copy file

2007-06-15 Thread Thorsten Heit
Hi,

> Is there a plugin to copy a specified file during the build process?
> 
> In src/main/resources I have "config-customer1.xml",
> "config-customer2.xml",
> "...3" and so on.. Depending on which profile I activate when running
> Maven
> I need one of these files to be copied to "src/main/resources/config.xml"
> so
> that the correct config for the given customer is used. Is that possible?

What about the antrun plugin? It should allow you to do what you want...


HTH

Thorsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Copy file

2007-06-15 Thread Maria Odea Ching
In each of your profiles, you could define a separate  block 
which contains which resources you want to be included in each profile 
(using the  and  tags).


You may want to take a look at this..
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

-Deng

Geir Gullestad Pettersen wrote:

Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", 
"config-customer2.xml",
"...3" and so on.. Depending on which profile I activate when running 
Maven
I need one of these files to be copied to 
"src/main/resources/config.xml" so

that the correct config for the given customer is used. Is that possible?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Copy file

2007-06-15 Thread Geir Gullestad Pettersen

Is there a plugin to copy a specified file during the build process?

In src/main/resources I have "config-customer1.xml", "config-customer2.xml",
"...3" and so on.. Depending on which profile I activate when running Maven
I need one of these files to be copied to "src/main/resources/config.xml" so
that the correct config for the given customer is used. Is that possible?


Re: copy file in maven

2007-06-14 Thread Bernd Bohmann

Hello Jon,

just deployed a little bit documentation about the wagon plugin.

http://myfaces.apache.org/wagon-maven-plugin

We are using this plugin to publish the nightly builds to the nightly 
build download location.


Regards

Bernd

Jon Strayer wrote:

Is there any documentation on the wagon plugin?

On 6/14/07, Ralf Quebbemann <[EMAIL PROTECTED]> wrote:


Hi,

maybe it's not the best way to use the recommended copy-maven-plugin.
Although
it does its job (and yes I wrote it) there are plugins out there which
have
better capabilities.

You might want to check out the wagon-maven-plugin from the MyFaces
project:

org.apache.myfaces.maven
wagon-maven-plugin
1.0.5

This plugin uses wagon. So copying to remote destinations (scp, webdav,
etc..)
should be no problem.

The only drawback is, that it's not very convenient. Currently it's not
possible
to copy more than one file. Wildcards are not supported either.

Source code is available and I am sure patches are welcome. So give it a
try.

However, the copy-maven-plugin works on local filesystems but is not
maintained
anymore.

Ralf

Jeff Mutonho wrote:
> On 6/14/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
>> Yeah, ant is the easiest way.
>>
>> Eric
>>
>
> Or you can try this :
>
>
http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html 


>
>
>
>
>
>
> "Don't take the name of root in vain."
>
> Jeff  Mutonho
> Cape Town
> South Africa
>
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: copy file in maven

2007-06-14 Thread Jon Strayer

Is there any documentation on the wagon plugin?

On 6/14/07, Ralf Quebbemann <[EMAIL PROTECTED]> wrote:


Hi,

maybe it's not the best way to use the recommended copy-maven-plugin.
Although
it does its job (and yes I wrote it) there are plugins out there which
have
better capabilities.

You might want to check out the wagon-maven-plugin from the MyFaces
project:

org.apache.myfaces.maven
wagon-maven-plugin
1.0.5

This plugin uses wagon. So copying to remote destinations (scp, webdav,
etc..)
should be no problem.

The only drawback is, that it's not very convenient. Currently it's not
possible
to copy more than one file. Wildcards are not supported either.

Source code is available and I am sure patches are welcome. So give it a
try.

However, the copy-maven-plugin works on local filesystems but is not
maintained
anymore.

Ralf

Jeff Mutonho wrote:
> On 6/14/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
>> Yeah, ant is the easiest way.
>>
>> Eric
>>
>
> Or you can try this :
>
>
http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html
>
>
>
>
>
>
> "Don't take the name of root in vain."
>
> Jeff  Mutonho
> Cape Town
> South Africa
>
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Esse Quam Videre
To Be, rather than to Seem


RE: copy file in maven

2007-06-14 Thread Brian E. Fox
If the file is in the repository, you can use the
maven-dependency-plugin:copy goal. 

-Original Message-
From: acec acec [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 14, 2007 12:01 PM
To: users@maven.apache.org
Subject: copy file in maven

hi,
What's the easiest way to copy file in maven?
Should I use ant plugin to do that?
Thanks.



  Ask a question on any topic and get answers from real people. Go
to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: copy file in maven

2007-06-14 Thread Ralf Quebbemann

Hi,

maybe it's not the best way to use the recommended copy-maven-plugin. Although 
it does its job (and yes I wrote it) there are plugins out there which have 
better capabilities.


You might want to check out the wagon-maven-plugin from the MyFaces project:

   org.apache.myfaces.maven
   wagon-maven-plugin
   1.0.5

This plugin uses wagon. So copying to remote destinations (scp, webdav, etc..) 
should be no problem.


The only drawback is, that it's not very convenient. Currently it's not possible 
to copy more than one file. Wildcards are not supported either.


Source code is available and I am sure patches are welcome. So give it a try.

However, the copy-maven-plugin works on local filesystems but is not maintained 
anymore.


Ralf

Jeff Mutonho wrote:

On 6/14/07, Eric Redmond <[EMAIL PROTECTED]> wrote:

Yeah, ant is the easiest way.

Eric



Or you can try this :

http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html 







"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: copy file in maven

2007-06-14 Thread acec acec
Hi,
We have an old project, which uses ant and could 
generate a customized tomcat folder.

My new project using maven, I need copy some files
into old customized tomcat folder.

Thanks.
Arden

--- Nathan Maves <[EMAIL PROTECTED]> wrote:

> First what is the reason for your need to copy a
> file?
> 
> The first thing that triggers in my mind is that you
> have a resource file
> that you need copied to your artifact.  If this is
> not the case then you may
> need to define your problem a little better.
> 
> Nathan
> 
> On 6/14/07, Jeff Mutonho <[EMAIL PROTECTED]>
> wrote:
> >
> > On 6/14/07, Eric Redmond <[EMAIL PROTECTED]>
> wrote:
> > > Yeah, ant is the easiest way.
> > >
> > > Eric
> > >
> >
> > Or you can try this :
> >
> >
> >
>
http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html
> >
> >
> >
> >
> >
> > "Don't take the name of root in vain."
> >
> > Jeff  Mutonho
> > Cape Town
> > South Africa
> >
> > GoogleTalk : ejbengine
> > Skype: ejbengine
> > Registered Linux user number 366042
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 



  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: copy file in maven

2007-06-14 Thread Nathan Maves

First what is the reason for your need to copy a file?

The first thing that triggers in my mind is that you have a resource file
that you need copied to your artifact.  If this is not the case then you may
need to define your problem a little better.

Nathan

On 6/14/07, Jeff Mutonho <[EMAIL PROTECTED]> wrote:


On 6/14/07, Eric Redmond <[EMAIL PROTECTED]> wrote:
> Yeah, ant is the easiest way.
>
> Eric
>

Or you can try this :


http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html





"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: copy file in maven

2007-06-14 Thread Jeff Mutonho

On 6/14/07, Eric Redmond <[EMAIL PROTECTED]> wrote:

Yeah, ant is the easiest way.

Eric



Or you can try this :

http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html





"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: copy file in maven

2007-06-14 Thread Eric Redmond

Yeah, ant is the easiest way.

Eric

On 6/14/07, acec acec <[EMAIL PROTECTED]> wrote:


hi,
What's the easiest way to copy file in maven?
Should I use ant plugin to do that?
Thanks.



  Ask a question on any topic and get answers from real people. Go to
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Eric Redmond
http://www.sonatype.com


copy file in maven

2007-06-14 Thread acec acec
hi,
What's the easiest way to copy file in maven?
Should I use ant plugin to do that?
Thanks.



  Ask a question on any topic and get answers from real people. Go to 
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]