New. You can now use tycho to build Odysseus modules.
Important: Due to a bug in tycho currently maven version 3.6.2 cannot be used. So use 3.6.1 instead.
If you want to create a module that should sometimes be added to the Odysseus eco system (building and updatesite) you need to follow some rules for the tycho build.
...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?> <extensions> <extension> <groupId>org.eclipse.tycho.extras</groupId> <artifactId>tycho-pomless</artifactId> <version>1.24.0</version> </extension> </extensions> |
...
To allow local and solobuilds the there must be a pom.xml on the main level of the project. In the following there is an example from odysseus_core.
...
The are different parts in this maven pom. On the top there is the base information:. For your project you must change the <artifactId> the to a unique name.
In the parent clause the parent is defined. In this the parent things such things as the target platform and the different base configurations are handled.
...
Attention: The are no blancs in the "P-section"!
See The Odysseus Operator Test Framework for information how to create integration tests for your module.
...
Code Block |
---|
# Install the parent cd ${WORKSPACE}/odysseus_dev/de.uniol.inf.is.odysseus.tycho.configuration mvn clean install # Do processing cd ${WORKSPACE} # Combine all category.xml of the submodules to a new category.xml rm -rf tooling git clone https://git.swl.informatik.uni-oldenburg.de/scm/ODYJENK/tooling.git javac "${WORKSPACE}/tooling/ci/de.uniol.inf.is.odysseus.creatermap/src/de/uniol/inf/is/odysseus/creatermap/CreateRMap.java" java -cp "${WORKSPACE}/tooling/ci/de.uniol.inf.is.odysseus.creatermap/src" de.uniol.inf.is.odysseus.creatermap.CreateRMap "${WORKSPACE}" "${WORKSPACE}/tooling/ci/de.uniol.inf.is.odysseus.updatesite" "${WORKSPACE}/tooling/ci/de.uniol.inf.is.odysseus.update.p2" cp "${WORKSPACE}/tooling/ci/de.uniol.inf.is.odysseus.update.p2/category.xml" ${WORKSPACE}/releng/de.uniol.inf.is.odysseus.update/ #Run the build mvn clean verify -P!\solobuild -Dtargetfilename=platform_core |
Install Features via Command Line
It is possible to install features without starting the product (e.g. to create a docker image with a distinct combination of features), e.g.:
Code Block |
---|
eclipsec.exe -application org.eclipse.equinox.p2.director -repository https://odysseus.informatik.uni-oldenburg.de/updatesite/odysseus_all_new/stable/origin/master/latest/ -installIU de.uniol.inf.is.odysseus.wrapper.rabbitmq.feature.feature.group -destination H:/git/odysseus_core/odysseus_dev/products/monolithic/target/products/de.uniol.inf.is.odysseus.studio.product.monolithic/win32/win32/x86_64 -profile SDKProfile |
See: https://help.eclipse.org/2020-03/index.jsp for further information.