Antrun plugin error

2008-12-03 Thread pankaj_sahu
Hi,

 

We want to execute ant pulgin , which should not execute with the default
targets . it should execute when we require it.

I am facing problem with ant plugin. The plugin definition is as follows an
output with different scenarios are as follows:

 



org.apache.maven.plugins

maven-antrun-plugin

1.2



  

  clean

  

run

  

  







  

  



  

 

 

Output:

Scenario 1: 

 

mvn clean

[INFO] Scanning for projects...

[INFO]


[INFO] Building jdepend

[INFO]task-segment: [clean]

[INFO]


[INFO] [clean:clean]

[INFO] Deleting directory
/home/maven/Bamboo/xml-data/build-dir/GENERAL-JDEPENDREL/build/maven/jdepend
/target

[INFO] Deleting directory
/home/maven/Bamboo/xml-data/build-dir/GENERAL-JDEPENDREL/target/site

[INFO] [antrun:run {execution: default}]

[INFO] Executing tasks

 [echo] this is a ant script embeded in maven script

[INFO] Executed tasks

[INFO]


[INFO] BUILD SUCCESSFUL

[INFO]


[INFO] Total time: 2 seconds

[INFO] Finished at: Wed Dec 03 21:17:14 IST 2008

[INFO] Final Memory: 5M/10M

[INFO]


 

Scenario 2:

 

mvn antrun:run

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'antrun'.

[INFO]


[INFO] Building jdepend

[INFO]task-segment: [antrun:run]

[INFO]


[INFO] [antrun:run]

[INFO] Executing tasks

[INFO] Executed tasks

[INFO]


[INFO] BUILD SUCCESSFUL

[INFO]


[INFO] Total time: < 1 second

[INFO] Finished at: Wed Dec 03 21:14:36 IST 2008

[INFO] Final Memory: 2M/5M

[INFO]


 

The issue is if we execute it with some default targets, it will execute the
tasks at  tags, but if we call it directly it won't get
executed. 

Please let me know the possible solution.

 

 

Thanks in advance,

Pankaj


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.


maven-antrun-plugin error

2007-02-25 Thread sam

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!


Re: [m2] maven-antrun-plugin error

2007-02-25 Thread jiangshachina

Hello,
When using maven-antrun-plugin, I think, the main work is writing Ant task
scripts.
You can use the following scripts in  tag.

  
  
  


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]



Re: [m2] maven-antrun-plugin error

2007-02-25 Thread sam
ecycle.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.

  run



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


 



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]




Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina
ng.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.
> 
>run
>  
> 
> 
> 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  tag.
>> 
>> 
>>  
>> 
>> 
>>
>> 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]



Re: [m2] maven-antrun-plugin error

2007-02-26 Thread Jo Vandermeeren
n.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.

   run



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  tag.
> 
> 
>  
> 
> 
>
> 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/li

Re: [m2] maven-antrun-plugin error

2007-02-26 Thread sam
.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.
> 
>run
>  
>
>
> 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  tag.
>> 
>> 
>>  
>> 
>> 
>>
>> 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]




Re: [m2] maven-antrun-plugin error

2007-02-26 Thread Ahmet Aytekin
d 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.
>> > 
>> > run
>> > 
>> >
>> >
>> > 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  tag.
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> 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]
>>
>>



Re: [m2] maven-antrun-plugin error

2007-02-26 Thread sam
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.
>> > 
>> > run
>> > 
>> >
>> >
>> > 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  tag.
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> 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]
>>
>>




Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina
t; > 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.
>> >> > 
>> >> > run
>> >> > 
>> >> >
>> >> >
>> >> > 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 
>> tag.
>> >> >> 
>> >> >> 
>> >> >> 
>> >> >> 
>> >> >> 
>> >> >>
>> >> >> 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]



Re: [m2] maven-antrun-plugin error

2007-02-26 Thread sam
:/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.

Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina
 >> > 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.
>> >> >> > 
>> >> >> > run
>> >> >> > 
>> >> >> >
>> >> >> >
>> >> >> > 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 
>> >> tag.
>> >> >> >> 
>> >> >> >> 
>> >> >> >> 
>> >> >> >> 
>> >> >> >> 
>> >> >> >>
>> >> >> >> 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]
>>
>>
> 
> 

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


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



Sudden maven-antrun-plugin error: Component descriptor cannot be found in the component repository

2006-07-06 Thread Graham Leggett
Hi all,

I had a small plugin config inside my ejb build that created a hibernate
har file.

I moved this plugin config from the ejb build to the ear build, and now
suddenly the maven-antrun-plugin has ceased to exist (assuming I am
reading the error correctly).

There is a bug opened with this problem at
http://jira.codehaus.org/browse/MANTRUN-37;jsessionid=apEiFlQ8GbqdNouwtQ?page=history
but it has no clear resolution.

Is there any hope?

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-antrun-plugin:1.0:run': Unable to find the
mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' in the plugin
'org.apache.maven.plugins:maven-antrun-plugin'
Component descriptor cannot be found in the component repository:
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.0:run.

Regards,
Graham
--



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