|
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 |
|
> 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 |
|
> 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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
In reply to this post by Radim Kolar
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 :-( |
|
Update (excerpt from Jenkins build log): WARNING: Configurational method [inherits] in grails-app/conf/BuildConfig.groovy doesn't exist. Ignoring..
|
| Powered by Nabble | Edit this page |
