You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ralph Pöllath <li...@poellath.org> on 2005/12/29 11:37:58 UTC

[m2] run plugin after webapp is assembled and before it's zipped

Hi,

I'd like to post-process my JSPs using the antrun plugin (which uses  
ant's replaceregexp task). The plugin execution itself works fine,  
but now I need it to run after the webapp is assembled and before  
it's zipped up as a warfile.

My JSPs live in src/main/webapp/WEB-INF/jsp/ and I do not want to  
modifiy them there. I thought about dropping them into src/main/ 
resources/ but then they would end up in  target/myApp/WEB-INF/ 
classes/ instead of WEB-INF.

Any ideas?

Thanks,
-Ralph.




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


Re: [m2] run plugin after webapp is assembled and before it's zipped

Posted by Dirk Olmes <di...@xanthippe.ping.de>.
Hi Ralph,

> I'd like to post-process my JSPs using the antrun plugin (which uses
> ant's replaceregexp task). The plugin execution itself works fine,
> but now I need it to run after the webapp is assembled and before
> it's zipped up as a warfile.

I had do dig around in the maven-war-plugin myself and I'm pretty sure
that the maven-war-plugin currently does not support what you want. The
webapp will be assembled in an uncompressed folder structure first,
afterwards it's compressed. If you need to put some code in between those
two steps, you might also be forced to hack around in the war plugin :-(

-dirk

-- 
Anyway kids, have fun, play nicely, be good. And remember - if it ain't
broke, hit it again.


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


Re: [m2] how can I add more source directory?

Posted by Rinku <ra...@gmail.com>.
Hi,

you can use the build-helper-plugin available from the Mojo sandbox to add 
an extra source dir.

http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/build-helper-maven-plugin/

This allows adding an extra source directory, though I don't think it will 
update/change the pom.xml for the extra directory added.

Cheers,

Rahul

----- Original Message ----- 
From: "Man-Chi Leung" <ma...@gmail.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, December 29, 2005 11:58 PM
Subject: [m2] how can I add more source directory?


>I would like to add more source directory for groovy script.
>
> but if I add the following in pom.xml, the default setting of src/ 
> main/java will be removed!
>
> <build>
> <sourceDirectory>src/main/groovy</sourceDirectory>
>        ...
> </build>
>
>
> YES ! the following will caused xml syntax error!!
> <build>
> <sourceDirectory>src/main/groovy:</sourceDirectory> 
> <sourceDirectory>src/main/groovy</sourceDirectory>
> </build>
>
> pls help
>
> Regards,
> manchi
>
> ---------------------------------------------------------------------
> 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


[m2] how can I add more source directory?

Posted by Man-Chi Leung <ma...@gmail.com>.
I would like to add more source directory for groovy script.

but if I add the following in pom.xml, the default setting of src/ 
main/java will be removed!

<build>
	<sourceDirectory>src/main/groovy</sourceDirectory>
        ...
</build>


YES ! the following will caused xml syntax error!!
<build>
	<sourceDirectory>src/main/groovy:</sourceDirectory>	
	<sourceDirectory>src/main/groovy</sourceDirectory>
</build>

pls help

Regards,
manchi

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