Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Include source features in eclipse repository

Hi,

Taking Cristiano's patched project, I added the following snippet to the end of the build section of the feature pom to hook up the p2-metadata creation. This now hooks up the source feature to the p2 repository;

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>attached-p2-metadata</id>
<phase>package</phase>
<goals>
<goal>p2-metadata</goal>
</goals>
</execution>
</executions>
</plugin>


Regards,

Simon


On 16 January 2013 08:07, Timo Rohrberg <rti.init@xxxxxxxxxxxxxx> wrote:
Hello,

thank you for your help. Unfortunately, even your patched project did not work for me. I tried to build it with a recent 3.0.4 apache maven configured for our company network. The only thing I had to adjust is the url of the tycho snapshots site as I could not use https connections from within our company network. So I was just using the same url, but with a normal http connection.

The source feature is generated within the com.initplan.example.component.feature project. But that was working with my demo project already. However, the source feature is not copied into the resulting p2 repository within the target/repository folder in com.initplan.example.component.build.

Also with my own version of the demo project it does not work if I provide a feature.properties within the sourceTemplateFeature folder and am using Tycho 0.16.0.

Does the publishing of source features really only work with the recent Tycho snapshots? Once again: The source feature jar is generated, just the copying into the resulting p2 repository does not work for me...

Do you have any ideas?

Thanks again.

Regards
Timo


2013/1/15 Cristiano Gavião <cvgaviao@xxxxxxxxx>
Hi,

I patch a bit your demo project. it is now generating the source feature but it is not adding the label and description feature.properties from the sourceTemplateFeature folder.

perhaps someone here could take a look and find what is wrong or maybe there is a bug.

regards,

Cristiano


On 15/01/13 12:39, Timo Rohrberg wrote:
Hello everybody,

in the attached demo projects, I am building a simple bundle, a feature containing that bundle, and an eclipse p2 repository for publishing them. The build for the feature uses the tycho-source-feature-plugin to also build a source feature. Unfortunately that source feature is not published within the eclipse p2 repository.

I already listed the source feature explicitly in the category.xml, but it does not help. I also don't know how to specify the URL to the source bundle correctly there as it is just available after a successful build of the com.initplan.example.component.feature project.

I also tried to add the tycho-source-plugin and the tycho-source-feature-plugin to the eclipse p2 repository build, but it does not help either.

Do you have any ideas?

Thank you.

Regards
Timo


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top