[1.3] Overriding core Play dependency c3p0 v0.9.1.2 with a more recent version

87 views
Skip to first unread message

tazmaniac

unread,
Dec 26, 2013, 1:11:45 PM12/26/13
to play-fr...@googlegroups.com
I'd like to update c3p0 to a more recent version. I updated the dependencies in my application with "- com.mchange -> c3p0 0.9.5-pre6" but this does not replace the original version 0.9.1.2 because they have a different groupIds so both versions exist in the classpath. Is it possible to 'exclude' the original core framework c3p0 dependency?

thx

Grzegorz Słowikowski

unread,
Dec 27, 2013, 8:21:23 AM12/27/13
to play-fr...@googlegroups.com
Hi tazmaniac

I don't know if it's possible with pure Play!, but it's very easy with Play! + Maven + Maven plugin for Play! Framework (http://code.google.com/p/maven-play-plugin/)
Are you interested?

Greetings
Grzegorz Slowikowski


On 2013-12-26 19:11, tazmaniac wrote:
I'd like to update c3p0 to a more recent version. I updated the dependencies in my application with "- com.mchange -> c3p0 0.9.5-pre6" but this does not replace the original version 0.9.1.2 because they have a different groupIds so both versions exist in the classpath. Is it possible to 'exclude' the original core framework c3p0 dependency?

thx
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

notalifeform

unread,
Dec 28, 2013, 2:53:31 AM12/28/13
to play-fr...@googlegroups.com
Hi,

looking trough the code of YamlParser.java it seems to have an exclude options (can't find it in the docs though) - you could experiment with it.

regards,

Robert

Chris Webb

unread,
Dec 28, 2013, 5:12:44 AM12/28/13
to play-fr...@googlegroups.com
Hi Robert,

I followed the 'exclude' pattern here, http://www.playframework.com/documentation/1.2.7/dependency#Transitivedependencies and applied it like so:

require:
    - play 1.3.0:
        exclude:
            - c3p0 -> c3p0 0.9.1.2

When I ran dependencies with "--verbose" it appeared to successfully exclude that dependency but what confused me was when I ran eclipsify it did not remove that library from the classpath. Possibly eclipsify does not follow the dependency list and just scoops up all of the jars from the framework lib directory.

rgds,
Chris


--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/xqxycIMDKtU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages