Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(setups): Added tasks to oomph setup to enforce right life-cycle mapping. #5036

Merged
merged 10 commits into from
Dec 6, 2023

Conversation

salvatore-coppola
Copy link
Contributor

@salvatore-coppola salvatore-coppola commented Nov 30, 2023

Added tasks to oomph setup to enforce right life-cycle mapping needed to solve conflict between Tycho PDE and m2e.core.

@salvatore-coppola salvatore-coppola marked this pull request as ready for review November 30, 2023 12:54
@salvatore-coppola salvatore-coppola force-pushed the add-lifecycle-mappings-eclipse-ide branch from 22aa82a to bec5fbf Compare November 30, 2023 14:39
@salvatore-coppola salvatore-coppola force-pushed the add-lifecycle-mappings-eclipse-ide branch from bec5fbf to 4562c64 Compare December 4, 2023 14:26
@MMaiero
Copy link
Contributor

MMaiero commented Dec 5, 2023

Hello,
the changes made so far improve but not resolve the issues in my environment:

image

This is at the first start after the setup and the loading of the startup scripts.

A target definition reload solves almost all if not all the errors.

@MMaiero
Copy link
Contributor

MMaiero commented Dec 5, 2023

Also, as reported here the emulator configuration seems not polished.

@MMaiero
Copy link
Contributor

MMaiero commented Dec 5, 2023

This seems to be a configuration that seems to be working in my environment:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.pde.ui.EquinoxLauncher">
    <booleanAttribute key="append.args" value="true"/>
    <booleanAttribute key="automaticAdd" value="false"/>
    <booleanAttribute key="automaticValidate" value="false"/>
    <stringAttribute key="bootstrap" value=""/>
    <stringAttribute key="checked" value="[NONE]"/>
    <booleanAttribute key="clearConfig" value="false"/>
    <stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Eclipse Kura Emulator"/>
    <booleanAttribute key="default" value="true"/>
    <booleanAttribute key="default_auto_start" value="true"/>
    <intAttribute key="default_start_level" value="4"/>
    <setAttribute key="deselected_workspace_bundles"/>
    <booleanAttribute key="includeOptional" value="true"/>
    <booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
    <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="false"/>
    <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
    <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
    <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog -console"/>
    <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
    <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dkura.have.net.admin=false -Dorg.osgi.framework.storage=/tmp/osgi/framework_storage -Dosgi.clean=true -Dosgi.noShutdown=true -Declipse.ignoreApp=true -Dorg.eclipse.kura.mode=emulator -Dkura.configuration=file:${workspace_loc}/../git/kura/kura/emulator/org.eclipse.kura.emulator/src/main/resources/kura.properties -Ddpa.configuration=/tmp/kura/dpa.properties -Dlog4j.configurationFile=file:${workspace_loc}/../git/kura/kura/emulator/org.eclipse.kura.emulator/src/main/resources/log4j.xml -Dkura.data=${workspace_loc}/kura/data -Dkura.snapshots=${workspace_loc}/kura/user/snapshots -Dorg.eclipse.equinox.http.jetty.customizer.class=org.eclipse.kura.jetty.customizer.KuraJettyCustomizer"/>
    <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}"/>
    <booleanAttribute key="pde.generated.config" value="true"/>
    <stringAttribute key="pde.version" value="3.3"/>
    <setAttribute key="selected_target_bundles">
        <setEntry value="bcpkix@default:default"/>
        <setEntry value="bcprov@default:default"/>
        <setEntry value="bctls@default:default"/>
        <setEntry value="bcutil@default:default"/>
        <setEntry value="com.eclipsesource.jaxrs.jersey-min@default:default"/>
        <setEntry value="com.eclipsesource.jaxrs.provider.gson@default:default"/>
        <setEntry value="com.eclipsesource.jaxrs.provider.security@default:default"/>
        <setEntry value="com.eclipsesource.jaxrs.publisher@default:default"/>
        <setEntry value="com.google.gson@default:default"/>
        <setEntry value="com.google.guava.failureaccess@default:default"/>
        <setEntry value="com.google.guava@default:default"/>
        <setEntry value="com.google.protobuf@default:default"/>
        <setEntry value="com.gwt.user@default:default"/>
        <setEntry value="com.h2database@default:default"/>
        <setEntry value="com.zaxxer.HikariCP@default:default"/>
        <setEntry value="io.netty.buffer@default:default"/>
        <setEntry value="io.netty.codec-http@default:default"/>
        <setEntry value="io.netty.codec-mqtt@default:default"/>
        <setEntry value="io.netty.codec@default:default"/>
        <setEntry value="io.netty.common@default:default"/>
        <setEntry value="io.netty.handler@default:default"/>
        <setEntry value="io.netty.resolver@default:default"/>
        <setEntry value="io.netty.transport-native-epoll@default:default"/>
        <setEntry value="io.netty.transport-native-kqueue@default:default"/>
        <setEntry value="io.netty.transport-native-unix-common@default:default"/>
        <setEntry value="io.netty.transport@default:default"/>
        <setEntry value="javax.servlet@default:default"/>
        <setEntry value="jcl.over.slf4j@default:default"/>
        <setEntry value="log4j2-api-config@default:false"/>
        <setEntry value="minimal-json@default:default"/>
        <setEntry value="org.apache.activemq.artemis-mqtt-protocol@default:default"/>
        <setEntry value="org.apache.activemq.artemis-native@default:default"/>
        <setEntry value="org.apache.activemq.artemis@default:default"/>
        <setEntry value="org.apache.camel.camel-core-osgi@default:default"/>
        <setEntry value="org.apache.camel.camel-core@default:default"/>
        <setEntry value="org.apache.camel.camel-stream@default:default"/>
        <setEntry value="org.apache.commons.beanutils@default:default"/>
        <setEntry value="org.apache.commons.collections@default:default"/>
        <setEntry value="org.apache.commons.commons-fileupload@default:default"/>
        <setEntry value="org.apache.commons.commons-io@default:default"/>
        <setEntry value="org.apache.commons.commons-net@default:default"/>
        <setEntry value="org.apache.commons.csv@default:default"/>
        <setEntry value="org.apache.commons.exec@default:default"/>
        <setEntry value="org.apache.commons.lang3@default:default"/>
        <setEntry value="org.apache.felix.dependencymanager@default:default"/>
        <setEntry value="org.apache.felix.deploymentadmin@default:default"/>
        <setEntry value="org.apache.felix.gogo.command@default:default"/>
        <setEntry value="org.apache.felix.gogo.runtime@default:default"/>
        <setEntry value="org.apache.felix.gogo.shell@default:default"/>
        <setEntry value="org.apache.felix.scr@1:true"/>
        <setEntry value="org.apache.felix.useradmin@default:default"/>
        <setEntry value="org.apache.geronimo.specs.geronimo-jms_2.0_spec@default:default"/>
        <setEntry value="org.apache.geronimo.specs.geronimo-json_1.0_spec@default:default"/>
        <setEntry value="org.apache.geronimo.specs.geronimo-jta_1.1_spec@default:default"/>
        <setEntry value="org.apache.logging.log4j.api@default:default"/>
        <setEntry value="org.apache.logging.log4j.core@default:default"/>
        <setEntry value="org.apache.logging.log4j.slf4j-impl@default:default"/>
        <setEntry value="org.apache.servicemix.bundles.c3p0@default:default"/>
        <setEntry value="org.eclipse.equinox.cm@default:default"/>
        <setEntry value="org.eclipse.equinox.common@2:true"/>
        <setEntry value="org.eclipse.equinox.console@default:default"/>
        <setEntry value="org.eclipse.equinox.ds@1:true"/>
        <setEntry value="org.eclipse.equinox.event@default:default"/>
        <setEntry value="org.eclipse.equinox.http.jetty@default:false"/>
        <setEntry value="org.eclipse.equinox.http.servlet@default:default"/>
        <setEntry value="org.eclipse.equinox.io@default:default"/>
        <setEntry value="org.eclipse.equinox.metatype@default:default"/>
        <setEntry value="org.eclipse.equinox.util@default:default"/>
        <setEntry value="org.eclipse.equinox.wireadmin@default:default"/>
        <setEntry value="org.eclipse.jetty.continuation@default:default"/>
        <setEntry value="org.eclipse.jetty.http@default:default"/>
        <setEntry value="org.eclipse.jetty.io@default:default"/>
        <setEntry value="org.eclipse.jetty.security@default:default"/>
        <setEntry value="org.eclipse.jetty.server@default:default"/>
        <setEntry value="org.eclipse.jetty.servlet@default:default"/>
        <setEntry value="org.eclipse.jetty.util.ajax@default:default"/>
        <setEntry value="org.eclipse.jetty.util@default:default"/>
        <setEntry value="org.eclipse.kura.camel.sun.misc@default:false"/>
        <setEntry value="org.eclipse.kura.jetty.customizer@default:false"/>
        <setEntry value="org.eclipse.kura.sun.misc@default:false"/>
        <setEntry value="org.eclipse.osgi.services@default:default"/>
        <setEntry value="org.eclipse.osgi.util@default:default"/>
        <setEntry value="org.eclipse.osgi@-1:true"/>
        <setEntry value="org.eclipse.soda.dk.comm@default:default"/>
        <setEntry value="org.jboss.logging.jboss-logging@default:default"/>
        <setEntry value="org.knowhowlab.osgi.monitoradmin@default:default"/>
        <setEntry value="org.quartz-scheduler.quartz@default:default"/>
        <setEntry value="org.usb4java@default:default"/>
        <setEntry value="slf4j.api@default:default"/>
        <setEntry value="usb4java-javax@default:default"/>
    </setAttribute>
    <setAttribute key="selected_workspace_bundles">
        <setEntry value="org.eclipse.kura.api@default:default"/>
        <setEntry value="org.eclipse.kura.asset.cloudlet.provider@default:default"/>
        <setEntry value="org.eclipse.kura.asset.helper.provider@default:default"/>
        <setEntry value="org.eclipse.kura.asset.provider@default:default"/>
        <setEntry value="org.eclipse.kura.broker.artemis.core@default:default"/>
        <setEntry value="org.eclipse.kura.broker.artemis.simple.mqtt@default:default"/>
        <setEntry value="org.eclipse.kura.broker.artemis.xml@default:default"/>
        <setEntry value="org.eclipse.kura.camel.cloud.factory@default:default"/>
        <setEntry value="org.eclipse.kura.camel.xml@2:default"/>
        <setEntry value="org.eclipse.kura.camel@default:default"/>
        <setEntry value="org.eclipse.kura.core.certificates@default:default"/>
        <setEntry value="org.eclipse.kura.core.cloud.factory@default:default"/>
        <setEntry value="org.eclipse.kura.core.cloud@default:default"/>
        <setEntry value="org.eclipse.kura.core.comm@default:default"/>
        <setEntry value="org.eclipse.kura.core.configuration@default:default"/>
        <setEntry value="org.eclipse.kura.core.crypto@default:default"/>
        <setEntry value="org.eclipse.kura.core.deployment@default:default"/>
        <setEntry value="org.eclipse.kura.core.inventory@default:default"/>
        <setEntry value="org.eclipse.kura.core.keystore@default:default"/>
        <setEntry value="org.eclipse.kura.core.net@default:default"/>
        <setEntry value="org.eclipse.kura.core.status@default:default"/>
        <setEntry value="org.eclipse.kura.core.system@default:default"/>
        <setEntry value="org.eclipse.kura.core@default:default"/>
        <setEntry value="org.eclipse.kura.deployment.agent@default:default"/>
        <setEntry value="org.eclipse.kura.driver.helper.provider@default:default"/>
        <setEntry value="org.eclipse.kura.emulator.clock@default:default"/>
        <setEntry value="org.eclipse.kura.emulator.gpio@default:default"/>
        <setEntry value="org.eclipse.kura.emulator.net@default:default"/>
        <setEntry value="org.eclipse.kura.emulator.position@default:default"/>
        <setEntry value="org.eclipse.kura.emulator.usb@default:default"/>
        <setEntry value="org.eclipse.kura.emulator.watchdog@default:default"/>
        <setEntry value="org.eclipse.kura.emulator@default:true"/>
        <setEntry value="org.eclipse.kura.http.server.manager@default:default"/>
        <setEntry value="org.eclipse.kura.json.marshaller.unmarshaller.provider@default:default"/>
        <setEntry value="org.eclipse.kura.linux.bluetooth@default:default"/>
        <setEntry value="org.eclipse.kura.localization.resources@default:false"/>
        <setEntry value="org.eclipse.kura.localization@default:default"/>
        <setEntry value="org.eclipse.kura.request.handler.jaxrs@default:default"/>
        <setEntry value="org.eclipse.kura.rest.asset.provider@default:default"/>
        <setEntry value="org.eclipse.kura.rest.configuration.provider@default:default"/>
        <setEntry value="org.eclipse.kura.rest.provider@default:default"/>
        <setEntry value="org.eclipse.kura.useradmin.store@default:default"/>
        <setEntry value="org.eclipse.kura.util@default:default"/>
        <setEntry value="org.eclipse.kura.web2@default:default"/>
        <setEntry value="org.eclipse.kura.wire.component.conditional.provider@default:default"/>
        <setEntry value="org.eclipse.kura.wire.component.join.provider@default:default"/>
        <setEntry value="org.eclipse.kura.wire.component.provider@default:default"/>
        <setEntry value="org.eclipse.kura.wire.db.component.provider@default:default"/>
        <setEntry value="org.eclipse.kura.wire.h2db.component.provider@default:default"/>
        <setEntry value="org.eclipse.kura.wire.helper.provider@default:default"/>
        <setEntry value="org.eclipse.kura.wire.provider@default:default"/>
        <setEntry value="org.eclipse.kura.wire.script.filter.provider@default:default"/>
        <setEntry value="org.eclipse.kura.xml.marshaller.unmarshaller.provider@2:default"/>
    </setAttribute>
    <booleanAttribute key="show_selected_only" value="false"/>
    <stringAttribute key="timestamp" value="1449054439069"/>
    <booleanAttribute key="tracing" value="false"/>
    <booleanAttribute key="useCustomFeatures" value="false"/>
    <booleanAttribute key="useDefaultConfigArea" value="true"/>
</launchConfiguration>

@salvatore-coppola
Copy link
Contributor Author

@MMaiero can you test it again ? Also @sfiorani i'd like have a run on linux env

@MMaiero
Copy link
Contributor

MMaiero commented Dec 5, 2023

I still need to reload the target platform.
Plus, the emulator launch is still broken.

@salvatore-coppola
Copy link
Contributor Author

I still need to reload the target platform. Plus, the emulator launch is still broken.

ok, regarding the emulator, can I use the config you put above ?

@MMaiero
Copy link
Contributor

MMaiero commented Dec 5, 2023

sure. Maybe make sure that it works also in your environment

@salvatore-coppola
Copy link
Contributor Author

tested on simone's env and mine.

@MMaiero MMaiero merged commit 3e04ebe into develop Dec 6, 2023
4 checks passed
@MMaiero MMaiero deleted the add-lifecycle-mappings-eclipse-ide branch December 6, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants