Hi,

 

org.eclipse.tycho:tycho-packaging-plugin:2.0.0:build-qualifier expects the code 
to be in git repository. Looks like this won’t work. Platform project needs to 
have a relook at this one.

 

 

We do have another solution for you to build 4.17 from source

 

Tools required: maven, git and java 11 all three should be on path

 

Steps:

1.      Clone git repo
2.      Checkout R4_17_maintenance branch for along with submodules
3.      Pull latest changes(Getting other changes done post 4.17 releases)
4.      Maven build

 

Here is the script to do the above steps

git clone -b R4_17_maintenance –recurse-submodules 
https://git.eclipse.org/r/platform/eclipse.platform.releng.aggregator.git

cd eclipse.platform.releng.aggregator

git checkout R4_17_maintenance

git submodule foreach git checkout R4_17_maintenance

git pull 

git submodule foreach git pull

mvn -U clean verify -DskipTests=true

 

Hope this helps 

 

Thanks

Sravan

 

 

 

From: Kirill Kotovich <kirillkotovi...@gmail.com> 
Sent: 11 June 2021 22:11
To: Eclipse platform general developers list. <platform-dev@eclipse.org>
Subject: [EXTERNAL] Re: [platform-dev] Source Tarball Eclipse 4.17.0

 

There is progress! But the following problem arose:

........................................

[INFO] Reactor Summary:
[INFO] 
[INFO] eclipse-platform-parent 4.17.0-SNAPSHOT ............ SUCCESS [ 54.989 s]
[INFO] eclipse-sdk-prereqs 4.17.0-SNAPSHOT ................ SUCCESS [  7.499 s]
[INFO] eclipse jdt 4.17.0-SNAPSHOT ........................ SUCCESS [  0.026 s]
[INFO] rt.equinox.framework 4.17.0-SNAPSHOT ............... SUCCESS [  0.016 s]
[INFO] org.eclipse.osgi 3.16.0-SNAPSHOT ................... FAILURE [  0.035 s]
[INFO] org.eclipse.osgi.util 3.5.300-SNAPSHOT ............. SKIPPED
[INFO] org.eclipse.osgi.services 3.9.0-SNAPSHOT ........... SKIPPED

........................................

........................................

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  06:31 min
[INFO] Finished at: 2021-06-11T19:00:04+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.eclipse.tycho:tycho-packaging-plugin:2.0.0:build-qualifier 
(default-build-qualifier) on project org.eclipse.osgi: No git repository found 
searching upwards from 
/home/main/eclipse-platform-sources-I20200902-1800/rt.equinox.framework/bundles/org.eclipse.osgi
 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException> 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :org.eclipse.osgi

пт, 11 июн. 2021 г. в 13:59, Sravan K Lakkimsetti <sravankum...@in.ibm.com 
<mailto:sravankum...@in.ibm.com> >:

Hi Kirill,

 

The build script is referring to 4.17-I-builds repository, which was removed 
after 4.17 release. The tar ball was created during the build process when 
I-builds repository existed. To fix this please update 
eclipse-platform-parent/pom.xml. Replace 4.17-I-builds with 4.17. That should 
fix the problem.

 

Thanks

Sravan 

 

From: Kirill Kotovich <kirillkotovi...@gmail.com 
<mailto:kirillkotovi...@gmail.com> > 
Sent: 11 June 2021 16:18
To: Eclipse platform general developers list. <platform-dev@eclipse.org 
<mailto:platform-dev@eclipse.org> >
Subject: [EXTERNAL] [platform-dev] Source Tarball Eclipse 4.17.0

 

Hello!

I tried to build the Eclipse SDK from source by downloading the tarball from 
this page:
http://download.eclipse.org/eclipse/downloads/drops4/R-4.17-202009021800/

I opened the unpacked tarball in the Eclipse IDE for Eclipse Committers. Build 
result:


.................................
[INFO] Downloading from : 
https://repo.eclipse.org/content/repositories/tycho-snapshots/org/apache/maven/plugins/maven-assembly-plugin/3.3.0/maven-assembly-plugin-3.3.0.jar
[INFO] Downloading from : 
https://repo.eclipse.org/content/repositories/eclipse-staging/org/apache/maven/plugins/maven-assembly-plugin/3.3.0/maven-assembly-plugin-3.3.0.jar
[INFO] Downloading from : 
https://repo.eclipse.org/content/repositories/cbi-snapshots/org/apache/maven/plugins/maven-assembly-plugin/3.3.0/maven-assembly-plugin-3.3.0.jar
[INFO] Downloading from : 
https://repo.eclipse.org/content/repositories/cbi/org/apache/maven/plugins/maven-assembly-plugin/3.3.0/maven-assembly-plugin-3.3.0.jar
[INFO] Downloading from : 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/3.3.0/maven-assembly-plugin-3.3.0.jar
 
<https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/3.3.0/maven-assembly-plugin-3.3.0.jar>
 
[INFO] Downloaded from : 
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/3.3.0/maven-assembly-plugin-3.3.0.jar
 
<https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/3.3.0/maven-assembly-plugin-3.3.0.jar>
  (242 kB at 1.9 MB/s)
[INFO] Computing target platform for MavenProject: 
org.eclipse.jdt:org.eclipse.jdt:3.18.500-SNAPSHOT @ 
/home/main/eclipse-platform-sources-I20200902-1800/eclipse.jdt/org.eclipse.jdt/pom.xml
[INFO] Performing subquery
[INFO] Adding repository 
https://download.eclipse.org/eclipse/updates/4.17-I-builds
[ERROR] Internal error: java.lang.RuntimeException: Failed to load p2 
repository with ID 'eclipse' from location 
https://download.eclipse.org/eclipse/updates/4.17-I-builds: No repository found 
at https://download.eclipse.org/eclipse/updates/4.17-I-builds. -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: 
java.lang.RuntimeException: Failed to load p2 repository with ID 'eclipse' from 
location https://download.eclipse.org/eclipse/updates/4.17-I-builds
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:120)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
    at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
    at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
    at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Caused by: java.lang.RuntimeException: Failed to load p2 repository with ID 
'eclipse' from location 
https://download.eclipse.org/eclipse/updates/4.17-I-builds
    at 
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:310)
    at 
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.gatherExternalInstallableUnits(TargetPlatformFactoryImpl.java:278)
    at 
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:180)
    at 
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:132)
    at 
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform(TargetPlatformFactoryImpl.java:1)
    at 
org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform(ReactorRepositoryManagerImpl.java:84)
    at 
org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform(P2DependencyResolver.java:229)
    at 
org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject(DefaultTychoResolver.java:120)
    at 
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:95)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:264)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
    ... 11 more
Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found 
at https://download.eclipse.org/eclipse/updates/4.17-I-builds.
    at 
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:396)
    at 
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:700)
    at 
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:110)
    at 
org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:61)
    at 
org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:53)
    at 
org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository(TargetPlatformFactoryImpl.java:306)
    ... 22 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException 
<http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException> 


Please tell me what am I doing wrong? 

The pictures show the run configuration of the project:


Building via terminal gives a similar answer. The downloaded version of the SDK 
also does not affect the result.

 

With gratitude,

Kirill

 

_______________________________________________
platform-dev mailing list
platform-dev@eclipse.org <mailto:platform-dev@eclipse.org> 
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev



-- 

With gratitude,

Kirill


_______________________________________________
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev

Reply via email to