Also I am only seeing this when I run the: mvn -P liquibase-diff install On a windows 2008 server machine running with the following maven environment: Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500) Java version: 1.6.0_16 Java home: C:\Program Files\Java\jdk1.6.0_16\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows server 2008" version: "6.1" arch: "amd64" Family: "windows"
It runs fine on a Linux build environment: Maven version: 2.1.0-M1 Java version: 1.6.0_07 Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.18-92.1.22.el5" arch: "amd64" family: "unix" (I've also tried using maven 2.1.0 with no luck, and deleting my ~/.m2/repo with no luck) -----Original Message----- From: Doug Daniels Sent: Thursday, October 08, 2009 12:38 PM To: users@maven.apache.org Subject: RE: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close It is happening during a multi-module build, but it also occurs when I run that individual project in isolation. How would I give you the listing of other plugins being used (beyond maven-ant-run I am using just the default java project plugin maven-compiler-plugin) I am additionally using the ant-contrib 1.0b3 library included as a dependency in the maven-ant-run plugin (along with some other application specific dependencies not directly ANT related). Here's the full pom.xml plugin definition (inside a "liquibase-diff" profile): <profile> <id>liquibase-diff</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins </groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>install</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <configuration> <tasks> <echo>PERFORMING LIQUIBASE FUNCTIONS</echo> <property name="compile_classpath" refid="maven.compile.classpath" /> <property name="runtime_classpath" refid="maven.runtime.classpath" /> <property name="test_classpath" refid="maven.test.classpath" /> <property name="plugin_classpath" refid="maven.plugin.classpath" /> <property name="project_classpath" value="${project.build.directory}/classes" /> <property name="liquibaseDir" value="${basedir}/src/main/resources/changelogs/mysql/complete" /> <property name="changeLogFile" value="${liquibaseDir}/liquibase.changelog.xml" /> <property name="outputFile" value="${liquibaseDir}/liquibase-update.sql" /> <ant antfile="liquibase-build.xml"> <target name="diffDatabaseToChangeLog" /> </ant> </tasks> </configuration> <dependencies> <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core</artifactId> <version>1.9.3</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java </artifactId> <version>5.1.6</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId> <version>3.2.6.ga</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations </artifactId> <version>3.4.0.GA</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> <version>1.5.6</version> </dependency> <dependency> <groupId>apache-log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.14</version> </dependency> <dependency> <groupId>ant-contrib</groupId> <artifactId>ant-contrib</artifactId> <version>1.0b3</version> </dependency> </dependencies> </plugin> -----Original Message----- From: news [mailto:n...@ger.gmane.org] On Behalf Of Jörg Schaible Sent: Thursday, October 08, 2009 11:35 AM To: users@maven.apache.org Subject: Re: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close Hi Doug, Doug Daniels wrote: > I'm building a maven project that uses the maven-ant-run plugin and I'm > getting an error about a missing method from Ant. Does this happen in a multi-project build or when you try to build the project directly? Which other plugins did run before the install phase? - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org