[ 
http://jira.codehaus.org/browse/MVERSIONS-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180359#action_180359
 ] 

Stephen Connolly commented on MVERSIONS-44:
-------------------------------------------

I have added your test pom.xml (as it-set-004)

This works fine for me with Maven 2.0.9 and Maven 2.1.0

What JDK and Maven version are you using.

Can you try running the integration tests in your environment...

this should be as simple as

mvn -Prun-its

but if that does not work for you, you might have to run "mvn -Pprep-its" to 
ensure that your local repository has the required dependencies (AFAIK this is 
only an issue if you are behind a http proxy)

> versions:set Fails for Projects with No Dependencies
> ----------------------------------------------------
>
>                 Key: MVERSIONS-44
>                 URL: http://jira.codehaus.org/browse/MVERSIONS-44
>             Project: Maven 2.x Versions Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-beta-1
>            Reporter: Tracy Hartford
>         Attachments: invoker.properties, pom.xml, verify.bsh
>
>
> When trying to use versions:set on a POM with no dependencies, an empty stack 
> error occurs, such as below:
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] null
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.util.EmptyStackException
>         at java.util.Stack.peek(Stack.java:79)
>         at java.util.Stack.pop(Stack.java:61)
>         at 
> org.codehaus.mojo.versions.api.PomHelper.setDependencyVersion(PomHelper.java:564)
>         at org.codehaus.mojo.versions.SetMojo.update(SetMojo.java:284)
>         at 
> org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo.process(AbstractVersionsUpdaterMojo.java:339)
>         at org.codehaus.mojo.versions.SetMojo.execute(SetMojo.java:217)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:228)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>         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)
> [INFO] 
> ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to