WIP: playing with dependencies to compile also with macos arm64 and openjdk 11 or 17 #431
Draft
alessia.bardi
wants to merge 5 commits from
dependency-revision
into beta
pull from: dependency-revision
merge into: D-Net:beta
D-Net:main
D-Net:beta
D-Net:beta_jan2025
D-Net:propagateorcid
D-Net:COnnectSubCommunities
D-Net:csv_collector_plugins
D-Net:kubernetes
D-Net:solr_v9
D-Net:affiliation-matching
D-Net:hive_graph_db
D-Net:cleaning_10215
D-Net:beta-ukripublication
D-Net:scholix_small_index
D-Net:Communities_patents
D-Net:crossref_mapping_improvement
D-Net:raid_actionset
D-Net:zenodo_dump_collection
D-Net:datacite_dump_import
D-Net:incremental_graph_main
D-Net:main_bulktag
D-Net:actionset_promote_sequential
D-Net:person_through_the_graph_relazioniattributate
D-Net:pubmed_fix
D-Net:dedup_new_comparators
D-Net:abtracts_guidelines4
D-Net:propagateorcid_publisher
D-Net:merge_resulttypes
D-Net:betaFixPerson
D-Net:k8s_orcidpropagation
D-Net:raw_affiliation_mapping
D-Net:mergedids
D-Net:beta_provision_alignment_9.0.0
D-Net:bestinstancetype
D-Net:person_through_the_graph
D-Net:person_through_the_graph_newDevelopments
D-Net:affroNewModelonBeta
D-Net:beta_fixes_oct
D-Net:dedup_local_test_implementation
D-Net:fix_decision_tree
D-Net:pid_cleaning
D-Net:affRoModelModificationOnmain
D-Net:beta2main_sept2024
D-Net:osfPreprints_plugin
D-Net:fix_missing_project_rels
D-Net:enrich_more_subject_bug
D-Net:gtr2Publications_plugin
D-Net:merge_by_id_fix
D-Net:dedup_blacklist_fix
D-Net:claim-orgs
D-Net:9126-impact-indicators-wf-optimisation
D-Net:AffiliationFromPublisher
D-Net:pubmed_aggregation_improvements
D-Net:betaAffiliationFromPublisherPages
D-Net:oozie_spark_params
D-Net:GraphAnnotation
D-Net:rest-collector-request-header-map2
D-Net:dedup_countryInference_NPE
D-Net:webCrawlLessBlackList
D-Net:fos_l1l2
D-Net:sdgnodoi
D-Net:person
D-Net:tagOrganization
D-Net:entity_contexts
D-Net:broker_orcid
D-Net:metadata_collection_java_upgrade
D-Net:research_fi_collector_plugin
D-Net:openorgs_optimization
D-Net:checkContextOnDatasourceAndProject
D-Net:affRoFromRawStringmain
D-Net:openorgs_fixes
D-Net:master
D-Net:9872-create-solr-collection-aliases
D-Net:json_payload
D-Net:pivotselectionbypid
D-Net:import_openorg_type
D-Net:irish-oaipmh-exporter
D-Net:fix_mergedcliquesort
D-Net:spark34-integration
D-Net:beta_indexing_May2024
D-Net:mag_only_doi
D-Net:rest-collector-plugin-with-retry
D-Net:beta-release-1.2.5
D-Net:misc_fixes_merge_entities
D-Net:WebCrowlBeta
D-Net:WebCrowl
D-Net:doidoost_dismiss
D-Net:CrossrefFundersMap
D-Net:taggingProjects
D-Net:9647_datacite_affiliations
D-Net:UsageStatsRecordDS
D-Net:mergeutils
D-Net:oaf_country_beta
D-Net:index_records
D-Net:9559_DBLP_data
D-Net:base_stats_job_deprecated
D-Net:SWH_issue_377
D-Net:spark_join_param_tuning
D-Net:crossref_mapping_vocabularies
D-Net:oldPropagationOrganizationCommunity
D-Net:orcid_import
D-Net:dedup-with-dataframe-spark34
D-Net:ticket_8369
D-Net:tweaking_spark_params
D-Net:fc4e-rsac
D-Net:doiboost_authormerger
D-Net:beta_dedup_configuration
D-Net:scholix_flat_indexing
D-Net:scholix_data_type_openaire
D-Net:subjectPropagation
D-Net:enrichment
D-Net:validation
No reviewers
Labels
Clear labels
Something is not working
This issue or pull request already exists
New feature / refactoring
Need some help
Something is wrong
More information is needed
EOSC Research Discovery Graph
EOSC Research Software APIs and Connectors
This won't be fixed
bug
Something is not working
duplicate
This issue or pull request already exists
enhancement
New feature / refactoring
help wanted
Need some help
invalid
Something is wrong
question
More information is needed
RDGraph
EOSC Research Discovery Graph
RSAC
EOSC Research Software APIs and Connectors
wontfix
This won't be fixed
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
Milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Clear assignees
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#431
Reference in New Issue
No description provided.
Delete Branch "dependency-revision"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Compilation problems have been recently reported.
I also have compilation problems on my new Macos arm64 and latest OpenJDK (21).
With this branch we can play with pom and dependencies.
My today's attempt revealed that we cannot use an OpenJDK version > 11 due to incompatibiliy with the Scala version we use (see https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html)
I also had compilation problems due to:
dhp-common has an indirect dependency to lombok and e only way I found so far to avoid the compilation error
Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @xxxxxxxx) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @xxxxxxxxx
was to add a provided dependency to lombok, which I do not like.
Results of compilation on
with the current commit is:
playing with dependencies to compile also with macos arm64 and openjdk 11 or 17to WIP: playing with dependencies to compile also with macos arm64 and openjdk 11 or 17Instructions to install Java8 on MacOS ARM chips available in the wiki: https://support.openaire.eu/projects/openaire/wiki/Wiki#Compile-dnet-hadoop-with-ARM-chips-eg-MacOS-M3
@alessia.bardi I just merged in beta PR #327 that solves part of the problems. A new profile, -P spark-34, can be used to activate building against spark 3.4.2.openaire that has recently been installed on ICM ocean cluster. With that profile it is also possible to compile and run tests using an updated jdk (indeed with spark-34 profile only).
Regarding Silicon macs I found two main problems:
<dependency> <groupId>org.xerial.snappy</groupId> <artifactId>snappy-java</artifactId> <version>1.1.8.4</version> </dependency>
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.