groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien Pupier (JIRA) <>
Subject [jira] [Commented] (GROOVY-8305) Error trying to grab a dependency available in local m2 repo when using the default Ivy settings file provided by Groovy
Date Fri, 15 Sep 2017 12:30:00 GMT


Aurélien Pupier commented on GROOVY-8305:

steps to reproduce (sorry not found easier ones):
- ensure you have .m2/repository/org/apache/camel/camel-catalog-provider-karaf/2.19.2/camel-catalog-provider-karaf-2.19.2.jar
- ensure you have no camel-catalog-provider-karaf-2.19.2.jar in .groovy/grapes cache
- Install [Fuse Tooling |] that you can download
- Click File -> New -> Fuse Integration project
- click next
- put version to 2.19.2
- click Finish

- open Error log
-- Window -> Show view -> other...
-- Choose "Error log"
--> if you hit the issue you will see a message "Unable to load Camel Catalog for version
2.19.2. Please check your connection and your local .m2 repository."
Please note that there is a button "Open log" if you want to see more traces
Please note that i can't see the Ivy log (in case and ivy.message.logger.level=4
has been set, not sure why for now, i can see them only in osgi console)

> 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:
>             Project: Groovy
>          Issue Type: Bug
>          Components: Grape
>    Affects Versions: 2.4.12
>            Reporter: Aurélien Pupier
>         Attachments: screenshot-1.png, screenshot-2.png
> the default Ivy settings file used is:
> 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

View raw message