How generate a p2 and maven repo?https://www.eclipse.org/forums/index.php/mv/msg/208212/667009/#msg_667009
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?

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>
>
>
>
>]]>Filip Hrbek2011-05-02T09:58:57-00:00Re: How generate a p2 and maven repo?https://www.eclipse.org/forums/index.php/mv/msg/208212/668110/#msg_668110
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?

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>
>>
>>
>>
>>
>

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>
>>>
>>>
>>>
>>>
>>
>
>]]>Filip Hrbek2011-05-07T09:16:07-00:00