You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by johnjoseph <jo...@gmail.com> on 2012/02/13 18:20:11 UTC

How to run an ant script within war's pom file

Hi Everyone,

My aim is to run a shell script during the compilation/package phase within
the war project's pom file. I want to run the script only once. I am pretty
new to maven and i was able to do something close to that with the below
script. Now this code executes during both the compilation and package
phase. how do i limit this to run only during one of the phases? Any help
will be greatly appreciated.

                   
			
				org.apache.maven.plugins
				maven-war-plugin				
					
			
				org.apache.maven.plugins
				maven-compiler-plugin				
							
			
				org.apache.maven.plugins
				maven-antrun-plugin				
				
					
						DojoBuild
						generate-sources
						
							
								
									
										
									
							
								
							
							run
										
					
				
					
				

--
View this message in context: http://maven.40175.n5.nabble.com/How-to-run-an-ant-script-within-war-s-pom-file-tp5479899p5479899.html
Sent from the Maven Developers mailing list archive at Nabble.com.

Re: How to run an ant script within war's pom file

Posted by Dennis Lundberg <de...@gmail.com>.
Hi

Questions like these belong on the users mailing list.

Either you mail client or Nabble has stripped all the formating from
your xml snippet, making it unreadable. Please resend on the users
list.

On Mon, Feb 13, 2012 at 6:20 PM, johnjoseph <jo...@gmail.com> wrote:
> Hi Everyone,
>
> My aim is to run a shell script during the compilation/package phase within
> the war project's pom file. I want to run the script only once. I am pretty
> new to maven and i was able to do something close to that with the below
> script. Now this code executes during both the compilation and package
> phase. how do i limit this to run only during one of the phases? Any help
> will be greatly appreciated.
>
>
>
>                                org.apache.maven.plugins
>                                maven-war-plugin
>
>
>                                org.apache.maven.plugins
>                                maven-compiler-plugin
>
>
>                                org.apache.maven.plugins
>                                maven-antrun-plugin
>
>
>                                                DojoBuild
>                                                generate-sources
>
>
>
>
>
>
>
>
>
>                                                        run
>
>
>
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/How-to-run-an-ant-script-within-war-s-pom-file-tp5479899p5479899.html
> Sent from the Maven Developers mailing list archive at Nabble.com.



-- 
Dennis Lundberg

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