|
|
Re: Get Maven component from SVN [message #515144 is a reply to message #514991] |
Wed, 17 February 2010 21:10 |
|
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 #515159 is a reply to message #514991] |
Wed, 17 February 2010 22:20 |
|
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]
|
|
|
|
Powered by
FUDForum. Page generated in 0.02927 seconds