Having local maven repository path as repository

631 views
Skip to first unread message

mangolas

unread,
Apr 26, 2011, 3:36:53 AM4/26/11
to play-framework
Hi all,

I'm evaluating Play framework in our company. Thank's for the great
job, I'm impressed of the usability point of view of the framework and
we are especially interested on the Scala-module.

The biggest complaints against Play has been it's own non-standard
build mechanism. I see the point and I'm not a big fan of Maven, but
Maven still works and there is lot of infrastructure around that, so I
think Play should play well in that arena too.

Play's maven module is not working in Play 1.2 and as there is ivy
support in the Play maybe two way interoperability can be get from
using ivy, but there is not much documentation on that end.

Integrating Play apps with Jenkins and Sonar is a must option in our
compant. I could kind of get Jenkins to work with Play Jenkins plugin
and Sonar so and so. But it feels bit of hacky. It would better if the
whole building and testrunning could be done and controlled using
either maven or ant and that the generation of such setup would be
easy.

The practical problem currently I'm facing is that I haven't found a
way to use local maven repository from dependencies.yml.

I have set up the dependency like this:

- com.mysema.querydsl -> querydsl-scala 2.2.0-beta3-SNAPSHOT

And my repository setting:

- Local_repo:
type: iBiblio
root: "file://Users/lw/.m2/repository/"
contains:
- com.mysema.querydsl -> *

But this is always giving me error:

:: problems summary ::
:::: WARNINGS
module not found: com.mysema.querydsl#querydsl-scala;2.2.0-beta3-
SNAPSHOT

==== Local_repo: tried

file://Users/lw/.m2/repository/com/mysema/querydsl/querydsl-scala/2.2.0-beta3-SNAPSHOT/querydsl-scala-2.2.0-beta3-SNAPSHOT.pom

-- artifact com.mysema.querydsl#querydsl-scala;2.2.0-beta3-SNAPSHOT!
querydsl-scala.jar:

file://Users/lw/.m2/repository/com/mysema/querydsl/querydsl-scala/2.2.0-beta3-SNAPSHOT/querydsl-scala-2.2.0-beta3-SNAPSHOT.jar

The files are there.

What kind of setup I should use to be able to use local maven
directory for my dependencies?

Another question is that is there a way to add development time
dependencies to arbitrary Maven-projects through local path so that
Play could track and pick up changes on them while running the webapp?

Cheers,
Lassi Immonen

Pascal Voitot Dev

unread,
Apr 26, 2011, 4:52:17 AM4/26/11
to play-fr...@googlegroups.com
just a remark but I don't know if this is the solution: if you add a "slash" to your dir?

       root: "file:///Users/lw/.m2/repository/"


regards
Pascal


--
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.


mangolas

unread,
Apr 26, 2011, 8:56:18 AM4/26/11
to play-framework
Thanks a lot! That missing slash was the reason. Now local repo works
fine.

The next question is how to setup the path so that it works for all
users, something like
root: "file:///${user.path}/..."

Should the ivysettings.xml be used if found in root of the project or
in .ivy2/ directory?

Cheers,
Lassi

On 26 huhti, 11:52, Pascal Voitot Dev <pascal.voitot....@gmail.com>
wrote:

Guillaume Bort

unread,
Apr 26, 2011, 9:29:09 AM4/26/11
to play-fr...@googlegroups.com
Use the standard ${user.home} java property.

--
Guillaume Bort, http://guillaume.bort.fr

Pascal Voitot Dev

unread,
Apr 26, 2011, 9:33:09 AM4/26/11
to play-fr...@googlegroups.com
apparently the code in play.deps doesn't try to use a custom ivysettings.xml when creating the IvySettings so I would say it should use the default setting which is ivysettings.xml afaik...

the java system variables seem to be parsed also so you can use them in the repository descriptor.

On Tue, Apr 26, 2011 at 2:56 PM, mangolas <lassi....@gmail.com> wrote:

mangolas

unread,
Apr 27, 2011, 4:11:35 AM4/27/11
to play-framework
Thanks, that works!
Reply all
Reply to author
Forward
0 new messages