diff --git a/README.md b/README.md index 226c133523f3a0b13ad0bae44783c1dd1177e7a3..f46e01c9e3c12d8e43578eb4e064a6348767ba9e 100644 --- a/README.md +++ b/README.md @@ -3,33 +3,27 @@ This repository contains the source code of the Bonita Studio component from Bonita Platform. In order to build this repository it is required to build its dependencies. To help you achieve this there is a dedicated repository [here](https://github.com/Bonitasoft-Community/Build-Bonita). -## Run build +## Prerequisites + +* Java 8 -Bonita Studio is an Eclipse RCP. It relies on a custom Eclipse **target platform**. -Those target platforms are available here [http://update-site.bonitasoft.com/p2](http://update-site.bonitasoft.com/p2). -To setup the target platform properly you need to add the following mirror in the `settings.xml` of your maven instance (`/.m2/settings.xml` by default): - -```xml - - - mirrored-studio-p2-repo - http://repositories.rd.lan/p2/4.10.1 - http://update-site.bonitasoft.com/p2/4.10/ - p2 - p2 - - ... - -``` - -Then you can run: +## Run build `./mvnw package -DskipTests` +### Build profiles + +* _default_ +* _all-in-one_ : bundle a .zip archive +* _it_ : run integration tests +* _jdk11-tests_ : run tests against jdk 11 (using [maven toolchain](https://maven.apache.org/guides/mini/guide-using-toolchains.html)) + +By default active profiles are: _default_ and _all-in-one_ + ### Built artifacts * Windows and Linux all-in-one archive is located here `all-in-one/target/BonitaStudioCommunity-*.zip` -* MacOs app is located here `products/org.bonitasoft.studio.product/macosx/cocoa/x86_64` +* MacOs app is located here `all-in-one/target/products/org.bonitasoft.studio.product/macosx/cocoa/x86_64` ## Report issues diff --git a/platform/platform.target b/platform/platform.target index 1cb55ab90376105eed986ca33af344ab70b48d4b..876505fe6caab6e767572060d389f7c96eb6a22a 100644 --- a/platform/platform.target +++ b/platform/platform.target @@ -1,7 +1,7 @@ - + diff --git a/platform/pom.xml b/platform/pom.xml index b49c1e2d4ef04ca3bb4eab5067429fb3dd087089..dc9ccd7ab96a962f7338d4f6918a1271ea7941cf 100644 --- a/platform/pom.xml +++ b/platform/pom.xml @@ -1,154 +1,88 @@ - - 4.0.0 + + 4.0.0 - - org.bonitasoft.studio - studio - 7.10.0-SNAPSHOT - + + org.bonitasoft.studio + studio + 7.10.0-SNAPSHOT + - org.bonitasoft.studio - platform - eclipse-target-definition + org.bonitasoft.studio + platform + eclipse-target-definition - - - jboss-public-repository-group - JBoss Public Repository Group - http://repository.jboss.org/nexus/content/groups/public/ - - - jboss-snapshots-repository - JBoss Snapshots Repository - https://repository.jboss.org/nexus/content/repositories/snapshots/ - - + + + jboss-public-repository-group + JBoss Public Repository Group + http://repository.jboss.org/nexus/content/groups/public/ + + + jboss-snapshots-repository + JBoss Snapshots Repository + https://repository.jboss.org/nexus/content/repositories/snapshots/ + + - - - remote - - - - org.apache.maven.plugins - maven-antrun-plugin - - - Generate target file - initialize - - - - - - - run - - - - - - org.eclipse.tycho.extras - target-platform-validation-plugin - ${tychoExtrasVersion} - - - verify - - validate-target-platform - - - - platform.target - - true - - - - - - - - - mirrored - - - - org.apache.maven.plugins - maven-antrun-plugin - - - Generate target file - initialize - - - P2 Mirror Repository = ${p2MirrorUrl} - - - - - - run - - - - - - org.eclipse.tycho.extras - target-platform-validation-plugin - ${tychoExtrasVersion} - - - verify - - validate-target-platform - - - - platform.target - - true - - - - - - - - - mirror-tp - - - - org.jboss.tools.tycho-plugins - target-platform-utils - 1.3.0 - - - package - - mirror-target-to-repo - - - JavaSE-1.8 - - /home/romain/target-platform-4.10-mirror - - - - - original_platform.target - - - - + + + + org.eclipse.tycho.extras + target-platform-validation-plugin + ${tychoExtrasVersion} + + + verify + + validate-target-platform + + + + platform.target + + true + + + + + + - - + + + mirror-tp + + + + org.jboss.tools.tycho-plugins + target-platform-utils + 1.3.0 + + + package + + mirror-target-to-repo + + + JavaSE-1.8 + + /home/romain/target-platform-4.10-mirror + + + + + original_platform.target + + + + + + + diff --git a/pom.xml b/pom.xml index 7a38e6759919e7768160a8de999bea6902237b4c..50d073f66ea3d007eab71f455206b003704c0144 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ ${project.parent.version} 7.2.0 1.0.8 - http://repositories.rd.lan/p2/4.10.1 + http://update-site.bonitasoft.com/p2/4.10 UTF-8 **/org/w3/**/*,