Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

Kapil Sachdeva-3
Hi,

I am referencing a library which depends on velocity library and my grails commands are failing with the following error.

I am using grails 1.3RC1 / Windows Vista SP2 / Java 1.6

m ...
Download complete.
m.sha1 ...
Download complete.
:: problems summary ::
:::: WARNINGS
                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: velocity#velocity;1.5: java.text.ParseException: inconsistent
 module descriptor file found in 'http://repo1.maven.org/maven2/velocity/velocit
y/1.5/velocity-1.5.pom': bad organisation: expected='velocity' found='org.apache
.velocity';

                ::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
                mavenCentral: bad organisation found in http://repo1.maven.org/m
aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity' found='org.apa
che.velocity'

Would really appreciate the help to solve it as I can not move forward because of this failure.

Regards & thanks
Kapil
Reply | Threaded
Open this post in threaded view
|

Re: Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

Kapil Sachdeva-3
I forgot to mention that I tried to exclude it but it does not help. Here is my DSL:

grails.project.dependency.resolution = {
    
    inherits("global"){
       excludes "xml-apis"
    }
    
    log "warn" // log level of Ivy resolver, either 'error',
               // 'warn', 'info', 'debug' or 'verbose'
               
    repositories {
        grailsHome()
        // uncomment the below to enable remote dependency resolution
        // from public Maven repositories

        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/
    }
    
    dependencies {
        // specify dependencies here under either 'build', 'compile',
        // 'runtime', 'test' or 'provided' scopes, e.g.
        // runtime 'com.mysql:mysql-connector-java:5.1.5'  
        runtime('org.opensaml:opensaml:2.3.1'){
            //excludes group:'org.apache',name:'velocity'
            excludes 'velocity'
        }
    }
}

excludes 'velocity' lead to some strange exception:
and
excludes 'org.apache' does not have any effect.

Please help.

Thanks
Kapil



On Wed, Apr 21, 2010 at 9:17 AM, Kapil Sachdeva <[hidden email]> wrote:
Hi,

I am referencing a library which depends on velocity library and my grails commands are failing with the following error.

I am using grails 1.3RC1 / Windows Vista SP2 / Java 1.6

m ...
Download complete.
m.sha1 ...
Download complete.
:: problems summary ::
:::: WARNINGS
                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: velocity#velocity;1.5: java.text.ParseException: inconsistent
 module descriptor file found in 'http://repo1.maven.org/maven2/velocity/velocit
y/1.5/velocity-1.5.pom': bad organisation: expected='velocity' found='org.apache
.velocity';

                ::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
                mavenCentral: bad organisation found in http://repo1.maven.org/m
aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity' found='org.apa
che.velocity'

Would really appreciate the help to solve it as I can not move forward because of this failure.

Regards & thanks
Kapil

Reply | Threaded
Open this post in threaded view
|

Re: Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

tomas lin
Seems like a problem in the way you're referencing the library.

dependencies{
 compile 'org.apache.velocity:velocity:1.5'
}

will work

 dependencies{
   compile 'velocity:velocity:1.5'
 }

won't. same in maven.

On Wed, Apr 21, 2010 at 3:32 PM, Kapil Sachdeva
<[hidden email]> wrote:

> I forgot to mention that I tried to exclude it but it does not help. Here is
> my DSL:
> grails.project.dependency.resolution = {
>
>     inherits("global"){
>        excludes "xml-apis"
>     }
>
>     log "warn" // log level of Ivy resolver, either 'error',
>                // 'warn', 'info', 'debug' or 'verbose'
>
>     repositories {
>         grailsHome()
>         // uncomment the below to enable remote dependency resolution
>         // from public Maven repositories
>         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/
>         //mavenRepo
> "https://repository.apache.org/content/repositories/snapshots/"
>         mavenRepo "http://shibboleth.internet2.edu/downloads/maven2/"
>     }
>
>     dependencies {
>         // specify dependencies here under either 'build', 'compile',
>         // 'runtime', 'test' or 'provided' scopes, e.g.
>         // runtime 'com.mysql:mysql-connector-java:5.1.5'
>         runtime('org.opensaml:opensaml:2.3.1'){
>             //excludes group:'org.apache',name:'velocity'
>             excludes 'velocity'
>         }
>     }
> }
> excludes 'velocity' lead to some strange exception:
> and
> excludes 'org.apache' does not have any effect.
> Please help.
> Thanks
> Kapil
>
>
> On Wed, Apr 21, 2010 at 9:17 AM, Kapil Sachdeva <[hidden email]>
> wrote:
>>
>> Hi,
>> I am referencing a library which depends on velocity library and my grails
>> commands are failing with the following error.
>> I am using grails 1.3RC1 / Windows Vista SP2 / Java 1.6
>> Downloading:
>> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> m ...
>> Download complete.
>> Downloading:
>> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> m.sha1 ...
>> Download complete.
>> :: problems summary ::
>> :::: WARNINGS
>>                 ::::::::::::::::::::::::::::::::::::::::::::::
>>                 ::          UNRESOLVED DEPENDENCIES         ::
>>                 ::::::::::::::::::::::::::::::::::::::::::::::
>>                 :: velocity#velocity;1.5: java.text.ParseException:
>> inconsistent
>>  module descriptor file found in
>> 'http://repo1.maven.org/maven2/velocity/velocit
>> y/1.5/velocity-1.5.pom': bad organisation: expected='velocity'
>> found='org.apache
>> .velocity';
>>                 ::::::::::::::::::::::::::::::::::::::::::::::
>>
>> :::: ERRORS
>>                 mavenCentral: bad organisation found in
>> http://repo1.maven.org/m
>> aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity'
>> found='org.apa
>> che.velocity'
>> Would really appreciate the help to solve it as I can not move forward
>> because of this failure.
>> Regards & thanks
>> Kapil
>

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

RE: Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

wkrespan
This post was updated on .
In reply to this post by Kapil Sachdeva-3
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

Kapil Sachdeva-3
In reply to this post by tomas lin
Hi Tomas,

I tried excludes "org.apache.velocity:velocity:1.5" but it did not work either. 

Regards & thanks
Kapil

On Wed, Apr 21, 2010 at 9:41 AM, Tomas Lin <[hidden email]> wrote:
Seems like a problem in the way you're referencing the library.

dependencies{
 compile 'org.apache.velocity:velocity:1.5'
}

will work

 dependencies{
  compile 'velocity:velocity:1.5'
 }

won't. same in maven.

On Wed, Apr 21, 2010 at 3:32 PM, Kapil Sachdeva
<[hidden email]> wrote:
> I forgot to mention that I tried to exclude it but it does not help. Here is
> my DSL:
> grails.project.dependency.resolution = {
>
>     inherits("global"){
>        excludes "xml-apis"
>     }
>
>     log "warn" // log level of Ivy resolver, either 'error',
>                // 'warn', 'info', 'debug' or 'verbose'
>
>     repositories {
>         grailsHome()
>         // uncomment the below to enable remote dependency resolution
>         // from public Maven repositories
>         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/
>         //mavenRepo
> "https://repository.apache.org/content/repositories/snapshots/"
>         mavenRepo "http://shibboleth.internet2.edu/downloads/maven2/"
>     }
>
>     dependencies {
>         // specify dependencies here under either 'build', 'compile',
>         // 'runtime', 'test' or 'provided' scopes, e.g.
>         // runtime 'com.mysql:mysql-connector-java:5.1.5'
>         runtime('org.opensaml:opensaml:2.3.1'){
>             //excludes group:'org.apache',name:'velocity'
>             excludes 'velocity'
>         }
>     }
> }
> excludes 'velocity' lead to some strange exception:
> and
> excludes 'org.apache' does not have any effect.
> Please help.
> Thanks
> Kapil
>
>
> On Wed, Apr 21, 2010 at 9:17 AM, Kapil Sachdeva <[hidden email]>
> wrote:
>>
>> Hi,
>> I am referencing a library which depends on velocity library and my grails
>> commands are failing with the following error.
>> I am using grails 1.3RC1 / Windows Vista SP2 / Java 1.6
>> Downloading:
>> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> m ...
>> Download complete.
>> Downloading:
>> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> m.sha1 ...
>> Download complete.
>> :: problems summary ::
>> :::: WARNINGS
>>                 ::::::::::::::::::::::::::::::::::::::::::::::
>>                 ::          UNRESOLVED DEPENDENCIES         ::
>>                 ::::::::::::::::::::::::::::::::::::::::::::::
>>                 :: velocity#velocity;1.5: java.text.ParseException:
>> inconsistent
>>  module descriptor file found in
>> 'http://repo1.maven.org/maven2/velocity/velocit
>> y/1.5/velocity-1.5.pom': bad organisation: expected='velocity'
>> found='org.apache
>> .velocity';
>>                 ::::::::::::::::::::::::::::::::::::::::::::::
>>
>> :::: ERRORS
>>                 mavenCentral: bad organisation found in
>> http://repo1.maven.org/m
>> aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity'
>> found='org.apa
>> che.velocity'
>> Would really appreciate the help to solve it as I can not move forward
>> because of this failure.
>> Regards & thanks
>> Kapil
>

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

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

tomas lin
you need to exclude the original velocity plugin velocity:velocity:1.5
and include org.apache.velocity:velocity:1.5

On Wed, Apr 21, 2010 at 10:03 PM, Kapil Sachdeva
<[hidden email]> wrote:

> Hi Tomas,
> I tried excludes "org.apache.velocity:velocity:1.5" but it did not work
> either.
> Regards & thanks
> Kapil
>
> On Wed, Apr 21, 2010 at 9:41 AM, Tomas Lin <[hidden email]> wrote:
>>
>> Seems like a problem in the way you're referencing the library.
>>
>> dependencies{
>>  compile 'org.apache.velocity:velocity:1.5'
>> }
>>
>> will work
>>
>>  dependencies{
>>   compile 'velocity:velocity:1.5'
>>  }
>>
>> won't. same in maven.
>>
>> On Wed, Apr 21, 2010 at 3:32 PM, Kapil Sachdeva
>> <[hidden email]> wrote:
>> > I forgot to mention that I tried to exclude it but it does not help.
>> > Here is
>> > my DSL:
>> > grails.project.dependency.resolution = {
>> >
>> >     inherits("global"){
>> >        excludes "xml-apis"
>> >     }
>> >
>> >     log "warn" // log level of Ivy resolver, either 'error',
>> >                // 'warn', 'info', 'debug' or 'verbose'
>> >
>> >     repositories {
>> >         grailsHome()
>> >         // uncomment the below to enable remote dependency resolution
>> >         // from public Maven repositories
>> >         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/
>> >         //mavenRepo
>> > "https://repository.apache.org/content/repositories/snapshots/"
>> >         mavenRepo "http://shibboleth.internet2.edu/downloads/maven2/"
>> >     }
>> >
>> >     dependencies {
>> >         // specify dependencies here under either 'build', 'compile',
>> >         // 'runtime', 'test' or 'provided' scopes, e.g.
>> >         // runtime 'com.mysql:mysql-connector-java:5.1.5'
>> >         runtime('org.opensaml:opensaml:2.3.1'){
>> >             //excludes group:'org.apache',name:'velocity'
>> >             excludes 'velocity'
>> >         }
>> >     }
>> > }
>> > excludes 'velocity' lead to some strange exception:
>> > and
>> > excludes 'org.apache' does not have any effect.
>> > Please help.
>> > Thanks
>> > Kapil
>> >
>> >
>> > On Wed, Apr 21, 2010 at 9:17 AM, Kapil Sachdeva
>> > <[hidden email]>
>> > wrote:
>> >>
>> >> Hi,
>> >> I am referencing a library which depends on velocity library and my
>> >> grails
>> >> commands are failing with the following error.
>> >> I am using grails 1.3RC1 / Windows Vista SP2 / Java 1.6
>> >> Downloading:
>> >> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> >> m ...
>> >> Download complete.
>> >> Downloading:
>> >> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> >> m.sha1 ...
>> >> Download complete.
>> >> :: problems summary ::
>> >> :::: WARNINGS
>> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >>                 ::          UNRESOLVED DEPENDENCIES         ::
>> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >>                 :: velocity#velocity;1.5: java.text.ParseException:
>> >> inconsistent
>> >>  module descriptor file found in
>> >> 'http://repo1.maven.org/maven2/velocity/velocit
>> >> y/1.5/velocity-1.5.pom': bad organisation: expected='velocity'
>> >> found='org.apache
>> >> .velocity';
>> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >>
>> >> :::: ERRORS
>> >>                 mavenCentral: bad organisation found in
>> >> http://repo1.maven.org/m
>> >> aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity'
>> >> found='org.apa
>> >> che.velocity'
>> >> Would really appreciate the help to solve it as I can not move forward
>> >> because of this failure.
>> >> Regards & thanks
>> >> Kapil
>> >
>>
>> ---------------------------------------------------------------------
>> 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
|

Re: Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

Kapil Sachdeva-3
In reply to this post by wkrespan
Velocity dependency is pulled by the library I reference.

I could not find a way to manually install it in the ivy repository. I know how to do it with maven (mvn install ... command). Could you please shed more light on it.

Regards & thanks
Kapil

On Wed, Apr 21, 2010 at 9:47 AM, KRESPAN, WILLIAM P. <[hidden email]> wrote:

if it helps, the dependency does exist:  http://repo1.maven.org/maven2/org/apache/velocity/velocity/1.5/velocity-1.5.pom

is the velocity dependency defined in your pom.xml file or is it being pulled in by the library you reference?

wherever it is the groupId is defined as velocity instead of org.apache.velocity.  You could manually download the dependency

and install it to localRepository/velocity/velocity/1.5/  if you find no other way.

WillK

 

From: Kapil Sachdeva [mailto:[hidden email]]
Sent: Wednesday, April 21, 2010 10:18 AM
To: [hidden email]
Subject: [grails-user] Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

 

Hi,

 

I am referencing a library which depends on velocity library and my grails commands are failing with the following error.

 

I am using grails 1.3RC1 / Windows Vista SP2 / Java 1.6

 

m ...

Download complete.

m.sha1 ...

Download complete.

:: problems summary ::

:::: WARNINGS

                ::::::::::::::::::::::::::::::::::::::::::::::

 

                ::          UNRESOLVED DEPENDENCIES         ::

 

                ::::::::::::::::::::::::::::::::::::::::::::::

 

                :: velocity#velocity;1.5: java.text.ParseException: inconsistent

 module descriptor file found in 'http://repo1.maven.org/maven2/velocity/velocit

y/1.5/velocity-1.5.pom': bad organisation: expected='velocity' found='org.apache

.velocity';

 

                ::::::::::::::::::::::::::::::::::::::::::::::

 

 

:::: ERRORS

                mavenCentral: bad organisation found in http://repo1.maven.org/m

aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity' found='org.apa

che.velocity'

 

Would really appreciate the help to solve it as I can not move forward because of this failure.

 

Regards & thanks

Kapil

This communication is for use by the intended recipient and contains
information that may be Privileged, confidential or copyrighted under
applicable law. If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited. Please notify the sender by
return e-mail and delete this e-mail from your system. Unless explicitly
and conspicuously designated as "E-Contract Intended", this e-mail does
not constitute a contract offer, a contract amendment, or an acceptance
of a contract offer. This e-mail does not constitute a consent to the
use of sender's contact information for direct marketing purposes or for
transfers of data to third parties.

Francais Deutsch Italiano  Espanol  Portugues  Japanese  Chinese  Korean

           http://www.DuPont.com/corp/email_disclaimer.html

Reply | Threaded
Open this post in threaded view
|

Re: Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

Kapil Sachdeva-3
In reply to this post by tomas lin
Tried:

dependencies {
        // specify dependencies here under either 'build', 'compile',
        // 'runtime', 'test' or 'provided' scopes, e.g.
        // runtime 'com.mysql:mysql-connector-java:5.1.5'  
        runtime('org.opensaml:opensaml:2.3.1'){
            excludes 'velocity:velocity:1.5'
        }
        
        runtime 'org.apache.velocity:velocity:1.5'
    }

but no change in the behavior. Still get the same exception:

Resolving dependencies...
m ...
Download complete.
m.sha1 ...
Download complete.
city-1.5.pom ...
Download complete.
city-1.5.pom.sha1 ...
Download complete.
:: problems summary ::
:::: WARNINGS
                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: velocity#velocity;1.5: java.text.ParseException: inconsistent
 module descriptor file found in 'http://repo1.maven.org/maven2/velocity/velocit
y/1.5/velocity-1.5.pom': bad organisation: expected='velocity' found='org.apache
.velocity';

                ::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
                mavenCentral: bad organisation found in http://repo1.maven.org/m
aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity' found='org.apa
che.velocity'

On Wed, Apr 21, 2010 at 4:06 PM, Tomas Lin <[hidden email]> wrote:
you need to exclude the original velocity plugin velocity:velocity:1.5
and include org.apache.velocity:velocity:1.5

On Wed, Apr 21, 2010 at 10:03 PM, Kapil Sachdeva
<[hidden email]> wrote:
> Hi Tomas,
> I tried excludes "org.apache.velocity:velocity:1.5" but it did not work
> either.
> Regards & thanks
> Kapil
>
> On Wed, Apr 21, 2010 at 9:41 AM, Tomas Lin <[hidden email]> wrote:
>>
>> Seems like a problem in the way you're referencing the library.
>>
>> dependencies{
>>  compile 'org.apache.velocity:velocity:1.5'
>> }
>>
>> will work
>>
>>  dependencies{
>>   compile 'velocity:velocity:1.5'
>>  }
>>
>> won't. same in maven.
>>
>> On Wed, Apr 21, 2010 at 3:32 PM, Kapil Sachdeva
>> <[hidden email]> wrote:
>> > I forgot to mention that I tried to exclude it but it does not help.
>> > Here is
>> > my DSL:
>> > grails.project.dependency.resolution = {
>> >
>> >     inherits("global"){
>> >        excludes "xml-apis"
>> >     }
>> >
>> >     log "warn" // log level of Ivy resolver, either 'error',
>> >                // 'warn', 'info', 'debug' or 'verbose'
>> >
>> >     repositories {
>> >         grailsHome()
>> >         // uncomment the below to enable remote dependency resolution
>> >         // from public Maven repositories
>> >         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/
>> >         //mavenRepo
>> > "https://repository.apache.org/content/repositories/snapshots/"
>> >         mavenRepo "http://shibboleth.internet2.edu/downloads/maven2/"
>> >     }
>> >
>> >     dependencies {
>> >         // specify dependencies here under either 'build', 'compile',
>> >         // 'runtime', 'test' or 'provided' scopes, e.g.
>> >         // runtime 'com.mysql:mysql-connector-java:5.1.5'
>> >         runtime('org.opensaml:opensaml:2.3.1'){
>> >             //excludes group:'org.apache',name:'velocity'
>> >             excludes 'velocity'
>> >         }
>> >     }
>> > }
>> > excludes 'velocity' lead to some strange exception:
>> > and
>> > excludes 'org.apache' does not have any effect.
>> > Please help.
>> > Thanks
>> > Kapil
>> >
>> >
>> > On Wed, Apr 21, 2010 at 9:17 AM, Kapil Sachdeva
>> > <[hidden email]>
>> > wrote:
>> >>
>> >> Hi,
>> >> I am referencing a library which depends on velocity library and my
>> >> grails
>> >> commands are failing with the following error.
>> >> I am using grails 1.3RC1 / Windows Vista SP2 / Java 1.6
>> >> Downloading:
>> >> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> >> m ...
>> >> Download complete.
>> >> Downloading:
>> >> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> >> m.sha1 ...
>> >> Download complete.
>> >> :: problems summary ::
>> >> :::: WARNINGS
>> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >>                 ::          UNRESOLVED DEPENDENCIES         ::
>> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >>                 :: velocity#velocity;1.5: java.text.ParseException:
>> >> inconsistent
>> >>  module descriptor file found in
>> >> 'http://repo1.maven.org/maven2/velocity/velocit
>> >> y/1.5/velocity-1.5.pom': bad organisation: expected='velocity'
>> >> found='org.apache
>> >> .velocity';
>> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >>
>> >> :::: ERRORS
>> >>                 mavenCentral: bad organisation found in
>> >> http://repo1.maven.org/m
>> >> aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity'
>> >> found='org.apa
>> >> che.velocity'
>> >> Would really appreciate the help to solve it as I can not move forward
>> >> because of this failure.
>> >> Regards & thanks
>> >> Kapil
>> >
>>
>> ---------------------------------------------------------------------
>> 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
|

Re: Dependency resolution problem with velocity : mavenCentral: bad organisation found ....

tomas lin
This seems to give me no velocity problems. Well, except when grails
blows up because it is incompatible with the loaded xml apis...

    repositories {
        grailsPlugins()
        grailsHome()
        mavenRepo "http://shibboleth.internet2.edu/downloads/maven2/"
        mavenCentral()
    }
    dependencies {
                        runtime('org.opensaml:opensaml:2.3.1'){
                            excludes 'velocity'
                        }
        runtime 'org.apache.velocity:velocity:1.5'
    }


On Wed, Apr 21, 2010 at 10:19 PM, Kapil Sachdeva
<[hidden email]> wrote:

> Tried:
> dependencies {
>         // specify dependencies here under either 'build', 'compile',
>         // 'runtime', 'test' or 'provided' scopes, e.g.
>         // runtime 'com.mysql:mysql-connector-java:5.1.5'
>         runtime('org.opensaml:opensaml:2.3.1'){
>             excludes 'velocity:velocity:1.5'
>         }
>
>         runtime 'org.apache.velocity:velocity:1.5'
>     }
> but no change in the behavior. Still get the same exception:
> Resolving dependencies...
> Downloading:
> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
> m ...
> Download complete.
> Downloading:
> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
> m.sha1 ...
> Download complete.
> Downloading:
> http://repo1.maven.org/maven2/org/apache/velocity/velocity/1.5/velo
> city-1.5.pom ...
> Download complete.
> Downloading:
> http://repo1.maven.org/maven2/org/apache/velocity/velocity/1.5/velo
> city-1.5.pom.sha1 ...
> Download complete.
> :: problems summary ::
> :::: WARNINGS
>                 ::::::::::::::::::::::::::::::::::::::::::::::
>                 ::          UNRESOLVED DEPENDENCIES         ::
>                 ::::::::::::::::::::::::::::::::::::::::::::::
>                 :: velocity#velocity;1.5: java.text.ParseException:
> inconsistent
>  module descriptor file found in
> 'http://repo1.maven.org/maven2/velocity/velocit
> y/1.5/velocity-1.5.pom': bad organisation: expected='velocity'
> found='org.apache
> .velocity';
>                 ::::::::::::::::::::::::::::::::::::::::::::::
>
> :::: ERRORS
>                 mavenCentral: bad organisation found in
> http://repo1.maven.org/m
> aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity'
> found='org.apa
> che.velocity'
> On Wed, Apr 21, 2010 at 4:06 PM, Tomas Lin <[hidden email]> wrote:
>>
>> you need to exclude the original velocity plugin velocity:velocity:1.5
>> and include org.apache.velocity:velocity:1.5
>>
>> On Wed, Apr 21, 2010 at 10:03 PM, Kapil Sachdeva
>> <[hidden email]> wrote:
>> > Hi Tomas,
>> > I tried excludes "org.apache.velocity:velocity:1.5" but it did not work
>> > either.
>> > Regards & thanks
>> > Kapil
>> >
>> > On Wed, Apr 21, 2010 at 9:41 AM, Tomas Lin <[hidden email]> wrote:
>> >>
>> >> Seems like a problem in the way you're referencing the library.
>> >>
>> >> dependencies{
>> >>  compile 'org.apache.velocity:velocity:1.5'
>> >> }
>> >>
>> >> will work
>> >>
>> >>  dependencies{
>> >>   compile 'velocity:velocity:1.5'
>> >>  }
>> >>
>> >> won't. same in maven.
>> >>
>> >> On Wed, Apr 21, 2010 at 3:32 PM, Kapil Sachdeva
>> >> <[hidden email]> wrote:
>> >> > I forgot to mention that I tried to exclude it but it does not help.
>> >> > Here is
>> >> > my DSL:
>> >> > grails.project.dependency.resolution = {
>> >> >
>> >> >     inherits("global"){
>> >> >        excludes "xml-apis"
>> >> >     }
>> >> >
>> >> >     log "warn" // log level of Ivy resolver, either 'error',
>> >> >                // 'warn', 'info', 'debug' or 'verbose'
>> >> >
>> >> >     repositories {
>> >> >         grailsHome()
>> >> >         // uncomment the below to enable remote dependency resolution
>> >> >         // from public Maven repositories
>> >> >         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/
>> >> >         //mavenRepo
>> >> > "https://repository.apache.org/content/repositories/snapshots/"
>> >> >         mavenRepo "http://shibboleth.internet2.edu/downloads/maven2/"
>> >> >     }
>> >> >
>> >> >     dependencies {
>> >> >         // specify dependencies here under either 'build', 'compile',
>> >> >         // 'runtime', 'test' or 'provided' scopes, e.g.
>> >> >         // runtime 'com.mysql:mysql-connector-java:5.1.5'
>> >> >         runtime('org.opensaml:opensaml:2.3.1'){
>> >> >             //excludes group:'org.apache',name:'velocity'
>> >> >             excludes 'velocity'
>> >> >         }
>> >> >     }
>> >> > }
>> >> > excludes 'velocity' lead to some strange exception:
>> >> > and
>> >> > excludes 'org.apache' does not have any effect.
>> >> > Please help.
>> >> > Thanks
>> >> > Kapil
>> >> >
>> >> >
>> >> > On Wed, Apr 21, 2010 at 9:17 AM, Kapil Sachdeva
>> >> > <[hidden email]>
>> >> > wrote:
>> >> >>
>> >> >> Hi,
>> >> >> I am referencing a library which depends on velocity library and my
>> >> >> grails
>> >> >> commands are failing with the following error.
>> >> >> I am using grails 1.3RC1 / Windows Vista SP2 / Java 1.6
>> >> >> Downloading:
>> >> >> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> >> >> m ...
>> >> >> Download complete.
>> >> >> Downloading:
>> >> >> http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.po
>> >> >> m.sha1 ...
>> >> >> Download complete.
>> >> >> :: problems summary ::
>> >> >> :::: WARNINGS
>> >> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >> >>                 ::          UNRESOLVED DEPENDENCIES         ::
>> >> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >> >>                 :: velocity#velocity;1.5: java.text.ParseException:
>> >> >> inconsistent
>> >> >>  module descriptor file found in
>> >> >> 'http://repo1.maven.org/maven2/velocity/velocit
>> >> >> y/1.5/velocity-1.5.pom': bad organisation: expected='velocity'
>> >> >> found='org.apache
>> >> >> .velocity';
>> >> >>                 ::::::::::::::::::::::::::::::::::::::::::::::
>> >> >>
>> >> >> :::: ERRORS
>> >> >>                 mavenCentral: bad organisation found in
>> >> >> http://repo1.maven.org/m
>> >> >> aven2/velocity/velocity/1.5/velocity-1.5.pom: expected='velocity'
>> >> >> found='org.apa
>> >> >> che.velocity'
>> >> >> Would really appreciate the help to solve it as I can not move
>> >> >> forward
>> >> >> because of this failure.
>> >> >> Regards & thanks
>> >> >> Kapil
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
|

Grails 1.2.2 Upgrade - Getting "Blobs are not cacheable" error

SanjayGupta
In reply to this post by Kapil Sachdeva-3

Hi ,

I am trying to upgrade my grails 1.0.5 app to 1.2.2 and having issue with blob. I get this error when querying the table with blob column. I am using oracle 9i.

 

2010-04-21 16:50:03,250 [http-8080-2] ERROR errors.GrailsExceptionResolver  - Blobs are not cacheable

java.lang.UnsupportedOperationException: Blobs are not cacheable

 

I know this is a hibernate issue but wondering if anybody using grails 1.2.2 faced this issue and what was solution. I would appreciate any help on this.

 

Thanks,

 

Sanjay Gupta

Reply | Threaded
Open this post in threaded view
|

Grails 1.2.2 Upgrade - Getting "Blobs are not cacheable" error

SanjayGupta

Hi ,

I am trying to upgrade my grails 1.0.5 app to 1.2.2 and having issue with blob. I get this error when querying the table with blob column. I am using oracle 9i.

 

2010-04-21 16:50:03,250 [http-8080-2] ERROR errors.GrailsExceptionResolver  - Blobs are not cacheable

java.lang.UnsupportedOperationException: Blobs are not cacheable

 

I know this is a hibernate issue but wondering if anybody using grails 1.2.2 faced this issue and what was solution. I would appreciate any help on this.

 

Thanks,

 

Sanjay Gupta

 

Reply | Threaded
Open this post in threaded view
|

Re: Grails 1.2.2 Upgrade - Getting "Blobs are not cacheable" error

smaldini
Hi Sanjay,

Do you have query cache activated ? second cache ? domain class cache to true ?  Can you send your query and your domain ?





On Fri, Apr 23, 2010 at 7:54 PM, Sanjay Gupta <[hidden email]> wrote:

Hi ,

I am trying to upgrade my grails 1.0.5 app to 1.2.2 and having issue with blob. I get this error when querying the table with blob column. I am using oracle 9i.

 

2010-04-21 16:50:03,250 [http-8080-2] ERROR errors.GrailsExceptionResolver  - Blobs are not cacheable

java.lang.UnsupportedOperationException: Blobs are not cacheable

 

I know this is a hibernate issue but wondering if anybody using grails 1.2.2 faced this issue and what was solution. I would appreciate any help on this.

 

Thanks,

 

Sanjay Gupta

 




--
Stéphane MALDINI
doc4web consultant
[hidden email]
--
http://fr.linkedin.com/in/smaldini
Reply | Threaded
Open this post in threaded view
|

RE: Grails 1.2.2 Upgrade - Getting "Blobs are not cacheable" error

SanjayGupta

Hi Stephane,

 

Thanks for your response. After disabling the cache in the domain my problem went away. Is there a better solution to make it work? Here is my domain.

 

 

package com.bwse.model.invoice

 

import org.codehaus.groovy.grails.commons.ConfigurationHolder

import java.sql.Blob

 

class Invoice {

    static mapping = {

        cache false

        columns {

            invoiceImage type: 'blob'

        }

         id generator:'assigned'

    }

 

  Blob invoiceImage

  

    static final Integer MAX_SIZE = 10 * 1024 * 1024

   

    static constraints = {

        invoiceImage (maxSize: MAX_SIZE, nullable:true)

    }

}

 

 

Sanjay

From: Stephane Maldini [mailto:[hidden email]]
Sent: Saturday, April 24, 2010 2:21 PM
To: [hidden email]
Subject: Re: [grails-user] Grails 1.2.2 Upgrade - Getting "Blobs are not cacheable" error

 

Hi Sanjay,

Do you have query cache activated ? second cache ? domain class cache to true ?  Can you send your query and your domain ?




On Fri, Apr 23, 2010 at 7:54 PM, Sanjay Gupta <[hidden email]> wrote:

Hi ,

I am trying to upgrade my grails 1.0.5 app to 1.2.2 and having issue with blob. I get this error when querying the table with blob column. I am using oracle 9i.

 

2010-04-21 16:50:03,250 [http-8080-2] ERROR errors.GrailsExceptionResolver  - Blobs are not cacheable

java.lang.UnsupportedOperationException: Blobs are not cacheable

 

I know this is a hibernate issue but wondering if anybody using grails 1.2.2 faced this issue and what was solution. I would appreciate any help on this.

 

Thanks,

 

Sanjay Gupta

 




--
Stéphane MALDINI
doc4web consultant
[hidden email]
--
http://fr.linkedin.com/in/smaldini

Reply | Threaded
Open this post in threaded view
|

Re: Grails 1.2.2 Upgrade - Getting "Blobs are not cacheable" error

smaldini
Can you try :

class Invoice{

    static mapping = {

        cache true      

         id generator:'assigned'

    } 

    byte[] invoiceImage  

    static final Integer MAX_SIZE = 10 * 1024 * 1024   

    static constraints = {

        invoiceImage (maxSize: MAX_SIZE, nullable:true)

    }

}




On Thu, Apr 29, 2010 at 9:43 PM, Sanjay Gupta <[hidden email]> wrote:

Hi Stephane,

 

Thanks for your response. After disabling the cache in the domain my problem went away. Is there a better solution to make it work? Here is my domain.

 

 

package com.bwse.model.invoice

 

import org.codehaus.groovy.grails.commons.ConfigurationHolder

import java.sql.Blob

 

class Invoice {

    static mapping = {

        cache false

        columns {

            invoiceImage type: 'blob'

        }

         id generator:'assigned'

    }

 

  Blob invoiceImage

  

    static final Integer MAX_SIZE = 10 * 1024 * 1024

   

    static constraints = {

        invoiceImage (maxSize: MAX_SIZE, nullable:true)

    }

}

 

 

Sanjay

From: Stephane Maldini [mailto:[hidden email]]
Sent: Saturday, April 24, 2010 2:21 PM
To: [hidden email]
Subject: Re: [grails-user] Grails 1.2.2 Upgrade - Getting "Blobs are not cacheable" error

 

Hi Sanjay,

Do you have query cache activated ? second cache ? domain class cache to true ?  Can you send your query and your domain ?




On Fri, Apr 23, 2010 at 7:54 PM, Sanjay Gupta <[hidden email]> wrote:

Hi ,

I am trying to upgrade my grails 1.0.5 app to 1.2.2 and having issue with blob. I get this error when querying the table with blob column. I am using oracle 9i.

 

2010-04-21 16:50:03,250 [http-8080-2] ERROR errors.GrailsExceptionResolver  - Blobs are not cacheable

java.lang.UnsupportedOperationException: Blobs are not cacheable

 

I know this is a hibernate issue but wondering if anybody using grails 1.2.2 faced this issue and what was solution. I would appreciate any help on this.

 

Thanks,

 

Sanjay Gupta

 




--
Stéphane MALDINI
doc4web consultant
[hidden email]
--
http://fr.linkedin.com/in/smaldini




--
Stéphane MALDINI
doc4web consultant
[hidden email]
--
http://fr.linkedin.com/in/smaldini