lvr123
lvr123

Reputation: 584

Maven-Ant task is not copying anything

I've got this Ant task that I execute at the deploy phase.

The output of Maven says that the Ant plugin is ran, but it doesn't do anything. Even the is not done.

<plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
            <execution>
                <phase>deploy</phase>
                <configuration>
                    <target name="Pushing to builds repository">
                        <copy todir="${basedir}/builds/" verbose="true">
                            <fileset dir="target/">
                                <include name="**/*.jar"/>  <!--${project.exe_finalname}.jar-->
                            </fileset>
                        </copy>
                        <echo>from target/ to ${basedir}/builds/</echo>   
                    </target>
                </configuration>
                <goals>
                    <goal>run</goal>
                </goals>
            </execution>
        </executions>
    </plugin>

And maven's output is:

--- maven-deploy-plugin:2.7:deploy (default-deploy) @ zploger ---
Skipping artifact deployment

--- maven-antrun-plugin:1.3:run (default) @ zploger ---
Executing tasks
Executed tasks

Upvotes: 0

Views: 158

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35805

You need to upgrade your antrun plugin. I suggest to set <version>3.0.0</version>.

Upvotes: 1

Related Questions