Community
Participate
Working Groups
Tycho metadata plugin should generate `download.stats` property for artifacts.
New Gerrit change created: https://git.eclipse.org/r/130248
is this a duplicate of bug 341744 ?
(In reply to Jan Sievers from comment #2) > is this a duplicate of bug 341744 ? No, but they are deeply related. This issue here is about generating the "download.stats" property for artifacts, and to have them published with such properties so that consumers which have a p2.statsURI set in their artifact repo (like SimRel) will trigger a HEAD request to the download server. This patch doesn't cover the addition of p2.statsURI in the repo.
Gerrit change https://git.eclipse.org/r/130248 was merged to [master]. Commit: http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=13dc60ad7525111135c3cef5990e79d18d607dd1
wiki.eclipse.org is currently unlogging me for no good reason whenever I try to push a change. I'm leaving the N&N change here and will move it to wiki when it's in a better mood. * {{bug|538729}} Tycho 1.3.0 surefire plugin supports starting applications that use org.apache.felix.scr bundle in place of org.eclipse.equinox.ds (like Eclipse Platform 4.10 based target-platforms) * {{bug|539552}} Support for <tt>download.stats</tt> property on artifacts metadata. In order to (partially) enable p2 download stats as documented in [[Equinox_p2_download_stats]], you can now configure you <tt>tycho-p2-plugin:p2-metadata</tt> execution to add the necessary property on the artifacts: <source lang="xml"> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-p2-plugin</groupId> <configuration> <generateDownloadStatsProperty>true</generateDownloadStatsProperty> </configuration> </plugin> </source> or alternatively, you can override the <tt>tycho.generateDownloadStatsProperty</tt> property either by CLI with <tt>mvn -Dtycho.generateDownloadStatsProperty=true ...</tt> or by adding <tt><tycho.generateDownloadStatsProperty>true</tycho.generateDownloadStatsProperty></tt> in the <tt><properties></tt> element of your pom.xml. This results in this in artifacts.xml (and derived artifacts.jar and artifacts.xml.xz): <source lang="xml"> <artifacts size='4'> <artifact classifier='osgi.bundle' id='bundle' version='1.0.0.123abc'> <properties size='9'> <!-- ... --> <property name='download.stats' value='bundle/1.0.0.123abc'/> <!-- ... --> </properties> </artifact> <artifact classifier='osgi.bundle' id='bundle' version='1.0.0.123abc'> <processing size='1'> <step id='org.eclipse.equinox.p2.processing.Pack200Unpacker' required='true'/> </processing> <properties size='12'> <!-- ... --> <property name='download.stats' value='bundle/1.0.0.123abc'/> <!-- ... --> </properties> </artifact> </source>
I could finally modify the wiki and add it to N&N. Closing!
New Gerrit change created: https://git.eclipse.org/r/130325
Gerrit change https://git.eclipse.org/r/130325 was merged to [master]. Commit: http://git.eclipse.org/c/tycho/org.eclipse.tycho.extras.git/commit/?id=0aa93a641b01e049179cfa8cb318fe5a2d6c2ebc