|
Re: Trouble fetching a maven dependency [message #1506199 is a reply to message #1497201] |
Wed, 10 December 2014 17:08 |
Thomas Elskens Messages: 159 Registered: September 2014 Location: Brussels - Belgium |
Senior Member |
|
|
Okay after some (long) searching I found the issue : the name in the <mp:entry> tag refers to the name of the dependency in the cspec file (and not, as I thought, to the name in the pom.xml file)...
After that Buckminster complains about a missing junit dependency but I got that fixed with
<mp:scopes>
<mp:scope name="test" exclude="true"/>
</mp:scopes>
And after that Buckminster still complains about a missing dependency, so also that is solved by adding the entry pointing directy to it :
<mp:entry name="org.controlsfx.openjfx-dialogs" groupId="org.controlsfx" artifactId="openjfx-dialogs"/>
And finally, in order to have this dependency available, I had to add
<mp:scope name="compile" exclude="false"/>
I don't know if this is the right way to go, but at least it works.
Now I'm ready for my real question .
as I'm writing an RCP-application, Buckminster seems a very interesting build solution to me, as it seems to overcome the limitation of Tycho which can only build from a target definition whose bundles are available in a p2-repository.
I'm trying this tutorial (http://www.lorenzobettini.it/2012/11/materializing-and-provisioning-your-target-platform-as-local-p2-site-with-buckminster/) about how to setup a target with Buckminster in a local directory.
Now I would like to fetch osgi-bundles from maven central and materialize them in this directory.
By default, buckminster materialises this dependency in a folder .buckminster in the current workspace. When I use the materialization wizard to redirect this jar to the directory of the target, i do not obtain ./TP/controlsfx-8.20.8.jar but ./TP/maven2/org/controlsfx/controlsfx/8.20.8.jar instead.
Does any one know how to fix this ... ? If it were possible, it would really alleviate the burden of dependency management in my RCP application...
Thanks in advance for any advice,
Thomas Elskens
|
|
|
|
Powered by
FUDForum. Page generated in 0.03290 seconds