Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Get Maven component from SVN
Get Maven component from SVN [message #514955] Wed, 17 February 2010 10:33 Go to next message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
Hi,

is it possible to get a maven component type from within a svn provider?

If i configure my rmap to use a svn provider, buckminster will reject it - because no version matches.

When i checkout the maven project manually and look up his cspec i couldn't see a version in the editor either.

(I've created a simple maven project 'maven-archetype-quickstart'. And checked the behaviour with Buckminster 3.5 and 3.6.
On debugging the MavenCSpecBuilder it seems like that no version is read from the pom.xml)

Thanks for the advise.

Regards Matthias
Re: Get Maven component from SVN [message #514991 is a reply to message #514955] Wed, 17 February 2010 12:56 Go to previous messageGo to next message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
Maybe i should attach some Buckminster files:

CQuery:
<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="file:/C:\ws\my.rmap">
    <cq:rootRequest name="component.a" componentType="maven" versionDesignator="raw:[0.0.1.M,0.0.1.M]/format(n[.n=0;[.n=0;]][d?S=M;]):0.0.1,0.0.1"/>
    <cq:advisorNode namePattern="component\.a" componentType="maven" mutableLevel="REQUIRE" sourceLevel="REQUIRE"/>
</cq:componentQuery>


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="^component\.a" searchPathRef="sp"/>
  <rm:locator searchPathRef="mavenRepo"/>
  <rm:searchPath name="sp">
    <rm:provider componentTypes="maven" readerType="svn">
      <rm:uri format="http://svn/trunk/test/{0}">
        <bc:propertyRef key="buckminster.component"/>
      </rm:uri>
    </rm:provider>
  </rm:searchPath>
  <rm:searchPath name="mavenRepo">
    <rm:provider xsi:type="maven:MavenProvider" componentTypes="maven" readerType="maven2" source="false" mutable="false">
      <rm:uri format="http://localhost:8081/nexus/content/groups/public-snapshots"/>
    </rm:provider>
    <rm:provider xsi:type="maven:MavenProvider" componentTypes="maven" readerType="maven2" source="false" mutable="false">
      <rm:uri format="http://localhost:8081/nexus/content/groups/public"/>
    </rm:provider>
  </rm:searchPath>
</rm:rmap>


With the attribute 'versionDesignator' the provider will be rejected Crying or Very Sad . Without the 'versionDesignator' it will work.

[Updated on: Wed, 17 February 2010 12:57]

Report message to a moderator

Re: Get Maven component from SVN [message #515144 is a reply to message #514991] Wed, 17 February 2010 21:10 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Matthias,
Is your objective to obtain a maven component as source from SVN or do you have a repository of binaries checked in?
Will you always access the trunk or are you planning to use branches for the checkouts?

Regards,
Thomas Hallgren


On 02/17/2010 01:56 PM, Matthias Kappeller wrote:
> Maybe i should attach some Buckminster files:
>
> CQuery:
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="file:/C:\ws\my.rmap">
> <cq:rootRequest name="component.a" componentType="maven"
> versionDesignator=" raw:[0.0.1.M,0.0.1.M]/format(n[.n=0;[.n=0;]][d?S=M;]):0.0.1, 0.0.1 "/>
>
> <cq:advisorNode namePattern="component\.a" componentType="maven"
> mutableLevel="REQUIRE" sourceLevel="REQUIRE"/>
> </cq:componentQuery>
>
> 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="^component\.a" searchPathRef="sp"/>
> <rm:locator searchPathRef="mavenRepo"/>
> <rm:searchPath name="sp">
> <rm:provider componentTypes="maven" readerType="svn">
> <rm:uri format="http://svn/trunk/test/{0}">
> <bc:propertyRef key="buckminster.component"/>
> </rm:uri>
> </rm:provider>
> </rm:searchPath>
> <rm:searchPath name="mavenRepo">
> <rm:provider xsi:type="maven:MavenProvider" componentTypes="maven"
> readerType="maven2" source="false" mutable="false">
> <rm:uri
> format="http://localhost:8081/nexus/content/groups/public-snapshots"/>
> </rm:provider>
> <rm:provider xsi:type="maven:MavenProvider" componentTypes="maven"
> readerType="maven2" source="false" mutable="false">
> <rm:uri format="http://localhost:8081/nexus/content/groups/public"/>
> </rm:provider>
> </rm:searchPath>
> </rm:rmap>
>
> With the attribute 'versionDesignator' the provider will be rejected
> :cry: . Without the 'versionDesignator' it will work.
> [/CODE]
Re: Get Maven component from SVN [message #515152 is a reply to message #515144] Wed, 17 February 2010 21:34 Go to previous messageGo to next message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
> Hi Matthias,
Hi Thomas,

> Is your objective to obtain a maven component as source from SVN or do
> you have a repository of binaries checked in?

I want to get a maven component as source from SVN.

> Will you always access the trunk or are you planning to use branches for
> the checkouts?
For test purposes i will only use the trunk. But you're right, it must
be possible to checkout from branches in future.

>
> Regards,
> Thomas Hallgren
Regards - Matthias

>
>
> On 02/17/2010 01:56 PM, Matthias Kappeller wrote:
>> Maybe i should attach some Buckminster files:
>>
>> CQuery:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <cq:componentQuery
>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>> resourceMap="file:/C:\ws\my.rmap">
>> <cq:rootRequest name="component.a" componentType="maven"
>> versionDesignator=" raw:[0.0.1.M,0.0.1.M]/format(n[.n=0;[.n=0;]][d?S=M;]):0.0.1, 0.0.1 "/>
>>
>>
>> <cq:advisorNode namePattern="component\.a" componentType="maven"
>> mutableLevel="REQUIRE" sourceLevel="REQUIRE"/>
>> </cq:componentQuery>
>>
>> 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="^component\.a" searchPathRef="sp"/>
>> <rm:locator searchPathRef="mavenRepo"/>
>> <rm:searchPath name="sp">
>> <rm:provider componentTypes="maven" readerType="svn">
>> <rm:uri format="http://svn/trunk/test/{0}">
>> <bc:propertyRef key="buckminster.component"/>
>> </rm:uri>
>> </rm:provider>
>> </rm:searchPath>
>> <rm:searchPath name="mavenRepo">
>> <rm:provider xsi:type="maven:MavenProvider" componentTypes="maven"
>> readerType="maven2" source="false" mutable="false">
>> <rm:uri
>> format="http://localhost:8081/nexus/content/groups/public-snapshots"/>
>> </rm:provider>
>> <rm:provider xsi:type="maven:MavenProvider" componentTypes="maven"
>> readerType="maven2" source="false" mutable="false">
>> <rm:uri format="http://localhost:8081/nexus/content/groups/public"/>
>> </rm:provider>
>> </rm:searchPath>
>> </rm:rmap>
>>
>> With the attribute 'versionDesignator' the provider will be rejected
>> :cry: . Without the 'versionDesignator' it will work.
>> [/CODE]
>
Re: Get Maven component from SVN [message #515159 is a reply to message #514991] Wed, 17 February 2010 22:20 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Matthias,
Can you please enter a bugzilla for this (Tools/Buckminster/providers). A log using DEBUG output when the
versionDesignator is in effect might be helpful.

Regards,
Thomas Hallgren


On 02/17/2010 01:56 PM, Matthias Kappeller wrote:
> Maybe i should attach some Buckminster files:
>
> CQuery:
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="file:/C:\ws\my.rmap">
> <cq:rootRequest name="component.a" componentType="maven"
> versionDesignator=" raw:[0.0.1.M,0.0.1.M]/format(n[.n=0;[.n=0;]][d?S=M;]):0.0.1, 0.0.1 "/>
>
> <cq:advisorNode namePattern="component\.a" componentType="maven"
> mutableLevel="REQUIRE" sourceLevel="REQUIRE"/>
> </cq:componentQuery>
>
> 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="^component\.a" searchPathRef="sp"/>
> <rm:locator searchPathRef="mavenRepo"/>
> <rm:searchPath name="sp">
> <rm:provider componentTypes="maven" readerType="svn">
> <rm:uri format="http://svn/trunk/test/{0}">
> <bc:propertyRef key="buckminster.component"/>
> </rm:uri>
> </rm:provider>
> </rm:searchPath>
> <rm:searchPath name="mavenRepo">
> <rm:provider xsi:type="maven:MavenProvider" componentTypes="maven"
> readerType="maven2" source="false" mutable="false">
> <rm:uri
> format="http://localhost:8081/nexus/content/groups/public-snapshots"/>
> </rm:provider>
> <rm:provider xsi:type="maven:MavenProvider" componentTypes="maven"
> readerType="maven2" source="false" mutable="false">
> <rm:uri format="http://localhost:8081/nexus/content/groups/public"/>
> </rm:provider>
> </rm:searchPath>
> </rm:rmap>
>
> With the attribute 'versionDesignator' the provider will be rejected
> :cry: . Without the 'versionDesignator' it will work.
> [/CODE]
Re: Get Maven component from SVN [message #515305 is a reply to message #515159] Thu, 18 February 2010 13:00 Go to previous message
Matthias Kappeller is currently offline Matthias KappellerFriend
Messages: 54
Registered: July 2009
Member
Hi Thomas,

I have filed a Bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=303172)

regards - matthias
Previous Topic:RMap redirect breaks searchPath overlap
Next Topic:Is there an error in the Buckybook or in Buckminster?
Goto Forum:
  


Current Time: Fri Mar 29 01:19:35 GMT 2024

Powered by FUDForum. Page generated in 0.03186 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top