maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Venisse <emman...@venisse.net>
Subject Re: [m2a3] Basic Marmalade Plugin Not working
Date Wed, 29 Jun 2005 15:57:58 GMT
In the project that use your plugin, define this in <build> :

<plugins>
   <plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-scorpion-plugin</artifactId>
     <version>1.0</version>
   </plugin>
</plugins>

Emmanuel

David Le Strat wrote:
> Emmanuel,
> 
> This is my pom.xml
> 
> <project>
> 	<modelVersion>4.0.0</modelVersion>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-scorpion-plugin</artifactId>
> 	<version>1.0</version>
> 	<packaging>maven-plugin</packaging>
> 	<name>Scorpion Portal Deploy Plugin</name>
> 	<description>Scorpion Portal Deploy
> Plugin</description>
> 	<url />
> 	<issueManagement />
> 	<ciManagement />
> 	<developers/>
> 	<dependencies></dependencies>
> 	<organization />
> 	<build>
> 	
> <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
> 
> 		<!-- Since the script source directory is only a
> marker for a resource, you
> 			 still have to declare that directory for resource
> inclusion when you
> 			 build.
> 		-->
> 		<resources>
> 			<resource>
> 				<directory>src/main/scripts</directory>
> 				<includes>
> 					<include>**/*.mmld</include>
> 				</includes>
> 			</resource>
> 		</resources>
> 	</build>
> 	<distributionManagement />
> 	<modules />
> 	<scm />
> </project>
> 
> --- 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
> 
> 
> 


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


Mime
View raw message