[ https://issues.apache.org/jira/browse/GROOVY-8305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16147472#comment-16147472 ]
ASF GitHub Bot commented on GROOVY-8305: ---------------------------------------- GitHub user apupier opened a pull request: https://github.com/apache/groovy/pull/597 GROOVY-8305: Fix default Ivy settings file for local m2 path - worth being tested on Linux - not sure how to write a test for that You can merge this pull request into a Git repository by running: $ git pull https://github.com/apupier/groovy GROOVY-8305-FixIvySettingsFile Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/597.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #597 ---- commit 9740919cee991a573a45e288f8aa7d4490dfcc4f Author: Aurélien Pupier <apup...@redhat.com> Date: 2017-08-30T15:39:44Z GROOVY-8305: Fix default Ivy settings file for local m2 path Signed-off-by: Aurélien Pupier <apup...@redhat.com> ---- > Error trying to grab a dependency available in local m2 repo when using the > default Ivy settings file provided by Groovy > ------------------------------------------------------------------------------------------------------------------------ > > Key: GROOVY-8305 > URL: https://issues.apache.org/jira/browse/GROOVY-8305 > Project: Groovy > Issue Type: Bug > Components: Grape > Affects Versions: 2.4.12 > Reporter: Aurélien Pupier > > the default Ivy settings file used is: > https://github.com/apache/groovy/blob/183b8fbf0248a2dceffbba684e50c3c2c060e46c/src/resources/groovy/grape/defaultGrapeConfig.xml#L29 > it contains: > {quote}<ibiblio name="localm2" > root="file:$\{user.home\}/.m2/repository/"{quote} > which leads to this kind of error on windows when the file is available in > the local m2 repo: > {quote}:: downloading artifacts :: > Preparing to download artifact > org.apache.camel#camel-catalog-provider-karaf;2.19.2!camel-catalog-provider-karaf.jar > trying file:C:\Users\Aurelien > Pupier/.m2/repository/org/apache/camel/camel-catalog-provider-karaf/2.19.2/camel-catalog-provider-karaf-2.19.2.jar > tried file:C:\Users\Aurelien > Pupier/.m2/repository/org/apache/camel/camel-catalog-provider-karaf/2.19.2/camel-catalog-provider-karaf-2.19.2.jar > downloading file:C:/Users/Aurelien > Pupier/.m2/repository/org/apache/camel/camel-catalog-provider-karaf/2.19.2/camel-catalog-provider-karaf-2.19.2.jar > ... > localm2: downloading file:C:/Users/Aurelien > Pupier/.m2/repository/org/apache/camel/camel-catalog-provider-karaf/2.19.2/camel-catalog-provider-karaf-2.19.2.jar > to C:\Users\Aurelien > Pupier\.groovy\grapes\org.apache.camel\camel-catalog-provider-karaf\jars\camel-catalog-provider-karaf-2.19.2.jar.part > java.lang.IllegalArgumentException: Invalid uri 'file:C:/Users/Aurelien > Pupier/.m2/repository/org/apache/camel/camel-catalog-provider-karaf/2.19.2/camel-catalog-provider-karaf-2.19.2.jar': > incorrect path{quote} -- This message was sent by Atlassian JIRA (v6.4.14#64029)