Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Buckminster and Maven2
Buckminster and Maven2 [message #651721] Tue, 01 February 2011 07:38 Go to next message
Rajarshi is currently offline Rajarshi
Messages: 3
Registered: February 2011
Junior Member
Hi,

I am very new to Buckminster. My current project(which having several components and also dependency on eclipse plug-in) is using Maven2.
I want to use Buckminster on top of Maven2. I am able to materialize one of the component and I have noticed...

1. Buckminster is not looking into my local <USER_HOME>/.m2 directory for maven dependencies. It directly goes to maven2 repo and downloads all dependencies into <WORKSPACE>/.buckminster directory.

[How could I configure Buckminster to look into .m2 before it goes to maven2 repo and also downloads the unavailable dependencies into <USER_HOME>/.m2 directory.]

2. Is it possible to tell Buckminister not to resolve pom.xml dependencies?

Please somebody help me.

Thanks
Rajarshi

[Updated on: Tue, 01 February 2011 07:44]

Report message to a moderator

Re: Buckminster and Mavan2 [message #651750 is a reply to message #651721] Tue, 01 February 2011 08:15 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3208
Registered: July 2009
Senior Member
On 2011-02-01 13:38, Rajarshi wrote:
> Hi,
>
> I am very new to Buckminster. My current project(which having several components and also dependency on eclipse plug-in)
> is using Maven2.
> I want to use Buckminster on top of Maven2. I have able to materialize one of the component and I have noticed...
>
> 1. Buckminster is not looking into my local <USER_HOME>/.m2 directory for maven dependencies. It directly goes to maven2
> repo and downloads all dependencies into <WORKSPACE>/.buckminster directory.
>
That doesn't sound right. BUckminster should use the maven cache at <USER_HOME>/.m2/repository. It will get md5
checksums from the source to verify the cache consistency though, could it be those accesses that you see?

> [How could I configure Buckminster to look into .m2 before it goes to maven2 repo and also downloads the unavailable
> dependencies into <USER_HOME>/.m2 directory.]
>
> 2. Is it possible to tell Buckminister not to resolve pom.xml dependencies?

Starting a week ago, yes. You can specify transitive="false" in the maven provider. Some more info here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=299491


Regards,
Thomas Hallgren
Re: Buckminster and Mavan2 [message #651765 is a reply to message #651750] Tue, 01 February 2011 09:14 Go to previous messageGo to next message
Matthew Webber is currently offline Matthew Webber
Messages: 198
Registered: December 2010
Senior Member
Hi Thomas,

We really appreciate the new features and improvements that are appearing in Buckminster, but I'm concerned that the documentation is lagging behind these.

Is there a way that the community can assist in keeping the BuckyBook up-to-date?
Re: Buckminster and Mavan2 [message #651947 is a reply to message #651750] Wed, 02 February 2011 03:11 Go to previous messageGo to next message
Rajarshi is currently offline Rajarshi
Messages: 3
Registered: February 2011
Junior Member
Hi Thomas,

Thanks for your replay.

I am trying to debug the <USER_HOME>/.m2 issue. But still Buckminster is not using <USER_HOME>./m2.

Below is my RMAP

<?xml version="1.0" encoding="UTF-8"?>
<rm:rmap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0" xmlns:maven="http://www.eclipse.org/buckminster/MavenProvider-1.0" xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0">
<rm:locator pattern="^wlp-.*" searchPathRef="awlcvs"/>
<rm:locator pattern=".*" searchPathRef="maven2"/>
<rm:searchPath name="awlcvs">
<rm:provider componentTypes="maven" readerType="cvs" resolutionFilter="">
<rm:uri format="one URL">
<bc:propertyRef key="buckminster.component"/>
</rm:uri>
</rm:provider>
</rm:searchPath>
<rm:searchPath name="maven2">
<rm:provider xsi:type="maven:MavenProvider" componentTypes="maven" readerType="maven2" source="false" mutable="false" resolutionFilter="" >
<rm:uri format="http://repository.xxxxxx.com/nexus/content/groups/public"/>
</rm:provider>

<rm:provider xsi:type="maven:MavenProvider" componentTypes="maven" readerType="maven2" source="false" mutable="false" resolutionFilter="">
<rm:uri format=" http://repository.xxxxxx.com/nexus/content/groups/public-sna pshots"/>
</rm:provider>

</rm:searchPath>
</rm:rmap>

Please help me to figure out my mistake.

Waiting for your response.

Thanks
Rajarshi

[Updated on: Wed, 02 February 2011 05:23]

Report message to a moderator

Re: Buckminster and Mavan2 [message #652014 is a reply to message #651947] Wed, 02 February 2011 07:28 Go to previous message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3208
Registered: July 2009
Senior Member
On 2011-02-02 09:11, Rajarshi wrote:
> Hi Thomas,
>
> Thanks for your replay.
> I am trying to debug for my <USER_HOME>/.m2 issue. Please let me know if you have anything to share.
>
> Please tell me when the patch (for maven provider change)
> will be available.
>
It is already available from our download sites at http://download.eclipse.org/tools/buckminster/updates-3.6 and
http://download.eclipse.org/tools/buckminster/headless-3.6 It will also be included in Helios SR2 due Feb 25.

- thomas
Previous Topic:headless buckminster -- error with svn; no secure storage modules found
Next Topic:Buckminster and Maven2 Local Repository
Goto Forum:
  


Current Time: Sun Apr 20 12:39:13 EDT 2014

Powered by FUDForum. Page generated in 0.01641 seconds