Open gspadotto opened 9 months ago
Upvote
@chamilaadhi any comment/remark about https://github.com/wso2/maven-tools/pull/118 ?
I am trying to build MI on a private branch of v4.3.0-m1 but I would need to know how this dependency has been built, in order for me to create an equivalent but more recent Equinox runtime to start from: https://mvnrepository.com/artifact/org.eclipse.equinox/org.eclipse.equinox.executable/3.5.0.v20110530-7P7NFUFFLWUl76mart
I have reached the point where you can build MI v4.3.0-m1 with jdk 17 (with JAVA_TOOL_OPTIONS set) but there are still some issues when "materialising" the product (I think those are due to inconsistent Import/Export packages and Service Component Runtime not being used/set properly):
[INFO] --- wso2-carbon-p2:5.2.50-SNAPSHOT:p2-profile-gen (3-p2-profile-generation) @ micro-integrator-p2-profile ---
[INFO] Running Equinox P2 Director Application
Installing org.wso2.micro.integrator.server.feature.group 4.3.0.m1.
Installing org.wso2.micro.integrator.initializer.feature.group 4.3.0.m1.
Installing org.apache.synapse.wso2.feature.group 4.0.0.wso2v98.
Installing org.apache.synapse.transport.fix.feature.group 4.0.0.wso2v98.
Installing org.apache.synapse.transport.nhttp.feature.group 4.0.0.wso2v98.
Installing org.apache.synapse.transport.vfs.feature.group 4.0.0.wso2v98.
Installing org.apache.synapse.transport.vfs.smb2.feature.group 4.0.0.wso2v98.
Installing org.wso2.micro.integrator.mediators.server.feature.group 4.3.0.m1.
Installing org.wso2.carbon.relay.server.feature.group 4.7.197.
Installing org.wso2.carbon.mediator.smooks.server.feature.group 4.7.197.
Installing org.wso2.carbon.mediator.datamapper.server.feature.group 4.7.197.
Installing org.wso2.carbon.mediator.datamapper.engine.feature.group 4.7.197.
Installing org.wso2.carbon.transports.sap.feature.group 4.7.36.
Installing org.wso2.micro.integrator.websocket.feature.group 4.3.0.m1.
Installing org.wso2.micro.integrator.inbound.endpoints.server.feature.group 4.3.0.m1.
Installing org.wso2.micro.integrator.mediation.ntask.feature.group 4.3.0.m1.
Installing org.wso2.micro.integrator.identity.xacml.mediator.feature.group 4.3.0.m1.
Installing org.wso2.micro.integrator.mediator.dataservice.feature.group 4.3.0.m1.
Installing org.wso2.carbon.core.runtime.feature.group 4.8.1.
Installing org.wso2.micro.integrator.ntask.core.feature.group 4.3.0.m1.
Installing org.wso2.carbon.databridge.datapublisher.feature.group 5.2.52.
Installing org.wso2.micro.integrator.analytics.messageflow.data.publisher.feature.group 4.3.0.m1.
Installing org.wso2.micro.integrator.observability.feature.group 4.3.0.m1.
Installing org.apache.axis2.transport.jms.feature.group 2.0.0.wso2v69.
Installing org.apache.axis2.transport.mail.feature.group 2.0.0.wso2v69.
Installing org.apache.axis2.transport.tcp.feature.group 2.0.0.wso2v69.
Installing org.apache.axis2.transport.udp.feature.group 2.0.0.wso2v69.
Installing org.apache.axis2.transport.xmpp.feature.group 2.0.0.wso2v69.
Installing org.apache.axis2.transport.rabbitmq.feature.group 2.0.0.wso2v69.
Installing org.apache.axis2.transport.mqtt.feature.group 2.0.0.wso2v69.
Installing org.wso2.ciphertool.feature.group 1.1.15.
Installing org.wso2.micro.integrator.security.server.feature.group 4.3.0.m1.
Installing org.wso2.micro.integrator.crypto.feature.group 4.3.0.m1.
Installing org.wso2.micro.integrator.dataservices.server.feature.group 4.3.0.m1.
Installing org.wso2.transport.http.netty.feature.group 6.3.49.
Installing org.wso2.micro.integrator.logging.updater.feature.group 4.3.0.m1.
Installation failed.
Cannot complete the install because one or more required items could not be found.
Software being installed: org.wso2.micro.integrator.analytics.messageflow.data.publisher.feature 4.3.0.m1 (org.wso2.micro.integrator.analytics.messageflow.data.publisher.feature.group 4.3.0.m1)
Missing requirement: org.wso2.micro.integrator.analytics.messageflow.data.publisher 4.3.0.m1 (org.wso2.micro.integrator.analytics.messageflow.data.publisher 4.3.0.m1) requires 'osgi.service; (objectClass=org.wso2.micro.integrator.core.services.Axis2ConfigurationContextService)' but it could not be found
Cannot satisfy dependency:
From: org.wso2.micro.integrator.analytics.messageflow.data.publisher.feature 4.3.0.m1 (org.wso2.micro.integrator.analytics.messageflow.data.publisher.feature.group 4.3.0.m1)
To: org.eclipse.equinox.p2.iu; org.wso2.micro.integrator.analytics.messageflow.data.publisher [4.3.0.m1,4.3.0.m1]
[ERROR] [77228b40-702e-4ebd-b12f-4a78cf9e1a64][plugin>org.wso2.maven:carbon-p2-plugin:5.2.50-SNAPSHOT] Cannot complete the install because one or more required items could not be found.
@gspadotto do you know how to build the Dashboard?
Description
Any 4.x.x version of MI cannot be built with reasonably recent JDKs unless you set the following environment variable:
export JAVA_TOOL_OPTIONS=' -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED '
This is due to the fact that the carbon-p2-plugin does not pass VM arguments to the P2ApplicationLauncher class: https://github.com/wso2/maven-tools/blob/v5.1.2/carbon-p2-plugin/src/main/java/org/wso2/maven/p2/RepositoryGenMojo.java#L259-L269
In other terms, the carbon-p2-plugin never invokes this method: https://github.com/eclipse-tycho/tycho/blob/tycho-0.25.0/sisu-equinox/sisu-equinox-launching/src/main/java/org/eclipse/sisu/equinox/launching/internal/P2ApplicationLauncher.java#L80-L84
There is no mention of this in the README.md file.
Steps to Reproduce
Clone the MI repository, checkout a recent tag (v4.2.0, v4.3.0-m1), follow the instructions to build it with either JDK11 or JDK17.
Affected Component
MI
Version
v4.2.0, v4.3.1-m1
Environment Details (with versions)
openjdk version "11.0.22" 2024-01-16 OpenJDK Runtime Environment Temurin-11.0.22+7 (build 11.0.22+7) OpenJDK 64-Bit Server VM Temurin-11.0.22+7 (build 11.0.22+7, mixed mode)
Mac OS Big Sur (11.7.10)
Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f) Maven home: /usr/local/apache-maven-3.9.3 Java version: 11.0.22, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home Default locale: en_IT, platform encoding: UTF-8 OS name: "mac os x", version: "11.7.10", arch: "x86_64", family: "mac"
Relevant Log Output
Related Issues
https://github.com/wso2/micro-integrator/issues/3012 https://github.com/eclipse-tycho/tycho/discussions/3112
Suggested Labels
Affected/MI-4.x.x