How to run a script only for top-level project using maven-antrun-plugin?

2013-12-23 Thread Sumit Kumar
Hi, I want to create a profile that can help me run an auto-generated script onto the target m/c. Since i would want this on a build m/c to be executed only once, i figured it would be better to keep this target in a separate profile. Here is what the skeleton looks like in my parent

Re: How to run a script only for top-level project using maven-antrun-plugin?

2013-12-23 Thread Russell Gold
HI Sumit, The simplest thing might be to make a separate module which does nothing but run your script. Then it would only run when executing that module. If you are doing this once for each build, you don’t even need the profile. Regards, Russ On Dec 23, 2013, at 3:16 PM, Sumit Kumar

Re: How to run a script only for top-level project using maven-antrun-plugin?

2013-12-23 Thread Stephen Connolly
inheritfalse/inherit On 23 December 2013 20:16, Sumit Kumar skbrnwl-...@yahoo.com wrote: Hi, I want to create a profile that can help me run an auto-generated script onto the target m/c. Since i would want this on a build m/c to be executed only once, i figured it would be better to keep

Re: How to run a script only for top-level project using maven-antrun-plugin?

2013-12-23 Thread Mark Derricutt
As a side question - is there a way to get something to ONLY run in inherited projects? I have a few things in my parent POM I'd like to propagate down without needing to put them in plugin-management and redeclaring them. On 24 Dec 2013, at 12:30, Stephen Connolly wrote:

How to run a script only for top-level project using maven-antrun-plugin?

2013-12-23 Thread Sumit Kumar
Hi, I want to create a profile that can help me run an auto-generated script onto the target m/c. Since i would want this on a build m/c to be executed only once, i figured it would be better to keep this target in a separate profile. Here is what the skeleton looks like in my parent

RE: How to run a script only for top-level project using maven-antrun-plugin?

2013-12-23 Thread Benoît Berthonneau
[mailto:ksumi...@yahoo.com] Envoyé : lundi 23 décembre 2013 21:15 À : users@maven.apache.org Objet : How to run a script only for top-level project using maven-antrun-plugin? Hi, I want to create a profile that can help me run an auto-generated script onto the target m/c. Since i would want

Getting error when i am using maven-antrun-plugin for Weblogic Workshop project

2011-08-08 Thread Daivish Shah
Hi, I have some questions for maven-antrun-plugin. I want to use thing plugin to build my Weblogic workshop project and want to create JAR file for my EJB project. We are using Weblogic 8.1 and JDK is 1.4.2 version. I am using MAVEN 2.2.1 version with JDK 1.5 *I have some questions as below :*

Re: Getting error when i am using maven-antrun-plugin for Weblogic Workshop project

2011-08-08 Thread Daivish Shah
Now i have only one question so you can ignore other questions. My POM.XML project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;

Re: Getting error when i am using maven-antrun-plugin for Weblogic Workshop project

2011-08-08 Thread Wayne Fay
 [wlwBuild] [Build] Build project WPSEjb started.  [wlwBuild] [Build] This project type does not allow override of the output directory location.  [wlwBuild] [Build] Build project WPSEjb complete. Most likely you will need to ask the company/group responsible for this Ant plugin for help.  

Setting up an ANT FTP Task using maven-antrun plugin

2008-11-03 Thread Durbha, Praveen (GE Healthcare)
HI, I am trying to set up an ANT FTP task using maven-antrun-plugin as below..but it errors out with the following error.. I have the oro.jar and commons-net.jar in my C:\ant\lib folder.. Thanks! Embedded error: Could not create task or type of type: ftp. plugin artifactIdmaven

Re: Setting up an ANT FTP Task using maven-antrun plugin

2008-11-03 Thread Wayne Fay
I am trying to set up an ANT FTP task using maven-antrun-plugin as below..but it errors out with the following error.. I have the oro.jar and commons-net.jar in my C:\ant\lib folder.. You will need to add plugin dependencies to the maven-antrun-plugin itself to specify the jars necessary

RE: Setting up an ANT FTP Task using maven-antrun plugin

2008-11-03 Thread Durbha, Praveen (GE Healthcare)
Thanks Wayne, that worked wonderfully! -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2008 4:31 PM To: Maven Users List Subject: Re: Setting up an ANT FTP Task using maven-antrun plugin I am trying to set up an ANT FTP task using maven-antrun

Using maven-antrun-plugin

2007-11-20 Thread Vishal Pahwa
Hi I am using maven2.0.6 and i need to execute ant build script from maven so i use maven-antrun-plugin and the configuration is like. plugin artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution iddocbook/id

Using maven-antrun-plugin and taskdef

2006-10-30 Thread Jeff Mutonho
I've configured the maven-antrun-plugin as follows : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasepre-integration-test/phase configuration tasks taskdef name=jmeter

Re: Using maven-antrun-plugin and taskdef

2006-10-30 Thread Marco Mistroni
hello you'd nee dto specify classpath somewhere... here's a sample (i m using custom jboss xdoclet task) tasks taskdef name=wstools classname=org.jboss.ws.tools.ant.wstools classpath refid=maven.dependency.classpath/ classpath

RE: Using maven-antrun-plugin and taskdef

2006-10-30 Thread Chris Hilton
Subject: Using maven-antrun-plugin and taskdef I've configured the maven-antrun-plugin as follows : plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasepre-integration-test/phase configuration tasks

Re: Using maven-antrun-plugin and taskdef

2006-10-30 Thread Jeff Mutonho
On 10/30/06, Chris Hilton [EMAIL PROTECTED] wrote: You need to add the jar as a dependency to the antrun plugin, something like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions ... /executions

[m2] Middlegen classpath exception when using maven-antrun-plugin

2006-03-22 Thread Jasper Molenmaker
Hi, Because there is no m2 middlegen plugin yet, I try to run middlegen from an ant build file. But when I try to run the build file using mvn compile I get an exception with the following message: Embedded error: The following error occurred while executing this line:

Re: [m2]: Problem using maven-antrun-plugin twice

2006-01-09 Thread Mathieu Vanderwhale
Hi Miral, The problem is that you need to add an id to each of your execution. Don't call two maven-antrun-plugins but two executions with an id inside ONE maven-antrun-plugin Here is an example in a pom.xml : plugin artifactIdmaven-antrun-plugin/artifactId executions

RE: [m2]: Problem using maven-antrun-plugin twice

2006-01-08 Thread Michał Stochmiałek
Hi, I am building a web app using maven 2.0. I have specified the following in my POM file: build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration

[m2]: Problem using maven-antrun-plugin twice

2006-01-06 Thread Shah, Miral
Hi, I am building a web app using maven 2.0. I have specified the following in my POM file: build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration