Community
Participate
Working Groups
In a RCP project, that has a targetplatform.target that describes all necessary and sufficient units as below, with Maven and a settings.xml that refers to a P2 group, Tycho works well when the P2 group matches the targetplatform.target file. The P2 group is composed of multiple P2 proxies. But if I add a P2 proxy for another RCP project, in the P2 group, Tycho mixes dependencies version, while it should not. In this case, it does not compile anymore and we have the error: ---- [INFO] Loading repository 'http://download.eclipse.org/nebula/releases/1.1.0' from mirror 'nexus-p2' at 'https://[NexusSite]/content/groups/P2/' [INFO] Loading repository 'https://dl.bintray.com/opcoach/e4Preferences' from mirror 'nexus-l2pf-p2' at 'https://[NexusSite]/content/groups/P2/' [ERROR] All attempts to read artifact osgi.bundle,com.google.guava,21.0.0.v20170206-1425 failed: [ERROR] An error occurred while transferring artifact packed: osgi.bundle,com.google.guava,21.0.0.v20170206-1425 from repository https://[NexusSite]/content/repositories/P2_eclipse_acceleo_updates: [ERROR] Artifact not found: https://[NexusSite]/content/repositories/P2_eclipse_acceleo_updates/plugins/com.google.guava_21.0.0.v20170206-1425.jar.pack.gz. ---- In this case, it searches for guava 21.0.0, that is provided in Acceleo update site: http://download.eclipse.org/acceleo/updates/releases/3.6/R201602090916 But my first RCP project does not need this. If I force a reference in targetplatform.target in this update site, with no unit, it works: <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit"> <repository location="http://download.eclipse.org/acceleo/updates/releases/3.6/R201602090916"/> </location> File targetplatform.target: ... <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit"> <unit id="org.csstudio.thirdparty.all.feature.feature.group" version="0.0.0"/> <repository location="http://download.controlsystemstudio.org/thirdparty/4.3/"/> </location> <location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit"> <unit id="org.eclipse.nebula.widgets.ganttchart.feature.feature.group" version="0.0.0"/> <unit id="org.eclipse.nebula.widgets.cdatetime.feature.feature.group" version="0.0.0"/> <repository location="http://download.eclipse.org/nebula/releases/1.1.0"/> </location> ... File settings.xml: <mirror> <id>nexus-p2</id> <name>p2 Repository mirror</name> <url>https://[NexusSite]/content/groups/L2PF_P2/</url> <layout>p2</layout> <mirrorOfLayouts>p2</mirrorOfLayouts> <!-- Wildcards explained in https://maven.apache.org/guides/mini/guide-mirror-settings.html does not work for P2. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=528500 --> <mirrorOf> http://download.controlsystemstudio.org/applications/4.3, http://download.controlsystemstudio.org/core/4.3, http://download.eclipse.org/releases/mars/201602261000, ... </mirrorOf>
Eclipse Tycho is moving away from this bugs.eclipse.org issue tracker to https://github.com/eclipse/tycho/issues/ instead. If this issue is relevant to you, your action is required. 0. Verify this issue is still happening with latest Tycho 2.4.0-SNAPSHOT if issue has disappeared, please change status of this issue to "CLOSED WORKFORME" with some details about your testing environment and how you did verify the issue; and you're done if issue is still present when latest release: * Create a new issue at https://github.com/eclipse/tycho/issues/ ** Use as title in GitHub the title of this Bugzilla ticket (may include the bug number or not, at your own convenience) ** In the GitHub description, start with a link to this bugzilla ticket ** Optionally add new content to the description if it can helps towards resolution ** Submit GitHub issue * Update bugzilla ticket ** Add to "See also" property (up right column) the link to the newly created GitHub issue ** Add a comment "Migrated to <link-to-newly-created-GitHub-issue>" ** Set status as CLOSED MOVED ** Submit All issues that remain open will be automatically closed next week or so. Then the Bugzilla component for Tycho will be archived and made read-only.