Hi there,

Sorry for breaking the threading in your email reader, but I just found the fix for the above subject and alas I don't have the original thread to reply to.

In any case, you may look at the thread discussion at nabble:
http://old.nabble.com/maven-ant-run-plugin-1.3-error-java.lang.NoSuchMethodError:-org.apache.tools.ant.util.FileUtils.close-td25806467.html

The root cause is that the OP (Doug Daniels) is using, ant-contrib in maven-antrun-plugin. The fix is to add an exclusion for ant:ant in the dependency for ant-contrib, as by default it uses ant-1.5. E.g., use:

                    <dependency>
                        <groupId>ant-contrib</groupId>
                        <artifactId>ant-contrib</artifactId>
                        <version>${ant-contrib.ver}</version>
                        <exclusions>
                            <exclusion>
                                <groupId>ant</groupId>
                                <artifactId>ant</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>

This way, whatever dependency is specified by maven-antrun-plugin will be kick in.

Hope it helps someone.

Cheers,
--
Haroon Rafique
<[email protected]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to