How to change ivy repository location?

1,104 views
Skip to first unread message

Ben McCann

unread,
Oct 3, 2012, 4:52:47 PM10/3/12
to play-fr...@googlegroups.com
Hi,

The play script has "-Dsbt.ivy.home=$dir/repository".  Also, play.boot.properties has "ivy-home: ${play.home}/../repository".  Is it really necessary to specify it twice?  It'd be nice if we could get rid of one as unnecessary because it makes it more difficult to change when we want to point it somewhere else.

Also, even if I remove both of those code snippets, it still uses  ${play.home}/../repository and I can't figure out why it would still be pointing there.

Thanks,
Ben

Ben McCann

unread,
Oct 3, 2012, 6:14:30 PM10/3/12
to play-fr...@googlegroups.com
I'm really having a hard time with this.  No matter what I change I can not get "publish-local" to put my jar in ~/.ivy2  :-(

Ben McCann

unread,
Oct 3, 2012, 7:05:19 PM10/3/12
to play-fr...@googlegroups.com
Think I finally figured it out.  I had to change it in four places and use ${HOME} instead of ~
  • play
  • framework/sbt/play.boot.properties
  • framework/sbt/sbt.boot.properties
  • framework/build
I really dislike play's default of not using the same ivy repo that all other build tools use because it makes it a complete pain to use libraries I've built with another tool or vice versa.  I hope this can at least be made easier by having a single place to change it instead of four.

Thanks,
Ben

Ben McCann

unread,
Oct 29, 2012, 3:58:50 PM10/29/12
to play-fr...@googlegroups.com
Hi Kamal,

I meant that ${HOME}/.ivy2 will work while ~/.ivy2 will not.

-Ben


On Mon, Oct 29, 2012 at 4:18 AM, kamal hakimzadeh <k.haki...@gmail.com> wrote:
Thanks guys,

That was so helpful, It took me like 2 days to figure this out. 

BTW Ben didn't you mean ${HOME}/.ivy2 instead of ${HOME} ??

Best reagards,

Kamal

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/cwaTc943gWUJ.

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.



--
about.me/benmccann

Alex Dobjanschi

unread,
Jan 19, 2013, 6:46:46 PM1/19/13
to play-fr...@googlegroups.com
Hi,

I've spent some time to figure this out. These are the changes that worked for me:

In play.boot.properties and sbt.boot.properties, I only changed the last lines, like this:
[ivy]
  ivy-home: ${sbt.ivy.home}

The point is that ${sbt.ivy.home} is passed down from the other 2 files, that were linked to ${HOME}/.ivy2, like this:
java .... -Dsbt.ivy.home=${HOME}/.ivy2 ...

Hope it helps,
Alex.
Reply all
Reply to author
Forward
0 new messages