dev@glassfish.java.net

Re: V3 build error

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Tue, 22 Jan 2008 14:27:34 -0800

Still not working for me...I deleted the entire repository and then
did 'mvn clean install'

ing: http://repo1.maven.org/maven2/ant/ant-launcher/1.6.5/ant-
launcher-1.6.5.jar
8K downloaded
-----------------------------------------------------
this realm = app0.child-container[org.apache.maven.plugins:maven-
antrun-plugin]
urls[0] = file:/v3/repo/org/apache/maven/plugins/maven-antrun-plugin/
1.1/maven-antrun-plugin-1.1.jar
urls[1] = file:/v3/repo/ant/ant/1.6.5/ant-1.6.5.jar
urls[2] = file:/v3/repo/org/codehaus/plexus/plexus-utils/1.1/plexus-
utils-1.1.jar
urls[3] = file:/v3/repo/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
Number of imports: 4
import: org.codehaus.classworlds.Entry_at_4891bb28
import: org.codehaus.classworlds.Entry_at_f8e44ca4
import: org.codehaus.classworlds.Entry_at_c51bc9e7
import: org.codehaus.classworlds.Entry_at_bece5185


this realm = plexus.core
urls[0] = file:/tools/maven-2.0.7/lib/maven-core-2.0.7-uber.jar
urls[1] = file:/v3/repo/org/glassfish/build/maven-glassfish-extension/
1.0-SNAPSHOT/maven-glassfish-extension-1.0-SNAPSHOT.jar
urls[2] = file:/v3/repo/org/codehaus/plexus/plexus-utils/1.1/plexus-
utils-1.1.jar
Number of imports: 4
import: org.codehaus.classworlds.Entry_at_4891bb28
import: org.codehaus.classworlds.Entry_at_f8e44ca4
import: org.codehaus.classworlds.Entry_at_c51bc9e7
import: org.codehaus.classworlds.Entry_at_bece5185
-----------------------------------------------------
[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]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 minutes 1 second
[INFO] Finished at: Tue Jan 22 14:09:04 PST 2008
[INFO] Final Memory: 26M/63M
[INFO]
------------------------------------------------------------------------
dhcp-usca14-133-154:/v3/code lloyd$
dhcp-usca14-133-154:/v3/code lloyd$


On Jan 22, 2008, at 1:29 PM, Jerome Dochez wrote:

> somehow the ~/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar file I got
> was incorrect, deleting the local copy and doing mvn clean install
> fixed the problem. I am a bit confused on how we got this incorrect
> ant-1.6.5.jar in the first place...
>
> jerome
>
> On Jan 22, 2008, at 1:18 PM, Lloyd L Chambers wrote:
>
>> Thanks.
>>
>> On Jan 22, 2008, at 1:16 PM, Jerome Dochez wrote:
>>
>>>
>>> I have the same problem, something is broken, no idea what it is
>>> yet...
>>>
>>> jerome
>>>
>>> On Jan 22, 2008, at 1:11 PM, Lloyd L Chambers wrote:
>>>
>>>> I can't get V3 to build today (though it built fine last week).
>>>>
>>>> I've removed the repository, updated all the code, etc.
>>>>
>>>> Was this an 'ant' problem? What do I have to do to fix it?
>>>>
>>>> (Mac OS X)
>>>>
>>>> Lloyd
>>>>
>>>>
>>>> [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]
>>>> -------------------------------------------------------------------
>>>> -----
>>>> [INFO] 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:543)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWith
>>>> Lifecycle(DefaultLifecycleExecutor.java:480)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
>>>> (DefaultLifecycleExecutor.java:459)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndH
>>>> andleFailures(DefaultLifecycleExecutor.java:311)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegm
>>>> ents(DefaultLifecycleExecutor.java:278)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
>>>> (DefaultLifecycleExecutor.java:143)
>>>> at org.apache.maven.DefaultMaven.doExecute
>>>> (DefaultMaven.java:334)
>>>> at org.apache.maven.DefaultMaven.execute
>>>> (DefaultMaven.java:125)
>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>>>> 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:571)
>>>> at
>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo
>>>> (DefaultPluginManager.java:421)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
>>>> (DefaultLifecycleExecutor.java:539)
>>>> ... 16 more
>>>> Caused by:
>>>> org.codehaus.plexus.component.repository.exception.ComponentLookupE
>>>> xception: 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:562)
>>>> ... 18 more
>>>> Caused by:
>>>> org.codehaus.plexus.component.factory.ComponentInstantiationExcepti
>>>> on: Could not instanciate component: role: 'null',
>>>> implementation: 'org.apache.maven.plugin.antrun.AntRunMojo'
>>>> at
>>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.mak
>>>> eException(JavaComponentFactory.java:77)
>>>> at
>>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.new
>>>> Instance(JavaComponentFactory.java:62)
>>>> at
>>>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(
>>>> DefaultPlexusContainer.java:1464)
>>>> at
>>>> org.codehaus.plexus.component.manager.AbstractComponentManager.crea
>>>> teComponentInstance(AbstractComponentManager.java:93)
>>>> at
>>>> org.codehaus.plexus.component.manager.PerLookupComponentManager.get
>>>> Component(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:2357)
>>>> at java.lang.Class.getConstructor0(Class.java:2671)
>>>> at java.lang.Class.newInstance0(Class.java:321)
>>>> at java.lang.Class.newInstance(Class.java:303)
>>>> at
>>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.new
>>>> Instance(JavaComponentFactory.java:44)
>>>> ... 24 more
>>>> [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>> [INFO] Total time: 19 seconds
>>>> [INFO] Finished at: Tue Jan 22 13:09:35 PST 2008
>>>> [INFO] Final Memory: 21M/41M
>>>> [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>>
>>>>
>>>> ---
>>>> Lloyd L Chambers
>>>> lloyd.chambers_at_sun.com
>>>> Sun Microsystems, Inc
>>>>
>>>>
>>>>
>>>
>>
>> ---
>> Lloyd L Chambers
>> lloyd.chambers_at_sun.com
>> Sun Microsystems, Inc
>>
>>
>>
>

---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc