Open visionset opened 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
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
What messages You get in the log output?
[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
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.
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?
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.
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
-- 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.
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:
Fails with below