First off, your XML is not well-formed. <echo>...</ant:echo> doesn't look like valid XML, so I'm not surprised its not working right for you. Also you enclosed the <echo/> node inside an <ant> node but then the <copy/> node was outside it. So you need to make the XML proper before proceeding. Follow the examples online or search this mailing list for tons of Antrun plugin examples.
Second, you might want to specify <copy ... verbose="true"> which might provide additional information from Ant when it is doing the file copy. I'm not using <copy/> right now personally so no guarantees, but that is what the Ant Copy task webpage says: http://ant.apache.org/manual/CoreTasks/copy.html Wayne On 10/4/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
hello, check what is the actual value of ${maven.build.dir}/${pom.artifactId}-${ pom.currentVersion}.jar" by echoing... maven will result in a success regardless the outcome of copy (pls anyone correct me if i m mwrong, but i have experienced same behaviour).. hth marco. On 10/4/06, Neeraj Bisht <[EMAIL PROTECTED]> wrote: > > hi all > i want to include ant task in my pom (maven 2.0.4 ) but how i > can > proceed , i do not know > i did googling and find some link on apache site > http://maven.apache.org/plugins/maven-antrun-plugin/usage.html > but here it is not clear and i tried i did not get any error and also i am > unable to run ant task > i did not get the echo command please if any one have good link or eg > please > send me > > <pluginManagement> > <plugins> > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>package</phase> > <configuration> > <tasks> > <ant> > <echo>hi this is runing ant task</ant:echo> > </ant> > <copy file="${maven.build.dir}/${pom.artifactId}-${ > pom.currentVersion}.jar" tofile="${user.home}/.m2/repository/${pom.groupId > }/hars/${pom.artifactId}-${pom.currentVersion}.har"/> > > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > > </pluginManagement> > > both echo and copy command are not working and maven 2.0.4 show build > succesful > > Regards > > Neeraj > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]