[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] How to Grab codehaus maven repo
From: Paul King <Paul.King.ASERT () gmail ! com>
Date: 2011-08-23 21:42:40
Message-ID: 4E541ED0.2080705 () gmail ! com
[Download RAW message or body]
The following worked fine for me using the latest snapshot:
@GrabResolver('http://repo.openehealth.org/maven2/releases')
@Grab('org.codehaus.groovy:groovytools-builder:1.1.6-M1')
import groovytools.builder.SchemaNode
println SchemaNode
// => class groovytools.builder.SchemaNode
Just as a general principle, you would normally use something
like 'org.openehealth' or some prefix indicating the 'publisher'
of the jar as your maven group name. It's just a convention but
people seeing 'org.codehaus.groovy' could think the jar comes
as part of core groovy.
Cheers, Paul.
On 24/08/2011 4:01 AM, Pascal DeMilly wrote:
> Thanks Levi. But I tried with both version 1.1.6-M1 or 1.1.6 and still get the same \
> error. How do I debug this?
> On 08/22/2011 11:45 PM, Levi Hoogenberg wrote:
> > Shouldn't version be 1.1.6-M?
> >
> > 2011/8/23 Pascal DeMilly <list.groovy@newgenesys.com \
> > <mailto:list.groovy@newgenesys.com>>
> > Hi,
> >
> > I am trying to use Grab to fetch a library called groovytools-builder
> >
> > @GrabResolver(name='org.codehaus.groovy', \
> > root='http://repo.openehealth.org/maven2/releases/') @Grab \
> > (group='org.codehaus.groovy', module='groovytools-builder', version='1.1.6')
> > import groovytools.builder.*
> >
> > However I get the error
> >
> > org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
> > General error during conversion: Error grabbing Grapes -- [unresolved dependency: \
> > org.codehaus.groovy#groovytools-builder;1.1.6: not found]
> > The jar file is located at
> >
> > http://repo.openehealth.org/maven2/releases/org/codehaus/groovy/groovytools-builder/1.1.6-M1/groovytools-builder-1.1.6-M1.jar
> >
> > What am I missing?
> >
> > TIA
> >
> > Pascal
> >
> > ---------------------------------------------------------------------
> > 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic