This seems to be the cause indeed, the scm:status goal was only added in version 1.6 of the scm plugin. You don't have a dependency on 1.5 by any chance? Try to remove the .maven/cache/maven-scm-plugin-1.5/ directory and see what happens..

-Lukas


Shute, James wrote:
Arnaud,

I've succesfully been using 1.1b2 for a while so thought I'd give this a
spin.  I'm having trouble with the scm:prepare-release goal.  I've
included the output when running with -X below.

I'm no expert but it looks a bit suspicious that the version of
maven-scm-plugin mentioned in the 2nd line below is 1.6, but in the
BUILD FAILED section is 1.5.

Is this a known issue?  I'm running on WinXP SP2 with the 1.5.0_05 JDK
if that helps in any way.  I also cleaned out the cache before starting
so it's not that causing the problem.

thanks

James

Output from maven -X scm:prepare-release:

...
Reinstalling:
 source = C:\Temp\.maven\cache\maven-scm-plugin-1.6\plugin.jelly
 project = null
 script = null
Caching Taglib Uri --> scm:transform
Caching Taglib Uri --> changes:transform
Caching Taglib Uri --> scm
Caching Taglib Uri --> scm:transform
Caching Taglib Uri --> changes:transform
Caching Taglib Uri --> scm
popping off [EMAIL PROTECTED] for
[EMAIL PROTECTED] in
com.lehman.fid:Jdialtone


BUILD FAILED
File...... file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly
Element... scm:status
Line...... 192
Column.... 158
org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/rep
ository/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/
maven/scm/command/status/StatusScmResult;
org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal
[scm:prepare-release] -- file:/C:/Temp/.maven/cache/maven-scm-plugin
-1.5/plugin.jelly:192:158: <scm:status>
org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/rep
ository/ScmRepository;Lorg/a
pache/maven/scm/ScmFileSet;)Lorg/apache/maven/scm/command/status/StatusS
cmResult;
        at org.apache.maven.werkz.Goal.fire(Goal.java:654)
        at org.apache.maven.werkz.Goal.attain(Goal.java:582)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:711
)
        at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
        at org.apache.maven.cli.App.doMain(App.java:556)
        at org.apache.maven.cli.App.main(App.java:1411)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: org.apache.commons.jelly.JellyTagException:
file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly:192:158:
<scm:status> or
g.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/repos
itory/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/ma
ven/scm/command/status/StatusScmResult;
        at
org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:1
93)
        at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:1
02)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j
ava:82)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAc
tion(MavenGoalTag.java:115)
        at org.apache.maven.werkz.Goal.fire(Goal.java:647)
        ... 11 more
Caused by: java.lang.NoSuchMethodError:
org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/rep
ository/ScmRepository;Lorg/a
pache/maven/scm/ScmFileSet;)Lorg/apache/maven/scm/command/status/StatusS
cmResult;
        at
org.apache.maven.plugins.scm.ScmStatusBean.status(ScmStatusBean.java:47)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:1
80)
        ... 16 more
Final Memory : 3M/7M




-----Original Message-----
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 11:20 PM
To: Maven Users List
Subject: Maven 1.1 RC1 SNAPSHOT needs testers

Hi everybody,

  We just deployed a new SNAPSHOT of maven 1.1 RC1 [1].   This version
incorporates 2 important changes and we would like to have your feedback
:

   -   MAVEN-1755 : We fixed the last main backward incompability with
   maven 1.0.x, this new version supports XML entities in the POM.
   -   MAVEN-1789 : The default repository is now
http://repo1.maven.org/maven/


  ( These two issues aren't yet closed because we have to update the
documentation and we are waiting for your feedback ;-) )

  Be careful, that to use this snapshot version, you'll certainly have
to define the following set of remote repositories to download
dependencies.
maven.repo.remote =
http://repo1.maven.org/maven,http://people.apache.org/repo/m1-snapshot-r
epository/

  These version includes severals plugins [4] updated since the beta 3,
and particularly the fix for MPARTIFACT-71 to avoid the error about the
rejected key of the host if you use the scp or the sftp protocols to
deploy your artifacts.

  The more feedbacks we'll have, the more stable will be the RC1 !!

  Thanks for your help...

  Cheers,

The maven team.

[1]
http://people.apache.org/repo/m1-snapshot-repository/maven/distributions
/20061009/
[2] http://jira.codehaus.org/browse/MAVEN-1755
[3] http://jira.codehaus.org/browse/MAVEN-1789
[4] http://jira.codehaus.org/browse/MAVEN-1769

------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


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

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

Reply via email to