eclipse-ee4j / eclipselink

Eclipselink project
https://eclipse.dev/eclipselink/
Other
201 stars 170 forks source link

Error building eclipselink #2038

Open visionset opened 10 months ago

visionset commented 10 months ago

Trying to build 2.7.14, the same issue I've had with pretty much every release in 2.x over recent years Using JAVA_HOME = v17 tried: ant -buildfile antbuild.xml build-eclipselink-jar ant -f antbuild.xml clean build Had to edit buildfile.xml

as the properties create file:// and that is seen as an 'authority part' and not allowed, the above gets past that But it can not find repo at above, the only thing there is:

$ ls -R  ./home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo
./home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo:
features  plugins
./home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo/features:
oracle.libs.feature_1.0.0.v202401171129.jar
./home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo/plugins:
oracle.libs_1.0.0.v202401171129.jar

Fails with below

build-core:
     [echo] Launching Maven build with the following parameters:
     [echo]     -Dclassworlds.conf=/home/visionset/maven-3.9.4/bin/m2.conf
     [echo]     -Dmaven.home=/home/visionset/maven-3.9.4
     [echo]     -Dmaven.multiModuleProjectDirectory=buildsystem/org.eclipse.persistence.parent
     [echo]     -Dbuild.qualifier=qualifier
     [echo]     -DforceContextQualifier=qualifier
     [echo]     -Declipselink.full=true
     [echo]     -Doracle.p2.url=file://home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo
     [echo]     -B verify
     [java] [INFO] Scanning for projects...
     [java] [INFO] [92fcd9ea-7de7-43f5-a09b-86c8fdcee486][extension>org.eclipse.tycho:tycho-maven-plugin:3.0.4] System property http.proxyHost is not set but should be emea-proxy.uk.oracle.com.
     [java] [INFO] [92fcd9ea-7de7-43f5-a09b-86c8fdcee486][extension>org.eclipse.tycho:tycho-maven-plugin:3.0.4] System property http.proxyPort is not set but should be 80.
     [java] [INFO] ### Using TychoRepositoryTransport for remote P2 access ###
     [java] [INFO]     Cache location:         /home/visionset/.m2/repository-oracle/.cache/tycho
     [java] [INFO]     Transport mode:         online
     [java] [INFO]     Update mode:            cache first
     [java] [INFO]     Minimum cache duration: 60 minutes
     [java] [INFO]       (you can configure this with -Dtycho.p2.transport.min-cache-minutes=<desired minimum cache duration>)
     [java] [WARNING] No system packages found in profile nor toolchain for JRE-1.1, using current JRE system packages.
     [java] This can cause faulty dependency resolution, consider adding a definition for a 'jdk' with id=JRE-1.1 in your toolchains.xml
     [java] [INFO] Adding repository file://home/blah/blah/eclipselink/jpa/org.eclipse.persistence.jpa.jpql/../../buildsystem/compdeps/org.eclipse.persistence.compdeps.p2repo/target/repository
     [java] [INFO] Adding repository file:/home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo
     [java] [ERROR] Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'Oracle-local-p2' from location file:/home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo: No repository found at file:/home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo. -> [Help 1]
     [java] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'Oracle-local-p2' from location file:/home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo
     [java]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:109)
     [java]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
     [java]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
     [java]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
     [java]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
     [java]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
     [java]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke (Method.java:568)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
     [java] Caused by: java.lang.RuntimeException: Failed to load p2 repository with ID 'Oracle-local-p2' from location file:/home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository (TargetPlatformFactoryImpl.java:300)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.gatherExternalInstallableUnits (TargetPlatformFactoryImpl.java:270)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:172)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:137)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:1)
     [java]     at org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform (ReactorRepositoryManagerImpl.java:99)
     [java]     at org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform (P2DependencyResolver.java:229)
     [java]     at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:135)
     [java]     at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.lambda$resolveProjects$3 (TychoMavenLifecycleParticipant.java:254)
     [java]     at java.util.stream.ForEachOps$ForEachOp$OfRef.accept (ForEachOps.java:183)
     [java]     at java.util.stream.WhileOps$1$1.accept (WhileOps.java:99)
     [java]     at java.util.ArrayList$ArrayListSpliterator.tryAdvance (ArrayList.java:1602)
     [java]     at java.util.stream.ReferencePipeline.forEachWithCancel (ReferencePipeline.java:129)
     [java]     at java.util.stream.AbstractPipeline.copyIntoWithCancel (AbstractPipeline.java:527)
     [java]     at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:513)
     [java]     at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:499)
     [java]     at java.util.stream.ForEachOps$ForEachOp.evaluateSequential (ForEachOps.java:150)
     [java]     at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential (ForEachOps.java:173)
     [java]     at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
     [java]     at java.util.stream.ReferencePipeline.forEach (ReferencePipeline.java:596)
     [java]     at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.resolveProjects (TychoMavenLifecycleParticipant.java:292)
     [java]     at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:142)
     [java]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:223)
     [java]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
     [java]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
     [java]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
     [java]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
     [java]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
     [java]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
     [java]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
     [java]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke (Method.java:568)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
     [java] Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/blah/blah/eclipselink/buildsystem/oraclelibs/p2repo.
     [java]     at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail (AbstractRepositoryManager.java:405)
     [java]     at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository (AbstractRepositoryManager.java:709)
     [java]     at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository (MetadataRepositoryManager.java:110)
     [java]     at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository (RemoteMetadataRepositoryManager.java:64)
     [java]     at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository (RemoteMetadataRepositoryManager.java:56)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.loadMetadataRepository (TargetPlatformFactoryImpl.java:296)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.gatherExternalInstallableUnits (TargetPlatformFactoryImpl.java:270)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:172)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:137)
     [java]     at org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:1)
     [java]     at org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform (ReactorRepositoryManagerImpl.java:99)
     [java]     at org.eclipse.tycho.p2.resolver.P2DependencyResolver.computePreliminaryTargetPlatform (P2DependencyResolver.java:229)
     [java]     at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:135)
     [java]     at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.lambda$resolveProjects$3 (TychoMavenLifecycleParticipant.java:254)
     [java]     at java.util.stream.ForEachOps$ForEachOp$OfRef.accept (ForEachOps.java:183)
     [java]     at java.util.stream.WhileOps$1$1.accept (WhileOps.java:99)
     [java]     at java.util.ArrayList$ArrayListSpliterator.tryAdvance (ArrayList.java:1602)
     [java]     at java.util.stream.ReferencePipeline.forEachWithCancel (ReferencePipeline.java:129)
     [java]     at java.util.stream.AbstractPipeline.copyIntoWithCancel (AbstractPipeline.java:527)
     [java]     at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:513)
     [java]     at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:499)
     [java]     at java.util.stream.ForEachOps$ForEachOp.evaluateSequential (ForEachOps.java:150)
     [java]     at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential (ForEachOps.java:173)
     [java]     at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
     [java]     at java.util.stream.ReferencePipeline.forEach (ReferencePipeline.java:596)
     [java]     at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.resolveProjects (TychoMavenLifecycleParticipant.java:292)
     [java]     at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:142)
     [java]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:223)
     [java]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
     [java]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
     [java]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
     [java]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
     [java]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
     [java]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
     [java]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
     [java]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke (Method.java:568)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
     [java] [ERROR] 
     [java] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
     [java] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
     [java] [ERROR] 
     [java] [ERROR] For more information about the errors and possible solutions, please read the following articles:
     [java] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
rfelcman commented 10 months ago

Sorry I don't think, that 2.7.x build is broken. Please check Your environment and follow the guide https://github.com/eclipse-ee4j/eclipselink/wiki/Building-EclipseLink#eclipselink-27x

manishkrishan commented 9 months ago

I followed exactly same steps as https://github.com/eclipse-ee4j/eclipselink/wiki/Building-EclipseLink#eclipselink-27x but failing due to some missing tycho extn. It is not clear where and what all extension are required. Please help here. Also is it going to build following jars: org.eclipse.persistence.antlr-2.7.14.jar org.eclipse.persistence.core-2.7.14.jar org.eclipse.persistence.jpa.jpql-2.7.14.jar org.eclipse.persistence.jpa-2.7.14.jar org.eclipse.persistence.oracle-2.7.14.jar

rfelcman commented 9 months ago

What messages You get in the log output?

manishkrishan commented 9 months ago
     [java] [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/6.4.0/biz.aQute.bndlib-6.4.0.jar (3.2 MB at 2.4 MB/s)
     [java] [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk18on/1.72/bcprov-jdk18on-1.72.jar (11 MB at 8.1 MB/s)
     [java] [WARNING] Error injecting: org.eclipse.tycho.p2maven.repository.P2ArtifactRepositoryLayout
     [java] java.lang.TypeNotPresentException: Type org.eclipse.tycho.p2maven.repository.P2ArtifactRepositoryLayout not present
     [java]     at org.eclipse.sisu.space.URLClassSpace.loadClass (URLClassSpace.java:147)
     [java]     at org.eclipse.sisu.space.NamedClass.load (NamedClass.java:46)
     [java]     at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:48)
     [java]     at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:86)
     [java]     at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57)
     [java]     at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:67)
     [java]     at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:109)
     [java]     at org.eclipse.sisu.bean.BeanScheduler$CycleActivator.onProvision (BeanScheduler.java:230)
     [java]     at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:117)
     [java]     at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:66)
     [java]     at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:62)
     [java]     at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:47)
     [java]     at com.google.inject.internal.ProviderToInternalFactoryAdapter.get (ProviderToInternalFactoryAdapter.java:40)
     [java]     at com.google.inject.internal.SingletonScope$1.get (SingletonScope.java:169)
     [java]     at com.google.inject.internal.InternalFactoryToProviderAdapter.get (InternalFactoryToProviderAdapter.java:45)
     [java]     at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1101)
     [java]     at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:81)
     [java]     at org.eclipse.sisu.plexus.LazyPlexusBean.getValue (LazyPlexusBean.java:51)
     [java]     at java.util.AbstractMap.get (AbstractMap.java:187)
     [java]     at org.apache.maven.repository.legacy.LegacyRepositorySystem.getLayout (LegacyRepositorySystem.java:756)
     [java]     at org.apache.maven.repository.legacy.LegacyRepositorySystem.buildArtifactRepository (LegacyRepositorySystem.java:705)
     [java]     at org.apache.maven.project.DefaultProjectBuildingHelper.createArtifactRepositories (DefaultProjectBuildingHelper.java:91)
     [java]     at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled (DefaultModelBuildingListener.java:108)
     [java]     at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire (ModelBuildingEventCatapult.java:40)
     [java]     at org.apache.maven.model.building.DefaultModelBuilder.fireEvent (DefaultModelBuilder.java:1269)
     [java]     at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:474)
     [java]     at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:455)
     [java]     at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:612)
     [java]     at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:375)
     [java]     at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:349)
     [java]     at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:340)
     [java]     at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:76)
     [java]     at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:448)
     [java]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:197)
     [java]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
     [java]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
     [java]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
     [java]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
     [java]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke (Method.java:498)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
     [java] Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/tycho/p2maven/repository/P2ArtifactRepositoryLayout has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
     [java]     at java.lang.ClassLoader.defineClass1 (Native Method)
     [java]     at java.lang.ClassLoader.defineClass (ClassLoader.java:756)
     [java]     at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:142)
     [java]     at java.net.URLClassLoader.defineClass (URLClassLoader.java:473)
     [java]     at java.net.URLClassLoader.access$100 (URLClassLoader.java:74)
     [java]     at java.net.URLClassLoader$1.run (URLClassLoader.java:369)
     [java]     at java.net.URLClassLoader$1.run (URLClassLoader.java:363)
     [java]     at java.security.AccessController.doPrivileged (Native Method)
     [java]     at java.net.URLClassLoader.findClass (URLClassLoader.java:362)
     [java]     at org.codehaus.plexus.classworlds.realm.ClassRealm.findClassInternal (ClassRealm.java:313)
     [java]     at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf (ClassRealm.java:432)
     [java]     at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:42)
     [java]     at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
     [java]     at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
     [java]     at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
     [java]     at org.eclipse.sisu.space.URLClassSpace.loadClass (URLClassSpace.java:139)
     [java]     at org.eclipse.sisu.space.NamedClass.load (NamedClass.java:46)
     [java]     at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:48)
     [java]     at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:86)
     [java]     at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57)
     [java]     at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:67)
     [java]     at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:109)
     [java]     at org.eclipse.sisu.bean.BeanScheduler$CycleActivator.onProvision (BeanScheduler.java:230)
     [java]     at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:117)
     [java]     at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:66)
     [java]     at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:62)
     [java]     at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:47)
     [java]     at com.google.inject.internal.ProviderToInternalFactoryAdapter.get (ProviderToInternalFactoryAdapter.java:40)
     [java]     at com.google.inject.internal.SingletonScope$1.get (SingletonScope.java:169)
     [java]     at com.google.inject.internal.InternalFactoryToProviderAdapter.get (InternalFactoryToProviderAdapter.java:45)
     [java]     at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1101)
     [java]     at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:81)
     [java]     at org.eclipse.sisu.plexus.LazyPlexusBean.getValue (LazyPlexusBean.java:51)
     [java]     at java.util.AbstractMap.get (AbstractMap.java:187)
     [java]     at org.apache.maven.repository.legacy.LegacyRepositorySystem.getLayout (LegacyRepositorySystem.java:756)
     [java]     at org.apache.maven.repository.legacy.LegacyRepositorySystem.buildArtifactRepository (LegacyRepositorySystem.java:705)
     [java]     at org.apache.maven.project.DefaultProjectBuildingHelper.createArtifactRepositories (DefaultProjectBuildingHelper.java:91)
     [java]     at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled (DefaultModelBuildingListener.java:108)
     [java]     at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire (ModelBuildingEventCatapult.java:40)
     [java]     at org.apache.maven.model.building.DefaultModelBuilder.fireEvent (DefaultModelBuilder.java:1269)
     [java]     at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:474)
     [java]     at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:455)
     [java]     at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:612)
     [java]     at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:375)
     [java]     at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:349)
     [java]     at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:340)
     [java]     at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:76)
     [java]     at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:448)
     [java]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:197)
     [java]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
     [java]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
     [java]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
     [java]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
     [java]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke (Method.java:498)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
     [java] [ERROR] [ERROR] Some problems were encountered while processing the POMs:
     [java] [ERROR] Invalid artifact repository: Unable to provision, see the following errors:
     [java] 
     [java] 1) [Guice/ErrorInCustomProvider]: TypeNotPresentException: Type P2ArtifactRepositoryLayout not present
     [java]   at ClassRealm[extension>org.eclipse.tycho:tycho-maven-plugin:3.0.4, parent: Launcher$AppClassLoader@7852e922]
     [java]       \_ installed by: WireModule -> PlexusBindingModule
     [java]   while locating ArtifactRepositoryLayout annotated with @Named(value=p2)
     [java] 
     [java] Learn more:
     [java]   https://github.com/google/guice/wiki/ERROR_IN_CUSTOM_PROVIDER
     [java] 
     [java] 1 error
     [java] 
     [java] ======================
     [java] Full classname legend:
     [java] ======================
     [java] ArtifactRepositoryLayout:   "org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout"
     [java] Launcher$AppClassLoader:    "sun.misc.Launcher$AppClassLoader"
     [java] Named:                      "com.google.inject.name.Named"
     [java] P2ArtifactRepositoryLayout: "org.eclipse.tycho.p2maven.repository.P2ArtifactRepositoryLayout"
     [java] PlexusBindingModule:        "org.eclipse.sisu.plexus.PlexusBindingModule"
     [java] WireModule:                 "org.eclipse.sisu.wire.WireModule"
     [java] ========================
     [java] End of classname legend:
     [java] ========================
     [java]  @ 
     [java]  @ 
     [java] [ERROR] The build could not read 1 project -> [Help 1]
     [java] [ERROR]   
     [java] [ERROR]   The project org.eclipse.persistence:org.eclipse.persistence.parent:2.7.14-SNAPSHOT (/scratch/3rdparty/eclipselink-2.7.14/buildsystem/org.eclipse.persistence.parent/pom.xml) has 1 error
     [java] [ERROR]     Invalid artifact repository: Unable to provision, see the following errors:
     [java] [ERROR]     
     [java] [ERROR]     1) [Guice/ErrorInCustomProvider]: TypeNotPresentException: Type P2ArtifactRepositoryLayout not present
     [java] [ERROR]       at ClassRealm[extension>org.eclipse.tycho:tycho-maven-plugin:3.0.4, parent: Launcher$AppClassLoader@7852e922]
     [java] [ERROR]           \_ installed by: WireModule -> PlexusBindingModule
     [java] [ERROR]       while locating ArtifactRepositoryLayout annotated with @Named(value=p2)
     [java] [ERROR]     
     [java] [ERROR]     Learn more:
     [java] [ERROR]       https://github.com/google/guice/wiki/ERROR_IN_CUSTOM_PROVIDER
     [java] [ERROR]     
     [java] [ERROR]     1 error
     [java] [ERROR]     
     [java] [ERROR]     ======================
     [java] [ERROR]     Full classname legend:
     [java] [ERROR]     ======================
     [java] [ERROR]     ArtifactRepositoryLayout:   "org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout"
     [java] [ERROR]     Launcher$AppClassLoader:    "sun.misc.Launcher$AppClassLoader"
     [java] [ERROR]     Named:                      "com.google.inject.name.Named"
     [java] [ERROR]     P2ArtifactRepositoryLayout: "org.eclipse.tycho.p2maven.repository.P2ArtifactRepositoryLayout"
     [java] [ERROR]     PlexusBindingModule:        "org.eclipse.sisu.plexus.PlexusBindingModule"
     [java] [ERROR]     WireModule:                 "org.eclipse.sisu.wire.WireModule"
     [java] [ERROR]     ========================
     [java] [ERROR]     End of classname legend:
     [java] [ERROR]     ========================: Type org.eclipse.tycho.p2maven.repository.P2ArtifactRepositoryLayout not present: org/eclipse/tycho/p2maven/repository/P2ArtifactRepositoryLayout has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
     [java] [ERROR] 
     [java] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
     [java] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
     [java] [ERROR] 
     [java] [ERROR] For more information about the errors and possible solutions, please read the following articles:
     [java] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

BUILD FAILED
/scratch/3rdparty/eclipselink-2.7.14/antbuild.xml:525: Java returned: 1

Total time: 1 minute 36 seconds
rfelcman commented 9 months ago

Sorry but message [java] Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/tycho/p2maven/repository/P2ArtifactRepositoryLayout has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0 implies, that JDK 8.0 is on the path not mentioned 17. Build prints Java version to the console. Search e.g. https://ci.eclipse.org/eclipselink/job/eclipselink-cb-2.7/408/consoleFull for [echo] java.version = line.

manishkrishan commented 9 months ago

yes, I am compiling it with JDK 1.8.0_351-b10

Does it mean that 2.7.14 is not compatible with JAVA 8?

rfelcman commented 9 months ago

2.7.14 is compatible with JAVA 8 as compiler target is Java 8, but for a build and due some tests dependencies and minimal Tycho version is JDK11+ needed. There was error in https://github.com/eclipse-ee4j/eclipselink/wiki/Building-EclipseLink#antbuild27 which I fixed.

manishkrishan commented 9 months ago

Thankyou for input so there is no way to compile it with JDK 8 ? I don't want to run any test, just need to build above mentioned jars due to some compliance requirements.

Please also fix typos true|fale in Sample proxy.ini (optional step 5) at https://github.com/eclipse-ee4j/eclipselink/wiki/Building-EclipseLink#antbuild27

rfelcman commented 9 months ago

-- Thank you for input so there is no way to compile it with JDK 8 ? Sorry but no. There is pressure to use JDK 21 for a build and we can't handle this wide list of JDK versions. Used build tools (Ant, Maven, Tycho) limits us. And some dependencies too.