Hi,
> file="D:\workspace\maven_itms\target\maven_itms-1.0\WEB-INF\lib\*.jar" 
I think the statement is wrong.
If you want to deal with multi-files, you may use "fileset", not wildcard.

Please try the scripts below,
<copy
  todir="D:/jboss-4.0.4.GA/server/claim/lib"
        overwrite="true">
    <fileset dir="D:/workspace/maven_itms/target/maven_itms-1.0/WEB-INF/lib"
/>
</copy>

a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
> 
> Hi,
>     I have used the exact path to WEB-INF directory on my file system like
> this:
> 
> <plugin>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <executions>
>           <execution>
> 
>             <goals>
>               <goal>run</goal>
>             </goals>
>             <configuration>
>               <tasks>
>                 <copy overwrite="true"
> file="D:\workspace\maven_itms\target\maven_itms-1.0\WEB-INF\lib\*.jar"
> todir="D:\jboss-4.0.4.GA\server\claim\lib\"></copy>
>               </tasks>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
> But when I excute "mvn antrun:run" ,It did not  copy the jars which is
> under
> the D:\workspace\maven_itms\target\maven_itms-1.0\WEB-INF\lib\ directory
> to
> the D:\jboss-4.0.4.GA\server\claim\lib\ directory . It seems like the
> antrun
> plugin has no effect?
> 
> 
> 2007/2/26, Ahmet Aytekin <[EMAIL PROTECTED]>:
>>
>> What do you mean "/of course,there is not a directory
>> *D:\workspace\maven_itms\WEB-INF\lib\*.*/ " ?
>> The following configuration means there is WEB-INF directory at the same
>> level with your pom.xml.
>> It cannot find the WEB-INF/lib/*.* directory. Try use exact path to
>> WEB-INF directory on your file system in the following part.
>>
>> Try to <copy overwrite="true"
>> > file="WEB-INF/lib/*.*"
>> > todir="D:\jboss-4.0.4.GA\server\claim\lib\">
>> > </copy>
>>
>> Maruf
>>
>> sam wrote:
>> > HI,
>> > I have resolved the trouble just now.It seems like my ant-1.6.5.jar is
>> > incomplete/corrupt,I have downloaded it again,and the trouble has been
>> > resolved.but when I excute "compile",the new problem was reported:
>> > Trace
>> > org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> > executing ant
>> > tasks
>> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
>> > DefaultLifecycleExecutor.java:559)
>> > at
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
>> >
>> > (DefaultLifecycleExecutor.java:475)
>> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
>> > DefaultLifecycleExecutor.java:454)
>> > at
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
>> >
>> > (DefaultLifecycleExecutor.java:306)
>> > at
>> >
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
>> > DefaultLifecycleExecutor.java:273)
>> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
>> > DefaultLifecycleExecutor.java:140)
>> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>> > 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:585)
>> > 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.MojoExecutionException: Error
>> > executing
>> > ant tasks
>> > at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(
>> > AbstractAntMojo.java:114)
>> > at
>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
>> > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
>> > DefaultPluginManager.java:412)
>> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
>> > DefaultLifecycleExecutor.java:534)
>> > ... 16 more
>> > *Caused by: Warning: Could not find file
>> > D:\workspace\maven_itms\WEB-INF\lib\*.* to copy.
>> > at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:394)
>> > * at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
>> :275)
>> > at org.apache.tools.ant.Task.perform(Task.java:364)
>> > at org.apache.tools.ant.Target.execute(Target.java:341)
>> > at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(
>> > AbstractAntMojo.java:108)
>> > ... 19 more
>> > of course,there is not a directory
>> > *D:\workspace\maven_itms\WEB-INF\lib\*.*
>> > ,*
>> > * I just want to deploy all of the 3th party jars in the directory
>> > $JBOSS_HOME/server/ProjectName/lib.
>> > * For now,I have added configuration like this:
>> > <build>
>> > <plugins>
>> > .
>> > .
>> > .
>> > <plugin>
>> > <artifactId>maven-antrun-plugin</artifactId>
>> > <executions>
>> > <execution>
>> > <phase>generate-resources</phase>
>> > <goals>
>> > <goal>run</goal>
>> > </goals>
>> > <configuration>
>> > <tasks>
>> > <copy overwrite="true"* file="WEB-INF/lib/*.*"
>> > todir="D:\jboss-4.0.4.GA\server\claim\lib\"*></copy>
>> > </tasks>
>> > </configuration>
>> > </execution>
>> > </executions>
>> > </plugin>
>> > ........
>> > </plugins>
>> > </build>
>> >
>> >
>> >
>> >
>> > 2007/2/26, jiangshachina <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >> Hello,
>> >> You always encountered some "strange" trouble :-D
>> >> May other friends can help you ^_^
>> >> I'm very sorry.
>> >>
>> >> a cup of Java, cheers!
>> >> Sha Jiang
>> >>
>> >>
>> >> 秋秋 wrote:
>> >> >
>> >> > HI,
>> >> > jiagsha,Long time no see,I use the maven-antrun-plugin by the method
>> >> > you
>> >> > gave last time,I have done this configuration:
>> >> > <plugin>
>> >> > <artifactId>maven-antrun-plugin</artifactId>
>> >> > <executions>
>> >> > <execution>
>> >> > <phase>generate-resources</phase>
>> >> > <goals>
>> >> > <goal>run</goal>
>> >> > </goals>
>> >> > <configuration>
>> >> > <tasks>
>> >> > <copy overwrite="true"
>> >> > file="WEB-INF/lib/*.*"
>> >> > todir="D:\jboss-4.0.4.GA\server\claim\lib\">
>> >> > </copy>
>> >> > </tasks>
>> >> > </configuration>
>> >> > </execution>
>> >> > </executions>
>> >> > </plugin>
>> >> >
>> >> > but when I excute "compile",It still report a error:
>> >> >
>> >> >
>> >> >
>> >> > + Error stacktraces are turned on.
>> >> > Maven version: 2.0.4
>> >> > [DEBUG] Building Maven user-level plugin registry from:
>> 'C:\Documents
>> >> and
>> >> > Settings\Administrator\.m2\plugin-registry.xml'
>> >> > [DEBUG] Building Maven global-level plugin registry from: 'E:\maven-
>> >> > 2.0.4\conf\plugin-registry.xml'
>> >> > [INFO] Scanning for projects...
>> >> > [INFO]
>> >> >
>> >>
>> ----------------------------------------------------------------------------
>> >>
>> >> > [INFO] Building pcie Maven Webapp
>> >> > [INFO] task-segment: [compile]
>> >> > [INFO]
>> >> >
>> >>
>> ----------------------------------------------------------------------------
>> >>
>> >> > [DEBUG] maven-resources-plugin: resolved to version 2.2 from
>> >> repository
>> >> > central
>> >> > [DEBUG] Retrieving parent-POM:
>> >> org.apache.maven.plugins:maven-plugins::1
>> >> > for
>> >> > project: null:maven-resources-plugin:maven-plugin:2.2 from the
>> >> repository.
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
>> >> > project:
>> >> > org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
>> >> > [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
>> >> > org.apache.maven:maven-parent:pom:1 from the repository.
>> >> > [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from
>> >> repository
>> >> > central
>> >> > [DEBUG] Retrieving parent-POM:
>> >> org.apache.maven.plugins:maven-plugins::1
>> >> > for
>> >> > project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the
>> >> > repository.
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
>> >> > project:
>> >> > org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
>> >> > [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
>> >> > org.apache.maven:maven-parent:pom:1 from the repository.
>> >> > [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from
>> >> repository
>> >> > central
>> >> > [DEBUG] Retrieving parent-POM:
>> >> org.apache.maven.plugins:maven-plugins::1
>> >> > for
>> >> > project: null:maven-site-plugin:maven-plugin:2.0-beta-5 from the
>> >> > repository.
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
>> >> > project:
>> >> > org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
>> >> > [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
>> >> > org.apache.maven:maven-parent:pom:1 from the repository.
>> >> > [DEBUG] Retrieving parent-POM:
>> >> > org.apache.maven.plugins:maven-plugin-parent::2.0.1 for project:
>> >> > null:maven-antrun-plugin:maven-plugin:1.1 from the repository.
>> >> > [DEBUG] com.novi.pcie:pcie:war:1.0-SNAPSHOT (selected for null)
>> >> > [DEBUG] test:testrepository:jar:1.0.0:compile (selected for compile)
>> >> > [DEBUG] spring:spring:jar:1.2.0:compile (selected for compile)
>> >> > [DEBUG] junit:junit:jar:3.8.1:test (selected for test)
>> >> > [DEBUG]
>> >> >
>> org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1:runtime
>> >> (selected
>> >> > for runtime)
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
>> >> project:
>> >> > null:maven-project:jar:2.0.1 from the repository.
>> >> > [DEBUG] org.apache.maven:maven-project:jar:2.0.1:runtime (selected
>> for
>> >> > runtime)
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
>> >> project:
>> >> > org.apache.maven:maven-model:jar:2.0.1 from the repository.
>> >> > [DEBUG] org.apache.maven:maven-model:jar:2.0.1:runtime (selected for
>> >> > runtime)
>> >> > [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
>> >> > project: null:plexus-utils:jar:1.0.5 from the repository.
>> >> > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime(selected
>> >> > for runtime)
>> >> > [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime(selected
>> >> > for runtime)
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
>> >> project:
>> >> > null:maven-profile:jar:2.0.1 from the repository.
>> >> > [DEBUG] org.apache.maven:maven-profile:jar:2.0.1:runtime (selected
>> >> for
>> >> > runtime)
>> >> > [DEBUG] Retrieving parent-POM:
>> >> > org.codehaus.plexus:plexus-containers::1.0.3for project:
>> >> > null:plexus-container-default:jar:
>> >> > 1.0-alpha-9 from the repository.
>> >> > [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
>> >> > project: org.codehaus.plexus:plexus-containers:pom:1.0.3 from the
>> >> > repository.
>> >> > [DEBUG]
>> >> > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime
>> >> (selected
>> >> > for runtime)
>> >> > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
>> >> > (removed
>> >> > - nearer found: 1.0.5)
>> >> > [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
>> >> > [DEBUG]
>> >> > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime
>> >> (selected
>> >> > for runtime)
>> >> > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime(removed
>> >> > -
>> >> > nearer found: 1.0.5)
>> >> > [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
>> >> > for
>> >> > runtime)
>> >> > [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
>> >> > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (selected
>> >> > for
>> >> > runtime)
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
>> >> project:
>> >> > org.apache.maven:maven-artifact-manager:jar:2.0.1 from the
>> repository.
>> >> > [DEBUG]
>> >> > org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime(selected
>> >> > for runtime)
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
>> >> project:
>> >> > org.apache.maven:maven-repository-metadata:jar:2.0.1 from the
>> >> repository.
>> >> > [DEBUG]
>> >> >
>> org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime(selected
>> >> > for runtime)
>> >> > [DEBUG]
>> >> > org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
>> >> > (selected
>> >> > for runtime)
>> >> > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
>> >> > (removed
>> >> > - nearer found: 1.0.5)
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
>> >> project:
>> >> > org.apache.maven:maven-artifact:jar:2.0.1 from the repository.
>> >> > [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime(selected
>> >> > for runtime)
>> >> > [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
>> >> > for
>> >> > runtime)
>> >> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
>> >> project:
>> >> > org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
>> >> > [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.1:runtime
>> (selected
>> >> > for
>> >> > runtime)
>> >> > [DEBUG] ant:ant:jar:1.6.5:runtime (selected for runtime)
>> >> > [DEBUG] ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
>> >> > -----------------------------------------------------
>> >> > this realm = app0.child-container[
>> >> > org.apache.maven.plugins:maven-antrun-plugin]
>> >> > urls[0] = file:/C:/Documents and
>> >> >
>> >>
>> Settings/Administrator/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-
>> >>
>> >> > antrun-plugin-1.1.jar
>> >> > urls[1] = file:/C:/Documents and
>> >> > Settings/Administrator/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar
>> >> > urls[2] = file:/C:/Documents and
>> >> > Settings/Administrator/.m2/repository/ant/ant-launcher/1.6.5/ant-
>> >> > launcher-1.6.5.jar
>> >> > Number of imports: 0
>> >> >
>> >> >
>> >> > this realm = plexus.core.maven
>> >> > urls[0] = file:/E:/maven-2.0.4/lib/maven-plugin-descriptor-2.0.4.jar
>> >> > urls[1] = file:/E:/maven-2.0.4/lib/jsch-0.1.24.jar
>> >> > urls[2] =
>> >> > file:/E:/maven-2.0.4/lib/plexus-interactivity-api-1.0-alpha-4.jar
>> >> > urls[3] = file:/E:/maven-2.0.4/lib/maven-error-diagnostics-2.0.4.jar
>> >> > urls[4] = file:/E:/maven-2.0.4/lib/wagon-ssh-1.0-alpha-7.jar
>> >> > urls[5] = file:/E:/maven-2.0.4/lib/maven-monitor-2.0.4.jar
>> >> > urls[6] = file:/E:/maven-2.0.4/lib/maven-
>> repository-metadata-2.0.4.jar
>> >> > urls[7] = file:/E:/maven-2.0.4/lib/commons-cli-1.0.jar
>> >> > urls[8] = file:/E:/maven-2.0.4/lib/maven-
>> >> > plugin-parameter-documenter-2.0.4.jar
>> >> > urls[9] = file:/E:/maven-2.0.4/lib/maven-model-2.0.4.jar
>> >> > urls[10] = file:/E:/maven-2.0.4/lib/maven-artifact-2.0.4.jar
>> >> > urls[11] = file:/E:/maven-2.0.4/lib/maven-settings-2.0.4.jar
>> >> > urls[12] = file:/E:/maven-2.0.4/lib/wagon-
>> provider-api-1.0-alpha-6.jar
>> >> > urls[13] = file:/E:/maven-2.0.4/lib/wagon-file-1.0-alpha-7.jar
>> >> > urls[14] = file:/E:/maven-2.0.4/lib/maven-artifact-manager-2.0.4.jar
>> >> > urls[15] = file:/E:/maven-2.0.4/lib/maven-plugin-api-2.0.4.jar
>> >> > urls[16] = file:/E:/maven-2.0.4/lib/maven-plugin-registry-2.0.4.jar
>> >> > urls[17] = file:/E:/maven-2.0.4/lib/maven-profile-2.0.4.jar
>> >> > urls[18] = file:/E:/maven-2.0.4/lib/maven-core-2.0.4.jar
>> >> > urls[19] = file:/E:/maven-2.0.4/lib/maven-reporting-api-2.0.4.jar
>> >> > urls[20] = file:/E:/maven-2.0.4/lib/maven-project-2.0.4.jar
>> >> > urls[21] = file:/E:/maven-2.0.4/lib/wagon-
>> ssh-external-1.0-alpha-6.jar
>> >> > urls[22] = file:/E:/maven-2.0.4/lib/doxia-sink-api-1.0-alpha-7.jar
>> >> > urls[23] = file:/E:/maven-2.0.4/lib/wagon-
>> >> http-lightweight-1.0-alpha-6.jar
>> >> > Number of imports: 0
>> >> >
>> >> >
>> >> > this realm = plexus.core
>> >> > urls[0] =
>> >> > file:/E:/maven-2.0.4/core/plexus-container-default-1.0-alpha-9.jar
>> >> > urls[1] = file:/E:/maven-2.0.4/core/plexus-utils-1.1.jar
>> >> > Number of imports: 0
>> >> > -----------------------------------------------------
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > [ERROR] BUILD ERROR
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > [INFO] Internal error in the plugin manager executing goal '
>> >> > org.apache.maven.plugins:maven-antrun-plugin:1.1:run': Unable to
>> find
>> >> the
>> >> > mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' in the
>> >> plugin
>> >> > '
>> >> > org.apache.maven.plugins:maven-antrun-plugin'
>> >> > org/apache/tools/ant/PropertyHelper
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > *[DEBUG] Trace*
>> >> > org.apache.maven.lifecycle.LifecycleExecutionException: Internal
>> error
>> >> in
>> >> > the plugin manager executing goal '
>> >> > org.apache.maven.plugins:maven-antrun-plugin:1.1:run': Unable to
>> find
>> >> the
>> >> > mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' in the
>> >> plugin
>> >> > '
>> >> > org.apache.maven.plugins:maven-antrun-plugin'
>> >> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
>> >> > DefaultLifecycleExecutor.java:538)
>> >> > at
>> >> >
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
>> >>
>> >> > (DefaultLifecycleExecutor.java:475)
>> >> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
>> >> > DefaultLifecycleExecutor.java:454)
>> >> > at
>> >> >
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
>> >>
>> >> > (DefaultLifecycleExecutor.java:306)
>> >> > at
>> >> >
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
>> (
>> >> > DefaultLifecycleExecutor.java:273)
>> >> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
>> >> > DefaultLifecycleExecutor.java:140)
>> >> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>> >> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>> >> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>> >> > 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:585)
>> >> > 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.PluginManagerException: Unable to
>> >> find
>> >> > the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' in
>> the
>> >> > plugin 'org.apache.maven.plugins:maven-antrun-plugin'
>> >> > at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
>> >> > DefaultPluginManager.java:533)
>> >> > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
>> >> > DefaultPluginManager.java:390)
>> >> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
>> >> > DefaultLifecycleExecutor.java:534)
>> >> > ... 16 more
>> >> > *Caused by:*
>> >> >
>> >>
>> org.codehaus.plexus.component.repository.exception.ComponentLookupException
>> >>
>> >> :
>> >> > Unable to lookup component '
>> >> >
>> >>
>> org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.1:run
>> >>
>> >> ',
>> >> > it could not be created
>> >> > at org.codehaus.plexus.DefaultPlexusContainer.lookup(
>> >> > DefaultPlexusContainer.java:335)
>> >> > at org.codehaus.plexus.DefaultPlexusContainer.lookup(
>> >> > DefaultPlexusContainer.java:440)
>> >> > at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
>> >> > DefaultPluginManager.java:524)
>> >> > ... 18 more
>> >> > Caused by:
>> >> >
>> org.codehaus.plexus.component.factory.ComponentInstantiationException
>> :
>> >> > Could
>> >> > not instanciate component: role: 'null', implementation: '
>> >> > org.apache.maven.plugin.antrun.AntRunMojo'
>> >> > at
>> >> >
>> >>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException
>> >>
>> >> > (JavaComponentFactory.java:77)
>> >> > at
>> >> >
>> >>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance
>> >>
>> >> (
>> >> > JavaComponentFactory.java:62)
>> >> > at
>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance
>> (
>> >> > DefaultPlexusContainer.java:1464)
>> >> > at
>> >> >
>> >>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance
>> >>
>> >> > (AbstractComponentManager.java:93)
>> >> > at
>> >> >
>> >>
>> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent
>> >>
>> >> > (PerLookupComponentManager.java:48)
>> >> > at org.codehaus.plexus.DefaultPlexusContainer.lookup(
>> >> > DefaultPlexusContainer.java:331)
>> >> > ... 20 more
>> >> > Caused by: java.lang.NoClassDefFoundError:
>> >> > org/apache/tools/ant/PropertyHelper
>> >> > at java.lang.Class.getDeclaredConstructors0(Native Method)
>> >> > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
>> >> > at java.lang.Class.getConstructor0(Class.java:2640)
>> >> > at java.lang.Class.newInstance0(Class.java:321)
>> >> > at java.lang.Class.newInstance(Class.java:303)
>> >> > at
>> >> >
>> >>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance
>> >>
>> >> (
>> >> > JavaComponentFactory.java:44)
>> >> > ... 24 more
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > [INFO] Total time: 4 seconds
>> >> > [INFO] Finished at: Mon Feb 26 14:21:06 CST 2007
>> >> > [INFO] Final Memory: 3M/6M
>> >> > [INFO]
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> > And I create a new project which was added the same
>> >> configuration,It get
>> >> > the
>> >> > same error when I excute "compile",It seems like there is no jar of
>> >> antrun
>> >> > in the repository,but actually,there is a
>> >> maven-antrun-plugin-1.1.jar in
>> >> > the
>> >> > directory C:\Documents and
>> >> >
>> >>
>> Settings\Administrator\.m2\repository\org\apache\maven\plugins\maven-antrun-plugin\1.1,
>> >>
>> >> > when I removed the following configuration,the "compile" can be
>> >> excuted
>> >> > successful.
>> >> > <goals>
>> >> > <goal>run</goal>
>> >> > </goals>
>> >> >
>> >> >
>> >> > Is there anubody tell me why?
>> >> >
>> >> >
>> >> > 2007/2/26, jiangshachina <[EMAIL PROTECTED]>:
>> >> >>
>> >> >>
>> >> >> Hello,
>> >> >> When using maven-antrun-plugin, I think, the main work is writing
>> Ant
>> >> >> task
>> >> >> scripts.
>> >> >> You can use the following scripts in <execution><configuration>
>> tag.
>> >> >> <tasks>
>> >> >> <copy todir="path_to_JBoss_some_lib_dir" overwrite="true">
>> >> >> <fileset dir="path_to_some_lib_dir" />
>> >> >> </copy>
>> >> >> </tasks>
>> >> >>
>> >> >> a cup of Java, cheers!
>> >> >> Sha Jiang
>> >> >>
>> >> >>
>> >> >> 秋秋 wrote:
>> >> >> >
>> >> >> > Hello,
>> >> >> > Everybody! ,I want to deploy all of the 3th party jars in the
>> >> >> > directory
>> >> >> >
>> >> >> > $JBOSS_HOME/server/ProjectName/lib,How can I do?What plugins can
>> I
>> >> use?
>> >> >> >
>> >> >> >
>> >> >> > thanks in advance!
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/maven-antrun-plugin-error-tf3290825s177.html#a9153567
>> >>
>> >> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/maven-antrun-plugin-error-tf3290825s177.html#a9154804
>> >>
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/maven-antrun-plugin-error-tf3290825s177.html#a9173494
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to