Quantcast

Ivy dependency resolving: pattern must be absolute

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Ivy dependency resolving: pattern must be absolute

Radim Kolar
I am on windows OS. I tried to upgrade 1.2 grails application to 1.3 but
i could not get springcache plugin resolved by ivy:

error is:

Welcome to Grails 1.3.7 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\Grails-1.3.7

Base Directory: C:\Documents and Settings\majitel\workspace-sts\Whois
WARNING: Dependencies cannot be resolved for plugin [springcache] due to
error:
ivy pattern must be absolute:
         C:\m2
   
/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).pom
Resolving dependencies...

Buildconfig.groovy. Note that mavenLocal is commented

    repositories {
         grailsPlugins()
         grailsHome()
         grailsCentral()

         // uncomment the below to enable remote dependency resolution
         // from public Maven repositories
         //mavenLocal()
         //mavenCentral()
         //mavenRepo "http://snapshots.repository.codehaus.org"
         //mavenRepo "http://repository.codehaus.org"
         //mavenRepo "http://download.java.net/maven/2/"
         //mavenRepo "http://repository.jboss.com/maven2/"
     }

In my per user maven settings.xml i have

<localRepository>
         C:\m2
</localRepository>

changing it to c:/m2 didnt helped, ivy does not consider it absolute also.

Is there way to ignore mavelLocal() ? it seems to be always enabled.
There was bug http://jira.codehaus.org/browse/GRAILS-5909 mavenCentral()
is always included. Maybe there is same bug for mavenLocal()

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

Radim Kolar

> Is there way to ignore mavelLocal() ? it seems to be always enabled.
> There was bug http://jira.codehaus.org/browse/GRAILS-5909 
> mavenCentral() is always included. Maybe there is same bug for
> mavenLocal()
>
adding
    repositories {
         inherits false // <-- THIS LINE
         grailsPlugins()
         grailsHome()
         grailsCentral()
     }
does not helps. I am only one user who is using localMaven Repo on
windows OS?

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

Radim Kolar

> adding
>    repositories {
>         inherits false // <-- THIS LINE
>         grailsPlugins()
>         grailsHome()
>         grailsCentral()
>     }
> does not helps. I am only one user who is using localMaven Repo on
> windows OS?
only way to fix it seems to be remove <localRepository> from maven
settings.xml

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

ld@ldaley.com
In reply to this post by Radim Kolar
That seems to be a strange value for localRepository, have you changed it from the default?
On 13/03/2011, at 2:16 AM, Radim Kolar wrote:

> I am on windows OS. I tried to upgrade 1.2 grails application to 1.3 but i could not get springcache plugin resolved by ivy:
>
> error is:
>
> Welcome to Grails 1.3.7 - http://grails.org/
> Licensed under Apache Standard License 2.0
> Grails home is set to: C:\Grails-1.3.7
>
> Base Directory: C:\Documents and Settings\majitel\workspace-sts\Whois
> WARNING: Dependencies cannot be resolved for plugin [springcache] due to error:
> ivy pattern must be absolute:
>        C:\m2
>  /[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).pom
> Resolving dependencies...
>
> Buildconfig.groovy. Note that mavenLocal is commented
>
>   repositories {
>        grailsPlugins()
>        grailsHome()
>        grailsCentral()
>
>        // uncomment the below to enable remote dependency resolution
>        // from public Maven repositories
>        //mavenLocal()
>        //mavenCentral()
>        //mavenRepo "http://snapshots.repository.codehaus.org"
>        //mavenRepo "http://repository.codehaus.org"
>        //mavenRepo "http://download.java.net/maven/2/"
>        //mavenRepo "http://repository.jboss.com/maven2/"
>    }
>
> In my per user maven settings.xml i have
>
> <localRepository>
>        C:\m2
> </localRepository>
>
> changing it to c:/m2 didnt helped, ivy does not consider it absolute also.
>
> Is there way to ignore mavelLocal() ? it seems to be always enabled. There was bug http://jira.codehaus.org/browse/GRAILS-5909 mavenCentral() is always included. Maybe there is same bug for mavenLocal()
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

Radim Kolar
That seems to be a strange value for localRepository, have you changed
it from the default?

yes, i changed it in my maven settings.xml
>> <localRepository>
>>         C:\m2
>> </localRepository>
>>
>> changing it to c:/m2 didnt helped, ivy does not consider it absolute also.

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

Wayne Fay
In reply to this post by ld@ldaley.com
Did you try adding \ or / at the end of the line?

<localRepository>C:\m2\</localRepository>
or
<localRepository>C:/m2/</localRepository>

You could also leave the c: off and just try
<localRepository>/m2/</localRepository>

That should assume C: and look for the c:/m2/ directory, but it will
depend on Ivy's internals. (That is what Maven does, you'd have to ask
the Ivy folks for more details if it doesn't work the same...)

Wayne

On Sun, Mar 13, 2011 at 6:23 PM, Luke Daley <[hidden email]> wrote:

> That seems to be a strange value for localRepository, have you changed it from the default?
> On 13/03/2011, at 2:16 AM, Radim Kolar wrote:
>
>> I am on windows OS. I tried to upgrade 1.2 grails application to 1.3 but i could not get springcache plugin resolved by ivy:
>>
>> error is:
>>
>> Welcome to Grails 1.3.7 - http://grails.org/
>> Licensed under Apache Standard License 2.0
>> Grails home is set to: C:\Grails-1.3.7
>>
>> Base Directory: C:\Documents and Settings\majitel\workspace-sts\Whois
>> WARNING: Dependencies cannot be resolved for plugin [springcache] due to error:
>> ivy pattern must be absolute:
>>        C:\m2
>>  /[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).pom
>> Resolving dependencies...
>>
>> Buildconfig.groovy. Note that mavenLocal is commented
>>
>>   repositories {
>>        grailsPlugins()
>>        grailsHome()
>>        grailsCentral()
>>
>>        // uncomment the below to enable remote dependency resolution
>>        // from public Maven repositories
>>        //mavenLocal()
>>        //mavenCentral()
>>        //mavenRepo "http://snapshots.repository.codehaus.org"
>>        //mavenRepo "http://repository.codehaus.org"
>>        //mavenRepo "http://download.java.net/maven/2/"
>>        //mavenRepo "http://repository.jboss.com/maven2/"
>>    }
>>
>> In my per user maven settings.xml i have
>>
>> <localRepository>
>>        C:\m2
>> </localRepository>
>>
>> changing it to c:/m2 didnt helped, ivy does not consider it absolute also.
>>
>> Is there way to ignore mavelLocal() ? it seems to be always enabled. There was bug http://jira.codehaus.org/browse/GRAILS-5909 mavenCentral() is always included. Maybe there is same bug for mavenLocal()
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

Radim Kolar
I reported it to IVY https://issues.apache.org/jira/browse/IVY-1276
and IVY developer is right. Grails gets confused by whitespace around
C:\m2. Removing whitespace around it fixed the problem.

So we have 2 bugs in Grails:

1. local maven repository can not be disabled
2. Grails get confused by whitespace surrounding directory name in
localRepository maven settings.xml


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

Radim Kolar
Filled bug reports
>
> 1. local maven repository can not be disabled
http://jira.codehaus.org/browse/GRAILS-7352

> 2. Grails gets confused by whitespace surrounding directory name in
> localRepository maven settings.xml
http://jira.codehaus.org/browse/GRAILS-7351

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

rsaddey
In reply to this post by Radim Kolar
Radim Kolar wrote
> Is there way to ignore mavelLocal() ? it seems to be always enabled.
...
adding
    repositories {
         inherits false // <-- THIS LINE
...
     }
does not helps. I am only one user who is using localMaven Repo on
windows OS?
...
I'm confused: Looking at http://grails.org/doc/1.3.7/guide/3.%20Configuration.html#3.7.2%20Dependency%20Repositories it states

 inherit false

Note: inherit instead of inherits ...

Javadocs at http://grails.org/doc/1.3.7/api/org/codehaus/groovy/grails/resolve/IvyDomainSpecificLanguageEvaluator.html aren't very much of a help either - other than disclosing that both inherit and inherits methods exist :-(
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Ivy dependency resolving: pattern must be absolute

rsaddey
Update (excerpt from Jenkins build log): WARNING: Configurational method [inherits] in grails-app/conf/BuildConfig.groovy doesn't exist. Ignoring..
Loading...