maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

View: New views
9 Messages — Rating Filter:   Alert me  

maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by Doug Daniels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

                        <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>

The main error is:
[INFO] Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V


Here's the details:
[FATAL ERROR] org.codehaus.plexus.component.configurator.BasicComponentConfigurator#configureComponent(...) caused a linkage error (java.lang.NoSuchMethodError)
 and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven-antrun-plugin:1.3]
urls[0] = file:/C:/Users/Autobuild/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar
urls[1] = file:/C:/Users/Autobuild/.m2/repository/org/liquibase/liquibase-core/1.9.3/liquibase-core-1.9.3.jar
urls[2] = file:/C:/Users/Autobuild/.m2/repository/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar
urls[3] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.jar
urls[4] = file:/C:/Users/Autobuild/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
urls[5] = file:/C:/Users/Autobuild/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
urls[6] = file:/C:/Users/Autobuild/.m2/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar
urls[7] = file:/C:/Users/Autobuild/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
urls[8] = file:/C:/Users/Autobuild/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar
urls[9] = file:/C:/Users/Autobuild/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[10] = file:/C:/Users/Autobuild/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
urls[11] = file:/C:/Users/Autobuild/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar
urls[12] = file:/C:/Users/Autobuild/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar
urls[13] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
urls[14] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
urls[15] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
urls[16] = file:/C:/Users/Autobuild/.m2/repository/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar
urls[17] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/hibernate-core/3.3.0.SP1/hibernate-core-3.3.0.SP1.jar
urls[18] = file:/C:/Users/Autobuild/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
urls[19] = file:/C:/Users/Autobuild/.m2/repository/apache-log4j/log4j/1.2.14/log4j-1.2.14.jar
urls[20] = file:/C:/Users/Autobuild/.m2/repository/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
urls[21] = file:/C:/Users/Autobuild/.m2/repository/ant/ant/1.5/ant-1.5.jar
urls[22] = file:/C:/Users/Autobuild/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
urls[23] = file:/C:/Users/Autobuild/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
urls[24] = file:/C:/Users/Autobuild/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/apps/apache-maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/
InputStream;)V
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethodError: or
g.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:723)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethod
Error: org.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V
        at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1412)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
Caused by: java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V
        at org.apache.tools.ant.ComponentHelper.getDefaultDefinitions(ComponentHelper.java:737)
        at org.apache.tools.ant.ComponentHelper.initTasks(ComponentHelper.java:681)
        at org.apache.tools.ant.ComponentHelper.initDefaultDefinitions(ComponentHelper.java:270)
        at org.apache.maven.plugin.antrun.components.AntTargetConverter.initDefinitions(AntTargetConverter.java:189)
        at org.apache.maven.plugin.antrun.components.AntTargetConverter.processConfiguration(AntTargetConverter.java:109)
        at org.apache.maven.plugin.antrun.components.AntTargetConverter.fromConfiguration(AntTargetConverter.java:83)
        at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
        at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
        at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
        at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 4 seconds
[INFO] Finished at: Thu Oct 08 10:38:44 CDT 2009
[INFO] Final Memory: 110M/263M
- Doug Daniels


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by Doug Daniels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It appears that there are a couple other cases of this occurring around August 27th 2009, in some open source projects.
http://www.mail-archive.com/uima-dev@.../msg10531.html 

I'm running with mvn -v:
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"

-----Original Message-----
From: Doug Daniels [mailto:ddaniels@...]
Sent: Thursday, October 08, 2009 10:40 AM
To: users@...
Subject: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

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.

                        <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>

The main error is:
[INFO] Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V


Here's the details:
[FATAL ERROR] org.codehaus.plexus.component.configurator.BasicComponentConfigurator#configureComponent(...) caused a linkage error (java.lang.NoSuchMethodError)
 and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven-antrun-plugin:1.3]
urls[0] = file:/C:/Users/Autobuild/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar
urls[1] = file:/C:/Users/Autobuild/.m2/repository/org/liquibase/liquibase-core/1.9.3/liquibase-core-1.9.3.jar
urls[2] = file:/C:/Users/Autobuild/.m2/repository/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar
urls[3] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.jar
urls[4] = file:/C:/Users/Autobuild/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
urls[5] = file:/C:/Users/Autobuild/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
urls[6] = file:/C:/Users/Autobuild/.m2/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar
urls[7] = file:/C:/Users/Autobuild/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
urls[8] = file:/C:/Users/Autobuild/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar
urls[9] = file:/C:/Users/Autobuild/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[10] = file:/C:/Users/Autobuild/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar
urls[11] = file:/C:/Users/Autobuild/.m2/repository/cglib/cglib/2.1_3/cglib-2.1_3.jar
urls[12] = file:/C:/Users/Autobuild/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar
urls[13] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar
urls[14] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar
urls[15] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar
urls[16] = file:/C:/Users/Autobuild/.m2/repository/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar
urls[17] = file:/C:/Users/Autobuild/.m2/repository/org/hibernate/hibernate-core/3.3.0.SP1/hibernate-core-3.3.0.SP1.jar
urls[18] = file:/C:/Users/Autobuild/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
urls[19] = file:/C:/Users/Autobuild/.m2/repository/apache-log4j/log4j/1.2.14/log4j-1.2.14.jar
urls[20] = file:/C:/Users/Autobuild/.m2/repository/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
urls[21] = file:/C:/Users/Autobuild/.m2/repository/ant/ant/1.5/ant-1.5.jar
urls[22] = file:/C:/Users/Autobuild/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
urls[23] = file:/C:/Users/Autobuild/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
urls[24] = file:/C:/Users/Autobuild/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/apps/apache-maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/
InputStream;)V
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethodError: or
g.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:723)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethod
Error: org.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V
        at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1412)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
Caused by: java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V
        at org.apache.tools.ant.ComponentHelper.getDefaultDefinitions(ComponentHelper.java:737)
        at org.apache.tools.ant.ComponentHelper.initTasks(ComponentHelper.java:681)
        at org.apache.tools.ant.ComponentHelper.initDefaultDefinitions(ComponentHelper.java:270)
        at org.apache.maven.plugin.antrun.components.AntTargetConverter.initDefinitions(AntTargetConverter.java:189)
        at org.apache.maven.plugin.antrun.components.AntTargetConverter.processConfiguration(AntTargetConverter.java:109)
        at org.apache.maven.plugin.antrun.components.AntTargetConverter.fromConfiguration(AntTargetConverter.java:83)
        at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
        at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
        at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
        at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 4 seconds
[INFO] Finished at: Thu Oct 08 10:38:44 CDT 2009
[INFO] Final Memory: 110M/263M
- Doug Daniels


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by Jörg Schaible-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by struberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hmm maybe it's as simple as that: the maven-antrun-plugin only has the core dependencies on board. If your ant scripts make use of additional functions, you have to add those jars as dependencies.
E.g.:

> <plugin>
>  <artifactId>maven-antrun-plugin</artifactId>
>  ...
>  <dependencies>
>   <dependency>
>    <groupId>ant</groupId>
>    <artifactId>ant-nodeps</artifactId>
>    <version>1.6.5</version>
>   </dependency>
>  </dependencies>
> </plugin>

LieGrue,
strub

--- On Thu, 10/8/09, Jörg Schaible <joerg.schaible@...> wrote:

> From: Jörg Schaible <joerg.schaible@...>
> Subject: Re: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close
> To: users@...
> Date: Thursday, October 8, 2009, 6:35 PM
> 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-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by Jörg Schaible-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mark,

Mark Struberg wrote:

> Hmm maybe it's as simple as that: the maven-antrun-plugin only has the
> core dependencies on board.

Look at the stack trace, it seems to imply that he did classes use from ant
core only.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by Doug Daniels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:news@...] On Behalf Of Jörg Schaible
Sent: Thursday, October 08, 2009 11:35 AM
To: users@...
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-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by Doug Daniels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
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:news@...] On Behalf Of Jörg Schaible
Sent: Thursday, October 08, 2009 11:35 AM
To: users@...
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-unsubscribe@...
For additional commands, e-mail: users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by Jörg Schaible-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Doug,

Doug Daniels wrote at Donnerstag, 8. Oktober 2009 19:42:

> Also I am only seeing this when I run the:
> mvn -P liquibase-diff install

Can you post the /project/build/plugins section running

mvn help:effective-pom -P liquibase-diff

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: maven-ant-run plugin 1.3 error java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close

by Vadim B :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jörg Schaible-2 wrote:
Can you post the /project/build/plugins section running
mvn help:effective-pom -P liquibase-diff

Hi Jörg,

I have exact the same problems as Doug. So i just post my results of the  mvn help:effective-pom -P tester
C:\Dev\workspace\derux-master\derux-qa>mvn help:effective-pom -P tester
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Derux QA Testing
[INFO]    task-segment: [help:effective-pom] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [help:effective-pom {execution: default-cli}]
[INFO]
Effective POMs, after inheritance, interpolation, and profiles are applied:

<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!--                                                                        -->
<!-- Generated by Maven Help Plugin on 11/1/09 10:23 PM                     -->
<!-- See: http://maven.apache.org/plugins/maven-help-plugin/                -->
<!--                                                                        -->
<!-- ====================================================================== -->

<!-- ====================================================================== -->
<!--                                                                        -->
<!-- Effective POM for project 'derux:derux-qa:war:1.0.0-SNAPSHOT'          -->
<!--                                                                        -->
<!-- ====================================================================== -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.x
sd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>derux-master</artifactId>
    <groupId>derux</groupId>
    <version>1.0.0-SNAPSHOT</version>
  </parent>
  <groupId>derux</groupId>
  <artifactId>derux-qa</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>war</packaging>
  <name>Derux QA Testing</name>
  <description>WAR project for derux-qa</description>
  <build>
    <sourceDirectory>C:\Dev\workspace\derux-master\derux-qa\src\test\java</sourceDirectory>
    <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
    <testSourceDirectory>C:\Dev\workspace\derux-master\derux-qa\src\test\java</testSourceDirectory>
    <outputDirectory>C:\Dev\workspace\derux-master\derux-qa\target\classes</outputDirectory>
    <testOutputDirectory>C:\Dev\workspace\derux-master\derux-qa\target\test-classes</testOutputDirectory>
    <defaultGoal>install</defaultGoal>
    <resources>
      <resource>
        <filtering>true</filtering>
        <mergeId>resource-0</mergeId>
        <directory>C:\Dev\workspace\derux-master\derux-qa\src\main\resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <filtering>true</filtering>
        <mergeId>resource-1</mergeId>
        <directory>C:\Dev\workspace\derux-master\derux-qa\src\test\resources</directory>
      </testResource>
    </testResources>
    <directory>C:\Dev\workspace\derux-master\derux-qa\target</directory>
    <finalName>derux-web-1.0.0-SNAPSHOT</finalName>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2-beta-2</version>
        </plugin>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-ear-plugin</artifactId>
          <version>2.3.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-ejb-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.5</version>
        </plugin>
        <plugin>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>2.4.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-rar-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.0-beta-8</version>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>2.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>2.0-beta-7</version>
        </plugin>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.0.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.4.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-alpha-2</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.0.2</version>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
          <skip>true</skip>
          <disableXmlReport>false</disableXmlReport>
          <systemProperties>
            <property>
              <name>cactus.contextURL</name>
              <value>http://localhost:8080/derux</value>
            </property>
          </systemProperties>
          <argLine>-Xms512m -Xmx1024m -XX:MaxPermSize=128m</argLine>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-ejb-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <generateClient>true</generateClient>
          <ejbVersion>3.0</ejbVersion>
          <clientExcludes>
            <clientExclude>**/editor/*.class</clientExclude>
            <clientExclude>**/*Bean*.class</clientExclude>
            <clientExclude>**/*MDB*.class</clientExclude>
            <clientExclude>**/*Job.class</clientExclude>
            <clientExclude>**/package.html</clientExclude>
            <clientExclude>**/*.xml</clientExclude>
            <clientExclude>**/*.xhtml</clientExclude>
            <clientExclude>**/*.properties</clientExclude>
          </clientExcludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>dashboard-maven-plugin</artifactId>
        <version>1.0.0-beta-1</version>
        <dependencies>
          <dependency>
            <groupId>hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
            <version>1.8.0</version>
            <scope>compile</scope>
          </dependency>
        </dependencies>
        <configuration>
          <dialect>org.hibernate.dialect.HSQLDialect</dialect>
          <driverClass>org.hsqldb.jdbcDriver</driverClass>
          <connectionUrl>jdbc:hsqldb:c:/dashboard-db/dashboardDB;create=true</connectionUrl>
          <username>dashboard</username>
          <password>dashboard</password>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.0</version>
        <executions>
          <execution>
            <id>unpack-ear</id>
            <phase>package</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <artifactItems>
            <artifactItem>
              <groupId>derux</groupId>
              <artifactId>derux-app</artifactId>
              <version>1.0.0-SNAPSHOT</version>
              <type>ear</type>
              <outputDirectory>C:\Dev\workspace\derux-master\derux-qa\target/ear</outputDirectory>
            </artifactItem>
          </artifactItems>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.3</version>
        <executions>
          <execution>
            <phase>install</phase>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>ant-contrib</groupId>
            <artifactId>ant-contrib</artifactId>
            <version>1.0b3</version>
            <scope>compile</scope>
          </dependency>
          <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant</artifactId>
            <version>1.7.1</version>
            <scope>compile</scope>
          </dependency>
        </dependencies>
        <inherited>false</inherited>
        <configuration>
          <tasks>
            <taskdef resource="net/sf/antcontrib/antcontrib.properties">
              <classpath>
                <path refid="maven.plugin.classpath" />
              </classpath>
            </taskdef>
            <available file="C:\Dev\workspace\derux-master\derux-qa\target/ear/derux-web-1.0.0-SNAPSHOT.war" property="ear.expanded" type="dir" />
            <if>
              <equals arg2="true" arg1="${ear.expanded}" />
              <then>
                <copy todir="C:\Dev\workspace\derux-master\derux-qa\target/ear/derux-web-1.0.0-SNAPSHOT.war" overwrite="true">
                  <fileset dir="C:\Dev\workspace\derux-master\derux-qa\target/derux-web-1.0.0-SNAPSHOT" />
                </copy>
                <copy todir="C:\Dev\jboss-5.1.0.GA\/server/all/deploy/derux-app-1.0.0-SNAPSHOT.ear">
                  <fileset dir="C:\Dev\workspace\derux-master\derux-qa\target/ear" />
                </copy>
              </then>
              <else>
                <copy todir="C:\Dev\workspace\derux-master\derux-qa\target/ear" file="C:\Dev\workspace\derux-master\derux-qa\target/derux-web-1.0.0-SNAPSHOT.war" overwrite="true" />
                <mkdir dir="C:\Dev\jboss-5.1.0.GA\/server/all/deploy" />
                <zip basedir="C:\Dev\workspace\derux-master\derux-qa\target/ear" destfile="C:\Dev\jboss-5.1.0.GA\/server/all/deploy/derux-app-1.0.0-SNAPSHOT.ear" />
              </else>
            </if>
            <copy todir="C:\Dev\jboss-5.1.0.GA\/server/all">
              <fileset dir="src/test/jboss/all" />
            </copy>
          </tasks>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-help-plugin</artifactId>
        <version>2.1</version>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>tester</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <phase>install</phase>
                <goals>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>test</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>install</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <executions>
              <execution>
                <id>surefire-it</id>
                <phase>integration-test</phase>
                <goals>
                  <goal>test</goal>
                </goals>
                <configuration>
                  <testFailureIgnore>false</testFailureIgnore>
                  <skip>false</skip>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <executions>
              <execution>
                <id>start-container</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <wait>false</wait>
              <container>
                <containerId>jboss42x</containerId>
                <zipUrlInstaller>
                  <url>file:${settings.localRepository}/taylor/jboss-server/${jboss.version}/jboss-server-${jboss.version}.zip</url>
                  <installDir>C:\Dev\workspace\derux-master\derux-qa\target/install</installDir>
                </zipUrlInstaller>
                <log>C:\Dev\workspace\derux-master\derux-qa\target/logs/cargo.log</log>
                <output>C:\Dev\workspace\derux-master\derux-qa\target/logs/container.log</output>
              </container>
              <configuration>
                <type>existing</type>
                <home>C:\Dev\jboss-5.1.0.GA\/server/all</home>
                <properties>
                  <cargo.wait>false</cargo.wait>
                  <cargo.logging>high</cargo.logging>
                  <cargo.jboss.configuration>all</cargo.jboss.configuration>
                  <cargo.rmi.port>${jboss.rmi.port}</cargo.rmi.port>
                  <cargo.hostname>localhost</cargo.hostname>
                  <cargo.servlet.port>8080</cargo.servlet.port>
                  <cargo.jvmargs>-Xms512m -Xmx1024m -XX:MaxPermSize=128m</cargo.jvmargs>
                </properties>
              </configuration>
              <deployer>
                <deployables>
                  <deployable />
                </deployables>
              </deployer>
            </configuration>
          </plugin>
          <plugin>
            <groupId>net.taylor.maven.plugins</groupId>
            <artifactId>maven-jamon-report-plugin</artifactId>
            <version>0.0.1</version>
            <executions>
              <execution>
                <id>reset</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>reset</goal>
                </goals>
              </execution>
              <execution>
                <id>results</id>
                <phase>integration-test</phase>
                <goals>
                  <goal>results</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <filter>derux</filter>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <dependencies>
        <dependency>
          <groupId>taylor</groupId>
          <artifactId>jboss-server</artifactId>
          <version>${jboss.version}</version>
          <type>zip</type>
        </dependency>
      </dependencies>
      <properties>
        <jboss.home>C:\Dev\workspace\derux-master\derux-qa\target/install/jboss-server-${jboss.version}</jboss.home>
        <jboss.rmi.port>11098</jboss.rmi.port>
        <jboss.port>8080</jboss.port>
        <jboss.host>localhost</jboss.host>
        <jboss.version>4.2.3.GA</jboss.version>
      </properties>
    </profile>
  </profiles>
  <distributionManagement>
    <site>
      <id>website</id>
      <url>file:c:/fullsite/derux-qa</url>
    </site>
  </distributionManagement>
  <repositories>
    <repository>
      <id>repo1</id>
      <name>Maven Repository</name>
      <url>http://repo1.maven.org/maven2</url>
    </repository>
    <repository>
      <id>taylor</id>
      <name>Taylor Repository</name>
      <url>http://taylor.sourceforge.net/maven2</url>
    </repository>
    <repository>
      <id>jboss</id>
      <name>JBoss Repository</name>
      <url>http://repository.jboss.org/maven2</url>
    </repository>
    <repository>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <updatePolicy>always</updatePolicy>
      </snapshots>
      <id>jboss-snap</id>
      <name>JBoss Repository Snap</name>
      <url>http://snapshots.jboss.org/maven2</url>
    </repository>
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Maven Repository Switchboard</name>
      <url>http://repo1.maven.org/maven2</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>taylor</id>
      <name>Taylor Repository</name>
      <url>http://taylor.sourceforge.net/maven2</url>
    </pluginRepository>
    <pluginRepository>
      <id>Codehaus repository</id>
      <url>http://repository.codehaus.org/</url>
    </pluginRepository>
    <pluginRepository>
      <releases>
        <updatePolicy>never</updatePolicy>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Maven Plugin Repository</name>
      <url>http://repo1.maven.org/maven2</url>
    </pluginRepository>
  </pluginRepositories>
  <dependencies>
    <dependency>
      <groupId>derux</groupId>
      <artifactId>derux-web</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      <type>war</type>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>taylor</groupId>
      <artifactId>taylor-results</artifactId>
      <version>1.3.0</version>
    </dependency>
    <dependency>
      <groupId>org.jboss.jsfunit</groupId>
      <artifactId>jboss-jsfunit-core</artifactId>
      <version>1.0.0.GA</version>
      <exclusions>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>javax.servlet</groupId>
        </exclusion>
        <exclusion>
          <artifactId>ant</artifactId>
          <groupId>ant</groupId>
        </exclusion>
        <exclusion>
          <artifactId>cactus-ant</artifactId>
          <groupId>cactus</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-httpclient</artifactId>
          <groupId>commons-httpclient</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
        <exclusion>
          <artifactId>cargo</artifactId>
          <groupId>cargo</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.jboss.jsfunit</groupId>
      <artifactId>jboss-jsfunit-richfaces</artifactId>
      <version>1.0.0.GA</version>
    </dependency>
    <dependency>
      <groupId>net.sourceforge.htmlunit</groupId>
      <artifactId>htmlunit</artifactId>
      <version>2.5</version>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.0.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <version>3.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.5</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.jboss.ws.native</groupId>
      <artifactId>jbossws-native-core</artifactId>
      <version>3.0.5.GA</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.jboss.ws.native</groupId>
      <artifactId>jbossws-native-jaxws</artifactId>
      <version>3.1.0.GA</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>taylor</groupId>
      <artifactId>taylor-commons</artifactId>
      <version>1.3.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>taylor</groupId>
      <artifactId>taylor-jboss-embedded</artifactId>
      <version>1.3.0</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <reporting>
    <outputDirectory>C:\Dev\workspace\derux-master\derux-qa\target/site</outputDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-jxr-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-report-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>taglist-maven-plugin</artifactId>
        <configuration>
          <tags>
            <tag>TODO</tag>
            <tag>FIXME</tag>
            <tag>@todo</tag>
            <tag>@deprecated</tag>
            <tag>@NOT generated</tag>
          </tags>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <configuration>
          <configLocation>../checkstyle/sun_checks_eclipse.xml</configLocation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>net.taylor.maven.plugins</groupId>
        <artifactId>maven-jamon-report-plugin</artifactId>
        <version>0.0.1</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>dashboard-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </reporting>
  <properties>
    <expanded.war.dir>C:\Dev\workspace\derux-master\derux-qa\target/ear/derux-web-1.0.0-SNAPSHOT.war</expanded.war.dir>
    <jboss.configuration>all</jboss.configuration>
    <jboss.deploy.dir>C:\Dev\jboss-5.1.0.GA\/server/all/deploy</jboss.deploy.dir>
    <jboss.deploy.name>C:\Dev\jboss-5.1.0.GA\/server/all/deploy/derux-app-1.0.0-SNAPSHOT.ear</jboss.deploy.name>
    <jboss.home>C:\Dev\jboss-5.1.0.GA\</jboss.home>
    <jboss.host>localhost</jboss.host>
    <jboss.port>8080</jboss.port>
    <richfaces.version>3.3.0.GA</richfaces.version>
    <seam.version>2.1.2</seam.version>
    <taylor.version>1.3.0</taylor.version>
  </properties>
</project>

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Sun Nov 01 22:23:40 CET 2009
[INFO] Final Memory: 9M/18M
[INFO] ------------------------------------------------------------------------
C:\Dev\workspace\derux-master\derux-qa>



C:\Dev\workspace\mySampleApp-master\mySampleApp-qa>mvn install -Ptester
...
[INFO] Processing war project
[INFO] Copying webapp resources[C:\Dev\workspace\mySampleApp-master\mySampleApp-qa\src\main\webapp]
[INFO] Processing overlay[ id mySampleApp:mySampleApp-web]
[INFO] Webapp assembled in[1703 msecs]
[INFO] Building war: C:\Dev\workspace\mySampleApp-master\mySampleApp-qa\target\mySampleApp-web-1.0.0-SNAPSHOT.war
[INFO] [dependency:unpack {execution: unpack-ear}]
[INFO] Configured Artifact: mySampleApp:mySampleApp-app:1.0.0-SNAPSHOT:ear
[INFO] snapshot mySampleApp:mySampleApp-app:1.0.0-SNAPSHOT: checking for updates from repo1
[INFO] snapshot mySampleApp:mySampleApp-app:1.0.0-SNAPSHOT: checking for updates from taylor
[INFO] snapshot mySampleApp:mySampleApp-app:1.0.0-SNAPSHOT: checking for updates from jboss
[INFO] snapshot mySampleApp:mySampleApp-app:1.0.0-SNAPSHOT: checking for updates from jboss-snap
[INFO] Unpacking C:\Dokumente und Einstellungen\V\.m2\repository\mySampleApp\mySampleApp-app\1.0.0-SNAPSHOT\mySampleApp-app-1.0.0-SNAPSHOT.earto
 C:\Dev\workspace\mySampleApp-master\mySampleApp-qa\target\ear
with Includes null and excludes:null
[INFO] [install:install {execution: default-install}]
[INFO] Installing C:\Dev\workspace\mySampleApp-master\mySampleApp-qa\target\mySampleApp-web-1.0.0-SNAPSHOT.war to C:\Dokumente und Einstellungen\V\.m2\repository\mySampleApp\mySampleApp-qa\1.0.0-SNAPSHOT\mySampleApp-qa-1.0.0-SNAPSHO
T.war
[FATAL ERROR] org.codehaus.plexus.component.configurator.BasicComponentConfigurator#configureComponent(...) caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Check the realm
s:
[FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven-antrun-plugin:1.3]
urls[0] = file:/C:/Dokumente und Einstellungen/V/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar
urls[1] = file:/C:/Dokumente und Einstellungen/V/.m2/repository/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
urls[2] = file:/C:/Dokumente und Einstellungen/V/.m2/repository/ant/ant/1.5/ant-1.5.jar
urls[3] = file:/C:/Dokumente und Einstellungen/V/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
urls[4] = file:/C:/Dokumente und Einstellungen/V/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
urls[5] = file:/C:/Dokumente und Einstellungen/V/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/Dev/maven/lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error configuring: org.apache.maven.plugins:maven-antrun-plugin. Reason: java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/InputStream;)V
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43 seconds
[INFO] Finished at: Wed Oct 28 22:05:47 CET 2009
[INFO] Final Memory: 24M/44M
[INFO] ------------------------------------------------------------------------


C:\Dev\workspace\mySampleApp-master\mySampleApp-qa>mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_10
Java home: C:\Programme\Java\jdk1.6.0_10\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"