Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 382006

Summary: [Tycho build] Incomplete pom.xml file for parent
Product: [Eclipse Project] Equinox Reporter: Mickael Istria <mistria>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, jan.sievers, pascal.rapicault, pwebster
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Mickael Istria CLA 2012-06-07 10:25:09 EDT
I'm trying to build a p2 bundle locally, and met several issues:
* Missing repo to use eclipse-parent => Added reference to eclipse nexus public repository
* Wrong version from parent => use 3 instead of 1.0.0-SNAPSHOT
* Missing reference to org.eclipse and org.osgi framwework => Add a reference to indigo or helios; or a repo for a specific version of platform
* tycho-maven-plugin not activated
* Moved to tycho-maven-plugin 0.15.0 and got issue while compiling org.eclipse.equinox.p2.updatesite because of org.xml.sax. This is most probably related to how Tycho resolves packages into BREE.
Comment 1 Pascal Rapicault CLA 2012-11-21 10:48:54 EST
I fixed a number of the issues you mention and at this point I'm able to compile all the code.
At this point there are couple issues still left:
- features are not built because org.eclipse.license is not found in a p2 repo (bug #394793)
- the end 2 end test will not run because we can't download the eclipse-platform. A request to publish the platform zip to maven repository has been opened (bug #394799)
- I also don't inherit from the eclipse-parent
- No eclipse build bell and whistle (source gen, signing, etc)
Comment 3 Paul Webster CLA 2012-11-21 12:30:42 EST
The eclipse-parent that we use and the org.eclipse.license are built as part of the CBI Platform build.  http://wiki.eclipse.org/Platform-releng/Platform_Build

We're going to start merging the pom file changes forward into master shortly.

PW
Comment 4 Pascal Rapicault CLA 2012-11-21 12:42:51 EST
I've reverted the changes to the aggregator and to the parent to allow the CBI to proceed.
Comment 5 Pascal Rapicault CLA 2012-11-21 12:44:46 EST
Assistance on getting a standalone p2 build going and still working with the CBI is appreciated.
Comment 6 Paul Webster CLA 2012-12-12 09:30:06 EST
Pascal, to build rt.equinox.p2 stand-alone (not quite alone :-)  I had to add a profile to the eclipse-parent pom in eclipse.platform.releng.aggregator:



+    <profile>
+      <id>partial-build</id>
+      <activation>
+        <property>
+          <name>eclipse-sdk-repo.url</name>
+        </property>
+      </activation>
+      <repositories>
+        <repository>
+          <id>eclipse-sdk-repo</id>
+          <url>${eclipse-sdk-repo.url}</url>
+          <layout>p2</layout>
+        </repository>
+      </repositories>
+    </profile>

Then to build it, i needed:
bash$ cd eclipse.platform.releng.aggregator
bash$ mvn -f eclipse-parent/pom.xml clean install \
  -Dmaven.repo.local=$LOCAL_REPO
bash$ cd ../eclipse.platform.releng
bash$ mvn -f features/org.eclipse.license/pom.xml clean install \
  -Dmaven.test.skip=true -Dmaven.repo.local=$LOCAL_REPO
bash$ cd ../rt.equinox.p2
bash$ mvn -X -Pbree-libs clean install \
  -Declipse-sdk-repo.url=http://download.eclipse.org/eclipse/updates/4.2-M-builds \
  -Dmaven.test.skip=true -Dmaven.repo.local=$LOCAL_REPO

You need the parent, and then features in rt.equinox.p2 needs the org.eclipse.license feature from somewhere.

PW
Comment 8 Eclipse Genie CLA 2019-04-07 16:04:29 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 9 Alexander Kurtakov CLA 2019-04-08 03:24:31 EDT
Mickael, is this still an issue for you?
Comment 10 Mickael Istria CLA 2019-04-08 03:35:15 EDT
I don't think it's still an issue.