Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » B3 » How generate a p2 and maven repo?
How generate a p2 and maven repo? [message #667009] Mon, 25 April 2011 13:46 Go to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
I want to generate a maven repository from the Texo/Teneo update site during the build process. The update site is
created during the build and at the end of the build I want to use b3 to generate a new site from the initial generated
update site.

I want the update site to only contain the Texo features and no dependencies, is this possible or how can I do that?

To test this I started by creating a b3 xml (see below), when I do build repository (from the ui), 3 directories are
created p2, interim and final, the p2 only contains these folders:
org.eclipse.equinox.p2.core
org.eclipse.equinox.p2.engine
org.eclipse.equinox.p2.repository

and the final directory only contains artifact.jar and contents.jar.

So I miss the final p2 site/maven repository. Am I doing something wrong?

Here is the b3 aggr file:

<?xml version="1.0" encoding="UTF-8"?>
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" buildmaster="//@contacts[email='mtaal@elver.org']"
label="Texo p2 and Maven repository" buildRoot="${user.home}/mytmp/test" mavenResult="true">
<configurations enabled="false"/>
<configurations enabled="false" operatingSystem="linux" windowSystem="gtk"/>
<contributions description="Texo" label="Texo" contacts="//@contacts[email='mtaal@elver.org']">
<repositories location=" http://download.eclipse.org/modeling/emft/texo/updates/inter im" description="Texo Update
Site"/>
</contributions>
<contributions label="Helios 3.6">
<repositories location="http://download.eclipse.org/releases/helios"/>
</contributions>
<contributions label="Texo Dependencies" contacts="//@contacts[email='mtaal@elver.org']">
<repositories location="http://www.elver.org/eclipse/update"/>
</contributions>
<contacts name="Martin Taal" email="mtaal@elver.org"/>
</aggregator:Aggregator>




--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: How generate a p2 and maven repo? [message #667808 is a reply to message #667009] Mon, 02 May 2011 09:58 Go to previous messageGo to next message
Filip Hrbek is currently offline Filip HrbekFriend
Messages: 233
Registered: July 2009
Senior Member
Hi Martin,

I am sorry for answering so late, first I had been too busy and then I forgot about this issue.

I think that the main problem is that both your configurations are marked as disabled:

<configurations enabled="false"/>
<configurations enabled="false" operatingSystem="linux" windowSystem="gtk"/>

If you open the model in the editor, they are displayed as grey. Use context menu or EMF property view to enable one or both of them and try again.

Let me know if it helps. Keep in mind that mirroring the whole Eclipse repository may take a while though.

Regards
Filip



Dne 25.4.2011 15:46, Martin Taal napsal(a):
> Hi,
> I want to generate a maven repository from the Texo/Teneo update site during the build process. The update site is created during the build and at the end of the build I want to use b3 to generate a new site from the initial generated update site.
>
> I want the update site to only contain the Texo features and no dependencies, is this possible or how can I do that?
>
> To test this I started by creating a b3 xml (see below), when I do build repository (from the ui), 3 directories are created p2, interim and final, the p2 only contains these folders:
> org.eclipse.equinox.p2.core
> org.eclipse.equinox.p2.engine
> org.eclipse.equinox.p2.repository
>
> and the final directory only contains artifact.jar and contents.jar.
>
> So I miss the final p2 site/maven repository. Am I doing something wrong?
>
> Here is the b3 aggr file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" buildmaster="//@contacts[email='mtaal@elver.org']" label="Texo p2 and Maven repository" buildRoot="${user.home}/mytmp/test" mavenResult="true">
> <configurations enabled="false"/>
> <configurations enabled="false" operatingSystem="linux" windowSystem="gtk"/>
> <contributions description="Texo" label="Texo" contacts="//@contacts[email='mtaal@elver.org']">
> <repositories location=" http://download.eclipse.org/modeling/emft/texo/updates/inter im" description="Texo Update Site"/>
> </contributions>
> <contributions label="Helios 3.6">
> <repositories location="http://download.eclipse.org/releases/helios"/>
> </contributions>
> <contributions label="Texo Dependencies" contacts="//@contacts[email='mtaal@elver.org']">
> <repositories location="http://www.elver.org/eclipse/update"/>
> </contributions>
> <contacts name="Martin Taal" email="mtaal@elver.org"/>
> </aggregator:Aggregator>
>
>
>
>
Re: How generate a p2 and maven repo? [message #668110 is a reply to message #667808] Tue, 03 May 2011 18:32 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Filip,
No problem at all, clear, I want to create a maven repository for specific texo features which only depend on emf. I
have created the xb3.aggr file but I am not sure how to prevent the whole helios from being seen as a contribution to.
So the texo repository should be the driver and only the emf jars should be pulled from the helios repository. How do I
define this?

<?xml version="1.0" encoding="UTF-8"?>
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" buildmaster="//@contacts[email='mtaal@elver.org']"
label="Texo p2 and Maven repository" buildRoot="${user.home}/mytmp/test" mavenResult="true">
<configurations operatingSystem="linux" windowSystem="gtk"/>
<contributions description="Texo" label="Texo" contacts="//@contacts[email='mtaal@elver.org']">
<repositories location=" http://download.eclipse.org/modeling/emft/texo/updates/inter im" description="Texo Update Site">
<features name="org.eclipse.emf.texo.runtime.core.feature.group"/>
<features name="org.eclipse.emf.texo.runtime.core.source.feature.group "/>
</repositories>
</contributions>
<contributions label="Helios 3.6">
<repositories location="http://download.eclipse.org/releases/helios"/>
</contributions>
<contacts name="Martin Taal" email="mtaal@elver.org"/>
</aggregator:Aggregator>


gr. Martin

On 05/02/2011 11:58 AM, Filip Hrbek wrote:
> Hi Martin,
>
> I am sorry for answering so late, first I had been too busy and then I forgot about this issue.
>
> I think that the main problem is that both your configurations are marked as disabled:
>
> <configurations enabled="false"/>
> <configurations enabled="false" operatingSystem="linux" windowSystem="gtk"/>
>
> If you open the model in the editor, they are displayed as grey. Use context menu or EMF property view to enable one or
> both of them and try again.
>
> Let me know if it helps. Keep in mind that mirroring the whole Eclipse repository may take a while though.
>
> Regards
> Filip
>
>
>
> Dne 25.4.2011 15:46, Martin Taal napsal(a):
>> Hi,
>> I want to generate a maven repository from the Texo/Teneo update site during the build process. The update site is
>> created during the build and at the end of the build I want to use b3 to generate a new site from the initial
>> generated update site.
>>
>> I want the update site to only contain the Texo features and no dependencies, is this possible or how can I do that?
>>
>> To test this I started by creating a b3 xml (see below), when I do build repository (from the ui), 3 directories are
>> created p2, interim and final, the p2 only contains these folders:
>> org.eclipse.equinox.p2.core
>> org.eclipse.equinox.p2.engine
>> org.eclipse.equinox.p2.repository
>>
>> and the final directory only contains artifact.jar and contents.jar.
>>
>> So I miss the final p2 site/maven repository. Am I doing something wrong?
>>
>> Here is the b3 aggr file:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" buildmaster="//@contacts[email='mtaal@elver.org']"
>> label="Texo p2 and Maven repository" buildRoot="${user.home}/mytmp/test" mavenResult="true">
>> <configurations enabled="false"/>
>> <configurations enabled="false" operatingSystem="linux" windowSystem="gtk"/>
>> <contributions description="Texo" label="Texo" contacts="//@contacts[email='mtaal@elver.org']">
>> <repositories location=" http://download.eclipse.org/modeling/emft/texo/updates/inter im" description="Texo Update Site"/>
>> </contributions>
>> <contributions label="Helios 3.6">
>> <repositories location="http://download.eclipse.org/releases/helios"/>
>> </contributions>
>> <contributions label="Texo Dependencies" contacts="//@contacts[email='mtaal@elver.org']">
>> <repositories location="http://www.elver.org/eclipse/update"/>
>> </contributions>
>> <contacts name="Martin Taal" email="mtaal@elver.org"/>
>> </aggregator:Aggregator>
>>
>>
>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
(no subject) [message #668771 is a reply to message #668110] Sat, 07 May 2011 09:16 Go to previous message
Filip Hrbek is currently offline Filip HrbekFriend
Messages: 233
Registered: July 2009
Senior Member
Hi Martin,

you need to add an explicit mapping of org.eclipse.emf.* bundles that you require. Only explicitly mapped bundles and their dependencies (direct or transitive) will be collected to create the final repo.

I created an example that adds org.eclipse.emf.ecore as the explcit bundle from Helios (pasted below).

Is it what you need?

Filip

<?xml version="1.0" encoding="UTF-8"?>
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" buildmaster="//@contacts[email='mtaal@elver.org']" label="Texo p2 and Maven repository" buildRoot="${user.home}/mytmp/test" mavenResult="true">
<configurations/>
<configurations operatingSystem="linux" windowSystem="gtk"/>
<contributions description="Texo" label="Texo" contacts="//@contacts[email='mtaal@elver.org']">
<repositories location=" http://download.eclipse.org/modeling/emft/texo/updates/inter im" description="Texo Update Site"/>
</contributions>
<contributions label="Helios 3.6">
<repositories location="http://download.eclipse.org/releases/helios">
<bundles name="org.eclipse.emf.ecore" versionRange="2.6.1.v20100914-1218"/>
</repositories>
</contributions>
<contributions label="Texo Dependencies" contacts="//@contacts[email='mtaal@elver.org']">
<repositories location="http://www.elver.org/eclipse/update"/>
</contributions>
<contacts name="Martin Taal" email="mtaal@elver.org"/>
</aggregator:Aggregator>




Dne 3.5.2011 20:32, Martin Taal napsal(a):
> Hi Filip,
> No problem at all, clear, I want to create a maven repository for specific texo features which only depend on emf. I have created the xb3.aggr file but I am not sure how to prevent the whole helios from being seen as a contribution to. So the texo repository should be the driver and only the emf jars should be pulled from the helios repository. How do I define this?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" buildmaster="//@contacts[email='mtaal@elver.org']" label="Texo p2 and Maven repository" buildRoot="${user.home}/mytmp/test" mavenResult="true">
> <configurations operatingSystem="linux" windowSystem="gtk"/>
> <contributions description="Texo" label="Texo" contacts="//@contacts[email='mtaal@elver.org']">
> <repositories location=" http://download.eclipse.org/modeling/emft/texo/updates/inter im" description="Texo Update Site">
> <features name="org.eclipse.emf.texo.runtime.core.feature.group"/>
> <features name="org.eclipse.emf.texo.runtime.core.source.feature.group "/>
> </repositories>
> </contributions>
> <contributions label="Helios 3.6">
> <repositories location="http://download.eclipse.org/releases/helios"/>
> </contributions>
> <contacts name="Martin Taal" email="mtaal@elver.org"/>
> </aggregator:Aggregator>
>
>
> gr. Martin
>
> On 05/02/2011 11:58 AM, Filip Hrbek wrote:
>> Hi Martin,
>>
>> I am sorry for answering so late, first I had been too busy and then I forgot about this issue.
>>
>> I think that the main problem is that both your configurations are marked as disabled:
>>
>> <configurations enabled="false"/>
>> <configurations enabled="false" operatingSystem="linux" windowSystem="gtk"/>
>>
>> If you open the model in the editor, they are displayed as grey. Use context menu or EMF property view to enable one or
>> both of them and try again.
>>
>> Let me know if it helps. Keep in mind that mirroring the whole Eclipse repository may take a while though.
>>
>> Regards
>> Filip
>>
>>
>>
>> Dne 25.4.2011 15:46, Martin Taal napsal(a):
>>> Hi,
>>> I want to generate a maven repository from the Texo/Teneo update site during the build process. The update site is
>>> created during the build and at the end of the build I want to use b3 to generate a new site from the initial
>>> generated update site.
>>>
>>> I want the update site to only contain the Texo features and no dependencies, is this possible or how can I do that?
>>>
>>> To test this I started by creating a b3 xml (see below), when I do build repository (from the ui), 3 directories are
>>> created p2, interim and final, the p2 only contains these folders:
>>> org.eclipse.equinox.p2.core
>>> org.eclipse.equinox.p2.engine
>>> org.eclipse.equinox.p2.repository
>>>
>>> and the final directory only contains artifact.jar and contents.jar.
>>>
>>> So I miss the final p2 site/maven repository. Am I doing something wrong?
>>>
>>> Here is the b3 aggr file:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>>> xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" buildmaster="//@contacts[email='mtaal@elver.org']"
>>> label="Texo p2 and Maven repository" buildRoot="${user.home}/mytmp/test" mavenResult="true">
>>> <configurations enabled="false"/>
>>> <configurations enabled="false" operatingSystem="linux" windowSystem="gtk"/>
>>> <contributions description="Texo" label="Texo" contacts="//@contacts[email='mtaal@elver.org']">
>>> <repositories location=" http://download.eclipse.org/modeling/emft/texo/updates/inter im" description="Texo Update Site"/>
>>> </contributions>
>>> <contributions label="Helios 3.6">
>>> <repositories location="http://download.eclipse.org/releases/helios"/>
>>> </contributions>
>>> <contributions label="Texo Dependencies" contacts="//@contacts[email='mtaal@elver.org']">
>>> <repositories location="http://www.elver.org/eclipse/update"/>
>>> </contributions>
>>> <contacts name="Martin Taal" email="mtaal@elver.org"/>
>>> </aggregator:Aggregator>
>>>
>>>
>>>
>>>
>>
>
>
Previous Topic:Mirroring Helios-Updatesite with B3
Next Topic:Updated description for setting up development environment
Goto Forum:
  


Current Time: Fri Apr 19 21:40:50 GMT 2024

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

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

Back to the top