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


Reply via email to