Problem with building plugin via Buckminster

158 views
Skip to first unread message

Neil Gordon

unread,
Nov 17, 2015, 8:36:42 AM11/17/15
to iDempiere
We are automating the build of our plugins.


Per the tutorial, we setup a new workspace, and imported only our plugins, with the goal being to materialize from an iDempiere build.

Our plugins all start with my.plugin

But we are getting this error, when opening the .cquery file, and clicking on Resolve and Materialize:

ERROR   [0001] : No suitable provider for component base:eclipse.feature was found in resourceMap file:/path/to/my.plugin/base.rmap
  ERROR   [0001] : No suitable provider for component base:eclipse.feature was found in searchPath idempiere-evebuild01
    ERROR   [0001] : Rejecting provider p2(file://home/myuser/buckminster.output/org.adempiere.server_2.1.0-eclipse.feature/site.p2[file://home/myuser/buckminster.output/org.adempiere.server_2.1.0-eclipse.feature/site.p2]): No component match was found
Errors and Warnings
E [0001] : No suitable provider for component base:eclipse.feature was found in resourceMap file:/path/to/my/autobuildworkspace/my.plugin/base.rmap
E   [0001] : No suitable provider for component base:eclipse.feature was found in searchPath idempiere-evebuild01
E     [0001] : Rejecting provider p2(file://home/myuser/buckminster.output/org.adempiere.server_2.1.0-eclipse.feature/site.p2[file://home/myuser/buckminster.output/org.adempiere.server_2.1.0-eclipse.feature/site.p2]): No component match was found
TAG-ID 0001 = Query for base:eclipse.feature

Follows is our rmap file:

<?xml version="1.0" encoding="UTF-8"?>
  <rm:locator pattern="^my\.plugin(\..+)?" searchPathRef="local"/>
  <rm:locator searchPathRef="idempiere-evebuild01"/>
  <rm:searchPath name="local">
    <rm:provider componentTypes="eclipse.feature,osgi.bundle" readerType="local">
      <rm:uri format="{0}/{1}">
        <bc:propertyRef key="workspace.root"/>
        <bc:propertyRef key="buckminster.component"/>
      </rm:uri>
    </rm:provider>
  </rm:searchPath>
  <rm:searchPath name="idempiere-evebuild01">
    <rm:provider componentTypes="osgi.bundle,eclipse.feature" readerType="p2" mutable="false">
      <rm:property key="buckminster.mutable" value="false"/>
      <rm:uri format="file://home/myuser/buckminster.output/org.adempiere.server_2.1.0-eclipse.feature/site.p2">
        <bc:propertyRef key="workspace.root"/>
        <bc:propertyRef key="buckminster.component"/>
      </rm:uri>
    </rm:provider>
  </rm:searchPath>
</rm:rmap>

Here is our cquery file:

<?xml version="1.0" encoding="UTF-8"?><cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="base.rmap">
    <cq:rootRequest name="base" componentType="eclipse.feature"/>
    <cq:property key="target.arch" value="*"/>
    <cq:property key="target.os" value="*"/>
    <cq:property key="target.ws" value="*"/>
</cq:componentQuery>



Muhammed

unread,
Nov 17, 2015, 11:11:01 AM11/17/15
to iDempiere
Hi Neil,

it looks okey, you just forget to add the two slashes '//' in the URI of your rmap, please confirm also in your cquery that contain the exact name in the resourceMap attribute, you should also give the name of the feature into the root request, so your rmap and cquery should look like something like this  :


rmap file:

<?xml version="1.0" encoding="UTF-8"?>
<rm:rmap xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0" xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0">
  <rm:locator pattern="^my\.plugin(\..+)?" searchPathRef="local"/>
  <rm:locator searchPathRef="idempiere-evebuild01"/>
  <rm:searchPath name="local">
    <rm:provider componentTypes="eclipse.feature,osgi.bundle" readerType="local">
      <rm:uri format="{0}/{1}">
        <bc:propertyRef key="workspace.root"/>
        <bc:propertyRef key="buckminster.component"/>
      </rm:uri>
    </rm:provider>
  </rm:searchPath>
  <rm:searchPath name="idempiere-evebuild01">
    <rm:provider componentTypes="osgi.bundle,eclipse.feature" readerType="p2" mutable="false">
      <rm:property key="buckminster.mutable" value="false"/>
      <rm:uri format="file:////home/myuser/buckminster.output/org.adempiere.server_2.1.0-eclipse.feature/site.p2">

        <bc:propertyRef key="workspace.root"/>
        <bc:propertyRef key="buckminster.component"/>
      </rm:uri>
    </rm:provider>
  </rm:searchPath>
</rm:rmap>


Here is our cquery file:


<?xml version="1.0" encoding="UTF-8"?><cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="buckminster.rmap">
    <cq:rootRequest name="my.plugin.feature" componentType="eclipse.feature"/>

Hiep Lq

unread,
Nov 17, 2015, 11:58:02 AM11/17/15
to Mohemmed Bilal Ilyas
I already setup environment for nakarat.
it can material and build idempiere include extend plug-in.
i already setup jenkins for it.
but i has no time, and it's two hard (english) for me to complete a wiki page.

you can study from it.
1. clone with --noupdate repository: https://bitbucket.org/nakarat/nakarat-group to example folder [nakarat-group]
noupdate because when you update it will also clone idempiere, it's two big and always crash.

2. clone your current local idempiere repository to [nakarat-group]/idempiere-nakarat 

3. edit file [nakarat-group]/.hgsub as below
become idempiere-nakarat = idempiere-nakarat

4. now update workspace for nakarat-group

5. material idempiere-nakarat  as normal, you can see other plug-in also include to workspace.

6. for package (invock bitbucket action or headless) see my two last commit.

7. for jenkins, i will give you access to my jenkins server by skype.


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/65b74bfc-1c87-41d5-a166-4b926b2d76e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam

Neil Gordon

unread,
Nov 18, 2015, 4:21:20 AM11/18/15
to iDempiere
Hi Muhammed,

Thank you for your reply.

>it looks okey, you just forget to add the two slashes '//' in the URI of your rmap, please confirm also in your cquery that contain the exact name in the resourceMap attribute, you should also give the name of the feature into the root request, so your rmap and cquery should look like something like this  :

I tried your suggestion, but I wonder if there is something else wrong, it fails with a similar message. 

I'm looking at Hiep's project before I continue investigating this approach....

Regards,

Neil

Neil Gordon

unread,
Nov 18, 2015, 4:23:43 AM11/18/15
to iDempiere
Hi Hiep,

> I already setup environment for nakarat.
> you can study from it.

Thank you, much appreciated.

I am studying your example, and will post any questions as they arise.

Regards,

Neil

Neil Gordon

unread,
Nov 18, 2015, 7:12:51 AM11/18/15
to iDempiere
Hi Hiep,

> edit file [nakarat-group]/.hgsub as below

I couldn't get to edit the file, because the project isn't updated, and it doesn't exist on the filesystem yet...

Is there another way to accomplish this?

In the meantime, I'm trying a full clone, it timed out once, will try again.

Regards,

Neil
Reply all
Reply to author
Forward
0 new messages