Dependencies

77 views
Skip to first unread message

Mickaël GENTIL

unread,
May 31, 2011, 6:12:58 AM5/31/11
to play-fr...@googlegroups.com
Hi all,

I have a problem with a dependency.

I want the jug library, so i define the require dependency in the yml file:

 - org.safehaus.jug -> jug 2.0.0

But there is an error 404, because the file to download is not jug-2.0.0.jar, but jug-2.0.0-lgpl.jar.

There is a way to force the name of the jar? Else the path to the pom file is good.

Thanks.

M.

Pascal Voitot Dev

unread,
May 31, 2011, 6:30:06 AM5/31/11
to play-fr...@googlegroups.com
On Tue, May 31, 2011 at 12:12 PM, Mickaël GENTIL <mickael...@gmail.com> wrote:
Hi all,

I have a problem with a dependency.

I want the jug library, so i define the require dependency in the yml file:

 - org.safehaus.jug -> jug 2.0.0

But there is an error 404, because the file to download is not jug-2.0.0.jar, but jug-2.0.0-lgpl.jar.

Shouldn't be the version 2.0.0-lgpl?

 - org.safehaus.jug -> jug 2.0.0-lgpl

Pascal
 

There is a way to force the name of the jar? Else the path to the pom file is good.

Thanks.

M.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Mickaël GENTIL

unread,
May 31, 2011, 7:48:46 AM5/31/11
to play-fr...@googlegroups.com
No it doesn't work because the dependency name is set for the path and the file name :


And the real path is :


M.

Pascal Voitot Dev

unread,
May 31, 2011, 8:03:29 AM5/31/11
to play-fr...@googlegroups.com
what a shame, "lgpl" is not the version but the classifier...
I don't think it's possible to use it... play doesn't seem to manage classifiers and Ivy requires some special attributes for it...

I think you should copy the JAR directly into you lib and manage it manually

Pascal

--

Mickaël GENTIL

unread,
May 31, 2011, 8:08:29 AM5/31/11
to play-fr...@googlegroups.com
Ok thanks i'll do that.

Martien Verbruggen

unread,
May 31, 2011, 5:42:40 PM5/31/11
to play-fr...@googlegroups.com
You could use maven to manage dependencies with external jars. Play has a maven plugin which works well.

Matthias Kurz

unread,
Jul 18, 2011, 5:38:48 PM7/18/11
to play-fr...@googlegroups.com
Hi,

I had the same problem when I tried to add the lite version of the
jasypt library to our project.
See here: http://www.jasypt.org/maven.html

It would be nice if the dependencies.yml would support classifiers.
I created a ticket for this:
http://play.lighthouseapp.com/projects/57987/tickets/986-support-for-classifier-in-dependenciesyml

Matthias

On 31/05/11 23:42, Martien Verbruggen wrote:
> You could use maven to manage dependencies with external jars. Play has
> a maven plugin which works well.
>

Reply all
Reply to author
Forward
0 new messages