You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ilya Kazakevich <ka...@devexperts.com> on 2010/02/01 16:42:36 UTC

Plugin for updating external XML file content

Hi all,

I have a slightly weird situation: I need to update contents of some
external XML file each time I do deploy.
I wonder if there is a plugin that could be installed in "deploy" phase and
do that for me?

Plugin should be able to replace some token in text file for example or
something like that. 

Thanks.	

====================
Ilya Kazakevich




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


RE: Plugin for updating external XML file content

Posted by Ilya Kazakevich <ka...@devexperts.com>.
Excelent!

Thanks, Aleksey.
 

-----Original Message-----
From: Aleksey Didik [mailto:didik@magenta-technology.ru] 
Sent: Monday, February 01, 2010 6:53 PM
To: Maven Users List
Subject: Re: Plugin for updating external XML file content

But I have found this one:

http://code.google.com/p/maven-replacer-plugin/

01.02.2010 19:42, Ilya Kazakevich пишет:
> Hi all,
>
> I have a slightly weird situation: I need to update contents of some 
> external XML file each time I do deploy.
> I wonder if there is a plugin that could be installed in "deploy" 
> phase and do that for me?
>
> Plugin should be able to replace some token in text file for example 
> or something like that.
>
> Thanks.	
>
> ====================
> Ilya Kazakevich
>
>
>
>
> ---------------------------------------------------------------------
> 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: Plugin for updating external XML file content

Posted by Aleksey Didik <di...@magenta-technology.ru>.
But I have found this one:

http://code.google.com/p/maven-replacer-plugin/

01.02.2010 19:42, Ilya Kazakevich пишет:
> Hi all,
>
> I have a slightly weird situation: I need to update contents of some
> external XML file each time I do deploy.
> I wonder if there is a plugin that could be installed in "deploy" phase and
> do that for me?
>
> Plugin should be able to replace some token in text file for example or
> something like that.
>
> Thanks.	
>
> ====================
> Ilya Kazakevich
>
>
>
>
> ---------------------------------------------------------------------
> 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: Plugin for updating external XML file content

Posted by Wayne Fay <wa...@gmail.com>.
> If something could be solved using maven only -- we should do so. Ant-script
> at least requires ant to be installed on platform.
> If something cannt be solved using existing maven plugins -- we should make

Except that you can use Ant as a Maven plugin which does not require
Ant to be installed at all...

Wayne

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


RE: Plugin for updating external XML file content

Posted by "Gorham-Engard, Frank" <Fr...@cable.comcast.com>.
Hi Ilya
Yes, I agree, keeping it simple is a positive value.

Perhaps you haven't noticed that ant is an "existing maven plugin". It is possible to run inline ant tasks or external scripts without having an "ant installation" on your system. Maven will get ant from the Maven repositories for you.

I'm just saying that I think starting a new project to create a plugin is not as simple as using a bit of ant script, at least for those who have a little ant exposure.

<!-- Frank Gorham-Engard →

-----Original Message-----
From: Ilya Kazakevich [mailto:kazakevich@devexperts.com] 
Sent: Monday, February 01, 2010 1:08 PM
To: 'Maven Users List'
Subject: RE: Plugin for updating external XML file content

Hello Frank.

Using too many tools could make project too complicated. I saw a project
with maven, ant and .bat files. It was tricky:)
If something could be solved using maven only -- we should do so. Ant-script
at least requires ant to be installed on platform.
If something cannt be solved using existing maven plugins -- we should make
decision between creating maven plugin and using ant script, because ant
script is better than shell script for example (because of its
cross-platform nature). But I am sure that 99% of our issues could be solved
using maven only. But that’s my imho, and its probably not a best practice.


-----Original Message-----
From: Gorham-Engard, Frank [mailto:Frank_Gorham-Engard@cable.comcast.com]
Sent: Monday, February 01, 2010 7:20 PM
To: Maven Users List
Subject: RE: Plugin for updating external XML file content

What do you see as the value of completely eliminating ant use from your
Maven project. I see ant as a tool that is supported and may be appropriate
for some situations.
To have a policy that rules out a useful tool seems counterproductive.

<!-- Frank Gorham-Engard →

-----Original Message-----
From: Ilya Kazakevich [mailto:kazakevich@devexperts.com]
Sent: Monday, February 01, 2010 10:57 AM
To: 'Maven Users List'
Subject: RE: Plugin for updating external XML file content

Thanks.
Actually, I wanna get rid of ant in our project, ...


---------------------------------------------------------------------
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: Plugin for updating external XML file content

Posted by Ilya Kazakevich <ka...@devexperts.com>.
Hello Frank.

Using too many tools could make project too complicated. I saw a project
with maven, ant and .bat files. It was tricky:)
If something could be solved using maven only -- we should do so. Ant-script
at least requires ant to be installed on platform.
If something cannt be solved using existing maven plugins -- we should make
decision between creating maven plugin and using ant script, because ant
script is better than shell script for example (because of its
cross-platform nature). But I am sure that 99% of our issues could be solved
using maven only. But that’s my imho, and its probably not a best practice.


-----Original Message-----
From: Gorham-Engard, Frank [mailto:Frank_Gorham-Engard@cable.comcast.com]
Sent: Monday, February 01, 2010 7:20 PM
To: Maven Users List
Subject: RE: Plugin for updating external XML file content

What do you see as the value of completely eliminating ant use from your
Maven project. I see ant as a tool that is supported and may be appropriate
for some situations.
To have a policy that rules out a useful tool seems counterproductive.

<!-- Frank Gorham-Engard →

-----Original Message-----
From: Ilya Kazakevich [mailto:kazakevich@devexperts.com]
Sent: Monday, February 01, 2010 10:57 AM
To: 'Maven Users List'
Subject: RE: Plugin for updating external XML file content

Thanks.
Actually, I wanna get rid of ant in our project, ...


---------------------------------------------------------------------
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: Plugin for updating external XML file content

Posted by "Gorham-Engard, Frank" <Fr...@cable.comcast.com>.
What do you see as the value of completely eliminating ant use from your Maven project. I see ant as a tool that is supported and may be appropriate for some situations.
To have a policy that rules out a useful tool seems counterproductive.

<!-- Frank Gorham-Engard →

-----Original Message-----
From: Ilya Kazakevich [mailto:kazakevich@devexperts.com] 
Sent: Monday, February 01, 2010 10:57 AM
To: 'Maven Users List'
Subject: RE: Plugin for updating external XML file content

Thanks.
Actually, I wanna get rid of ant in our project, ...


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


RE: Plugin for updating external XML file content

Posted by Ilya Kazakevich <ka...@devexperts.com>.
Thanks.
Actually, I wanna get rid of ant in our project, but this can work.

We are also looking at xml-maven-plugin. We can generate XML file each time
using XSL while passing information we need to insert as parameters. 


Ilya. 

-----Original Message-----
From: Aleksey Didik [mailto:didik@magenta-technology.ru] 
Sent: Monday, February 01, 2010 6:51 PM
To: Maven Users List
Subject: Re: Plugin for updating external XML file content

I don't see anything with this functionality.
May be better to use /maven-antrun-plugin/ and write necessary ant script.

Best regards,
Aleksey.

01.02.2010 19:42, Ilya Kazakevich ?????:
> Hi all,
>
> I have a slightly weird situation: I need to update contents of some 
> external XML file each time I do deploy.
> I wonder if there is a plugin that could be installed in "deploy" 
> phase and do that for me?
>
> Plugin should be able to replace some token in text file for example 
> or something like that.
>
> Thanks.	
>
> ====================
> Ilya Kazakevich
>
>
>
>
> ---------------------------------------------------------------------
> 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: Plugin for updating external XML file content

Posted by Aleksey Didik <di...@magenta-technology.ru>.
I don't see anything with this functionality.
May be better to use /maven-antrun-plugin/ and write necessary ant script.

Best regards,
Aleksey.

01.02.2010 19:42, Ilya Kazakevich ?????:
> Hi all,
>
> I have a slightly weird situation: I need to update contents of some
> external XML file each time I do deploy.
> I wonder if there is a plugin that could be installed in "deploy" phase and
> do that for me?
>
> Plugin should be able to replace some token in text file for example or
> something like that.
>
> Thanks.	
>
> ====================
> Ilya Kazakevich
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>