maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Le Strat <dlest...@yahoo.com>
Subject Re: [m2a3] Basic Marmalade Plugin Not working
Date Wed, 29 Jun 2005 19:57:16 GMT
Thanks for the help.  I am making some progress.  I am
now getting: Nonexistent component:
org.codehaus.plexus.component.factory.ComponentFactorymarmalade

It looks like my component cannot be found.  I ran m2
install and my component is correctly deployed in my
local repository.

I also checked the content of my plugin.xml and
scorpion:deploy is the correct command name.  I am not
sure what's going on, any suggestion would be
appreciated.

<plugin>
  <groupId>org.apache.maven.plugins</groupId> 
  <artifactId>maven-scorpion-plugin</artifactId> 
  <version>1.0</version> 
  <goalPrefix>scorpion</goalPrefix> 
  <isolatedRealm>false</isolatedRealm> 
  <inheritedByDefault>true</inheritedByDefault> 
- <mojos>
- <mojo>
  <goal>deploy</goal> 
  <requiresProject>true</requiresProject> 
  <requiresOnline>false</requiresOnline> 
  <inheritedByDefault>true</inheritedByDefault> 
  <implementation>/deploy.mmld</implementation> 
  <language>marmalade</language> 
  <configurator>map-oriented</configurator> 
  <composer>map-oriented</composer> 
 
<instantiationStrategy>per-lookup</instantiationStrategy>

 
<executionStrategy>once-per-session</executionStrategy>

  <parameters /> 
  </mojo>
  </mojos>
  <dependencies /> 
  </plugin>

Logs are below for reference:

--------------------------------------

[ERROR] Nonexistent component:
org.codehaus.plexus.component.factory.ComponentFactorymarmalade
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Diagnosis: Error looking up plugin:
[INFO]
----------------------------------------------------------------------------
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error
looking up plugin:
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:382)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:169)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:150)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:133)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:103)
        at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
        at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
        at
org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
        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:324)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
        at
org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
        at
org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-scorpion-plugin:1.0:deploy',
it could not be created
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:311)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:416)
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:495)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:373)
        ... 15 more
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException:
Unable to create component as factory 'marmalade'
could not be found
        at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1411)
        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:307)
        ... 18 more
Caused by:
org.codehaus.plexus.component.factory.UndefinedComponentFactoryException:
Specified component factory cannot be found: marmalade
        at
org.codehaus.plexus.component.factory.DefaultComponentFactoryManager.findComponentFactory(DefaultComponentFactoryManager.java:72)
        at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1400)
        ... 21 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component
repository:
org.codehaus.plexus.component.factory.ComponentFactorymarmalade.
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:299)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:292)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:416)
        at
org.codehaus.plexus.component.factory.DefaultComponentFactoryManager.findComponentFactory(DefaultComponentFactoryManager.java:68)
        ... 22 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: < 1 second

--- Emmanuel Venisse <emmanuel@venisse.net> wrote:

> Do you have define the version of your plugin in
> your pom?
> 
> Emmanuel
> 
> David Le Strat wrote:
> > All,
> > 
> > I am build a marmalade plugin and started with the
> > basic example.  I found a similar post at
> >
>
http://marc.theaimsgroup.com/?l=turbine-maven-user&m=111942554100446
> > but no resolution suggestion. I am using m2
> alpha3.
> > 
> > My mmld file is quite basic (I used the hello
> example
> > to start):
> > 
> > <mojo xmlns="marmalade:mojo">
> >   <metadata>
> >     <goal>deploy</goal>
> >     <description>Deploy Plugin.</description>
> >   </metadata>
> >   <execute>
> >     <c:out xmlns:c="marmalade:core">Hello,
> > World</c:out>
> >   </execute>
> > </mojo>
> > 
> > After installing the plugin and executing it, it
> > complains that it cannot find
> > maven-scorpion-plugin-RELEASE.version.txt in the
> > central repository.  Full logs are below.  Does
> anyone
> > have any idea how to work around this issue?
> > 
> > Regards,
> > 
> > David Le Strat
> > 
> > ----------------------
> > 
> > m2 -e scorpion:deploy
> > 
> > + Error stacktraces are turned on.
> > [INFO]
> >
>
----------------------------------------------------------------------------
> > [INFO] Building Scorpion Portal
> > [INFO]
> >
>
----------------------------------------------------------------------------
> > [INFO] maven-scorpion-plugin: checking for updates
> > from central-plugins
> > [INFO] Retrieving release information for
> > maven-scorpion-plugin
> > FATAL ERROR: Error executing Maven for a project
> > Error stacktrace:
> > org.apache.maven.reactor.ReactorException: Error
> > executing project within the reactor
> >         at
> >
>
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:190)
> >         at
> >
>
org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
> >         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:324)
> >         at
> >
>
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
> >         at
> >
>
org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
> >         at
> >
>
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
> >         at
> >
>
org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> > Caused by:
> >
>
org.apache.maven.lifecycle.LifecycleExecutionException:
> > Error resolving plugin version
> >         at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:537)
> >         at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:149)
> >         at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:133)
> >         at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:103)
> >         at
> >
>
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
> >         at
> >
>
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
> >         ... 9 more
> > Caused by:
> >
>
org.apache.maven.plugin.version.PluginVersionResolutionException:
> > Error resolving version for
> > 'org.apache.maven.plugins:maven-scorpion-plugin':
> > Cannot resolve RELEASE version of this plugin.
> >         at
> >
>
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveReleaseVersion(DefaultPluginVersionManager.java:570)
> >         at
> >
>
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:130)
> >         at
> >
>
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:192)
> >         at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:528)
> >         ... 14 more
> > Caused by:
> >
>
org.apache.maven.artifact.resolver.ArtifactResolutionException:
> > Unable to find release for artifact
> >
>
org.apache.maven.plugins:maven-scorpion-plugin:maven-plugin:RELEASE
> >  
> >
>
org.apache.maven.plugins:maven-scorpion-plugin:RELEASE:maven-plugin
> > 
> > from the specified remote repositories:
> >   http://repo1.maven.org/maven2/plugins
> >         at
> >
>
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:88)
> >         at
> >
>
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveReleaseVersion(DefaultPluginVersionManager.java:566)
> >         ... 17 more
> > Caused by:
> >
>
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException:
> > Unable to find release for artifact
> >
>
org.apache.maven.plugins:maven-scorpion-plugin:maven-plugin:RELEASE
> >         at
> >
>
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.retrieveFromRemoteRepository(ReleaseArtifactTransformation.java:86)
> >         at
> >
>
org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:104)
> >         at
> >
>
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transformForResolve(ReleaseArtifactTransformation.java:51)
> >         at
> >
>
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:84)
> >         ... 18 more
> > Caused by:
> >
>
org.apache.maven.wagon.ResourceDoesNotExistException:
> > Unable to locate resource in repository
> >         at
> >
>
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:81)
> >         at
> >
>
org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:70)
> >         at
> >
>
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:310)
> >         at
> >
>
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:242)
> >         at
> >
>
org.apache.maven.artifact.metadata.AbstractVersionArtifactMetadata.retrieveFromRemoteRepository(AbstractVersionArtifactMetadata.java:94)
> >         at
> >
>
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.retrieveFromRemoteRepository(ReleaseArtifactTransformation.java:80)
> >         ... 21 more
> > Caused by: java.io.FileNotFoundException:
> >
>
http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-scorpion-plugin/maven-scorpion-plugin-RELEASE.version.txt
> >         at
> >
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:798)
> >         at
> 
=== message truncated ===



		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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


Mime
View raw message