You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jonathan Ducharme <du...@gmail.com> on 2010/03/24 19:51:44 UTC

Maven release plugin problems

Hello,

I'm trying to add the release plugin to an existing project, and I'm getting
a fatal error.

I did a bit of research but nothing found nothing really that could help me
fix my problem. I'm using maven 2.2.1, and the version 2.0 of the release
plugin.

It might be more appropriate to post this on the scm user list, but I really
don't know.

[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
org.apache.maven.scm.providers.svn.settings.Settings.isUseNonInteractive()Z
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError:
org.apache.maven.scm.providers.svn.settings.Settings.isUseNonInteractive()Z
        at
org.apache.maven.scm.provider.svn.svnexe.command.SvnCommandLineUtils.getBaseSvnCommandLine(SvnComma
ndLineUtils.java:121)
        at
org.apache.maven.scm.provider.svn.svnexe.command.status.SvnStatusCommand.createCommandLine(SvnStatu
sCommand.java:83)
        at
org.apache.maven.scm.provider.svn.svnexe.command.status.SvnStatusCommand.executeStatusCommand(SvnSt
atusCommand.java:46)
        at
org.apache.maven.scm.command.status.AbstractStatusCommand.executeCommand(AbstractStatusCommand.java
:44)
        at
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
        at
org.apache.maven.scm.provider.svn.AbstractSvnScmProvider.executeCommand(AbstractSvnScmProvider.java
:371)
        at
org.apache.maven.scm.provider.svn.AbstractSvnScmProvider.status(AbstractSvnScmProvider.java:340)
        at
org.apache.maven.scm.provider.AbstractScmProvider.status(AbstractScmProvider.java:655)
        at
org.apache.maven.shared.release.phase.ScmCheckModificationsPhase.execute(ScmCheckModificationsPhase
.java:98)
        at
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:203)
        at
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:140)
        at
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:103)
        at
org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:211)
        at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:181)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.
java:569)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleEx
ecutor.java:387)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.ja
va:284)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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:597)
        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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Mar 24 14:47:47 EDT 2010
[INFO] Final Memory: 14M/508M
[INFO]
------------------------------------------------------------------------

Thanks for the help

Jonathan Ducharme

Re: Maven release plugin problems

Posted by Justin Edelson <ju...@gmail.com>.
Your scm URL syntax is wrong. Prefix those urls with scm:svn:

On Mar 24, 2010, at 12:44 PM, Jonathan Ducharme <ducharme.jonathan@gmail.com
 > wrote:

> Well from more research it's seem to be an issue with parent poms I
> have in
> my project. If I remove those parent pom, it goes as expect but with
> the
> parent pom it doesn't.
>
> I use the normal code snippet for the release plugin
>
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-release-plugin</artifactId>
>                <version>2.0</version>
>                <configuration>
>                    <tag>https://my.repo/svn/repos/scm_demo/release</
> tag>
>                </configuration>
>            </plugin>
>
> I am use the scm tag with the svn repo
>
>    <scm>
>        <connection>https://my.repo/svn/repos/scm_demo/release</
> connection>
>        <<developerConnection>>https://my.repo/svn/repos/scm_demo/release
> </<developerConnection>>
>    </scm>
>
> Beside that nothing very exotic, java 1.6_u18, a fresh maven 2.2.1
> install.
>
> Sadly, with the nature of the work, I can't release anymore info,
> nor those
> parent poms...
>
> Thanks for the help though!
>
>
>
>
> On Wed, Mar 24, 2010 at 3:06 PM, Wendy Smoak <ws...@gmail.com> wrote:
>
>> On Wed, Mar 24, 2010 at 2:51 PM, Jonathan Ducharme
>> <du...@gmail.com> wrote:
>>
>>> I'm trying to add the release plugin to an existing project, and I'm
>> getting
>>> a fatal error.
>> ...
>>> I'm using maven 2.2.1, and the version 2.0 of the release plugin.
>> ...
>>> [INFO] Trace
>>> java.lang.NoSuchMethodError:
>>>
>> org.apache.maven.scm.providers.svn.settings.Settings.isUseNonInteractive(
>> )Z
>>>       at
>>>
>> org.apache.maven.scm.provider.svn.svnexe.command.SvnCommandLineUtils.getBaseSvnCommandLine(
>> SvnComma
>>> ndLineUtils.java:121)
>>
>> Can you come up with a simple example project that demonstrates the
>> problem, and describe your environment?
>>
>> All I can tell from the error is that you're probably using
>> Subversion.  Any "interesting" configuration we should know about?
>>
>> --
>> Wendy
>>
>> ---------------------------------------------------------------------
>> 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


Re: Maven release plugin problems

Posted by Jonathan Ducharme <du...@gmail.com>.
Well from more research it's seem to be an issue with parent poms I have in
my project. If I remove those parent pom, it goes as expect but with the
parent pom it doesn't.

I use the normal code snippet for the release plugin

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                    <tag>https://my.repo/svn/repos/scm_demo/release</tag>
                </configuration>
            </plugin>

I am use the scm tag with the svn repo

    <scm>
        <connection>https://my.repo/svn/repos/scm_demo/release</connection>
        <<developerConnection>>https://my.repo/svn/repos/scm_demo/release
</<developerConnection>>
    </scm>

Beside that nothing very exotic, java 1.6_u18, a fresh maven 2.2.1 install.

Sadly, with the nature of the work, I can't release anymore info, nor those
parent poms...

Thanks for the help though!




On Wed, Mar 24, 2010 at 3:06 PM, Wendy Smoak <ws...@gmail.com> wrote:

> On Wed, Mar 24, 2010 at 2:51 PM, Jonathan Ducharme
> <du...@gmail.com> wrote:
>
> > I'm trying to add the release plugin to an existing project, and I'm
> getting
> > a fatal error.
> ...
> > I'm using maven 2.2.1, and the version 2.0 of the release plugin.
> ...
> > [INFO] Trace
> > java.lang.NoSuchMethodError:
> >
> org.apache.maven.scm.providers.svn.settings.Settings.isUseNonInteractive()Z
> >        at
> >
> org.apache.maven.scm.provider.svn.svnexe.command.SvnCommandLineUtils.getBaseSvnCommandLine(SvnComma
> > ndLineUtils.java:121)
>
> Can you come up with a simple example project that demonstrates the
> problem, and describe your environment?
>
> All I can tell from the error is that you're probably using
> Subversion.  Any "interesting" configuration we should know about?
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven release plugin problems

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Mar 24, 2010 at 2:51 PM, Jonathan Ducharme
<du...@gmail.com> wrote:

> I'm trying to add the release plugin to an existing project, and I'm getting
> a fatal error.
...
> I'm using maven 2.2.1, and the version 2.0 of the release plugin.
...
> [INFO] Trace
> java.lang.NoSuchMethodError:
> org.apache.maven.scm.providers.svn.settings.Settings.isUseNonInteractive()Z
>        at
> org.apache.maven.scm.provider.svn.svnexe.command.SvnCommandLineUtils.getBaseSvnCommandLine(SvnComma
> ndLineUtils.java:121)

Can you come up with a simple example project that demonstrates the
problem, and describe your environment?

All I can tell from the error is that you're probably using
Subversion.  Any "interesting" configuration we should know about?

-- 
Wendy

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