[jira] [Commented] (GROOVY-9312) Recent grape changes break certain usage on Windows

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (GROOVY-9312) Recent grape changes break certain usage on Windows

Paul King (Jira)

    [ https://issues.apache.org/jira/browse/GROOVY-9312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985886#comment-16985886 ]

Paul King commented on GROOVY-9312:
-----------------------------------

I still see errors like below on windows for the test suite:
{noformat}
groovy.grape.GrapeIvyTest > testResolveSucceedsFromLocalMavenRepository FAILED
    java.lang.IllegalStateException: Maven application directory was not specified, and ${maven.home} is not provided in the system properties. Please specify at least on of these.
        at org.apache.maven.shared.invoker.MavenCommandLineBuilder.checkRequiredState(MavenCommandLineBuilder.java:126)
        at org.apache.maven.shared.invoker.MavenCommandLineBuilder.build(MavenCommandLineBuilder.java:61)
        at org.apache.maven.shared.invoker.DefaultInvoker.execute(DefaultInvoker.java:100)
        at org.apache.maven.shared.invoker.Invoker$execute.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
        at TestScript9.run(TestScript9.groovy:7)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:431)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:465)
        at groovy.lang.GroovyShell.evaluate(GroovyShell.java:450)
        at groovy.test.GroovyAssert.assertScript(GroovyAssert.java:80)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
        at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:131)
        at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:100)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:196)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:208)
        at groovy.grape.GrapeIvyTest.testResolveSucceedsFromLocalMavenRepository(GrapeIvyTest.groovy:501)
{noformat}


> Recent grape changes break certain usage on Windows
> ---------------------------------------------------
>
>                 Key: GROOVY-9312
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9312
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Grape
>         Environment: Windows 10
>            Reporter: Paul King
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 3.0.0-rc-2
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The following code works in 3.0.0-rc-1 but fails in master and the 3_0_X branch:
> {code}
> @Grab('net.jqwik:jqwik:1.1.4')
> import groovy.transform.CompileStatic
> import net.jqwik.api.ForAll
> import net.jqwik.api.Property
> import net.jqwik.api.constraints.IntRange;
> @CompileStatic
> class Jsr308 {
>     @Property
>     boolean 'size zero or positive'(
>             @ForAll List<Integer> items
>     ) {
>         items.size() >= 0
>     }
> }
> {code}
> The error is:
> {noformat}
> java.lang.IllegalArgumentException: org.opentest4j#opentest4j;1.1.1!opentest4j.jar origin location must be absolute: file:C:/Users/Paul King/.m2/repository/org/opentest4j/opentest4j/1.1.1/opentest4j-1.1.1.jar
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)