From afad63ac66af1ff7b5556adce04e99e475eca913 Mon Sep 17 00:00:00 2001 From: Romain Bioteau Date: Thu, 5 Sep 2019 11:20:27 +0200 Subject: [PATCH] fix(build) use public p2 repo (#1866) Closes BST-463 --- README.md | 34 +++--- platform/platform.target | 2 +- platform/pom.xml | 224 ++++++++++++++------------------------- pom.xml | 2 +- 4 files changed, 95 insertions(+), 167 deletions(-) diff --git a/README.md b/README.md index 226c133523..f46e01c9e3 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 1cb55ab903..876505fe6c 100644 --- a/platform/platform.target +++ b/platform/platform.target @@ -1,7 +1,7 @@ - + diff --git a/platform/pom.xml b/platform/pom.xml index b49c1e2d4e..dc9ccd7ab9 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 7a38e67599..50d073f66e 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/**/*, -- GitLab