-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from riseclipse/develop
Update to Eclipse 2023-09
- Loading branch information
Showing
16 changed files
with
481 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
...entralesupelec.edf.riseclipse.developer.documentation/BuildingOnLocalMachine.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
---- | ||
Copyright (c) 2023 CentraleSupélec & EDF. | ||
|
||
All rights reserved. This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v2.0 | ||
which accompanies this distribution, and is available at | ||
https://www.eclipse.org/legal/epl-v20.html | ||
|
||
This file is part of the RiseClipse tool | ||
|
||
**Contributors:** | ||
* Computer Science Department, CentraleSupélec | ||
* EDF R&D | ||
|
||
**Contacts:** | ||
* [email protected] | ||
* [email protected] | ||
|
||
**Web site:** | ||
* https://riseclipse.github.io/ | ||
---- | ||
|
||
## Scenario | ||
|
||
This scenario corresponds to the introduction of new versions of the tools used. It shows how to build the SCL validator on a machine to test it before building and deploying this update on GitHub. | ||
|
||
|
||
|
||
## Needed Tools | ||
|
||
- Install a JDK 17 or higher ([here for example](https://adoptium.net/)) | ||
|
||
- Install [**Maven**](https://maven.apache.org) | ||
|
||
- Install latest [**Eclipse IDE for Java Developers**](https://eclipseide.org) | ||
|
||
- Install from the corresponding Eclipse update site: | ||
- **Eclipse Plug-in Development Environment** | ||
- **EMF - Eclipse Modeling Framework SDK** | ||
- **OCL Examples and Editors SDK** | ||
|
||
- Install the **CBI Target Platform Definition DSL** generator using the `https://download.eclipse.org/cbi/updates/tpd/nightly/latest` update site | ||
- Install the **CBI p2 Aggregator Tools** using the `https://download.eclipse.org/cbi/updates/p2-aggregator/tools/nightly` update site | ||
|
||
|
||
- clone projects | ||
|
||
- Create a branch `develop` for project `riseclipse-developer` | ||
|
||
- Import `riseclipse-developper` in the Eclipse workspace | ||
- Edit `riseclipse-developer/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.tpd` so that it points to the latest Eclipse release and the corresponding Orbit site | ||
- Generate the corresponding target file | ||
|
||
- Edit `riseclipse-developer/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/src/main/resources/riseclipse.aggr`, update the mapped repositories, update the versions | ||
|
||
|
||
- Edit `fr.centralesupelec.edf.riseclipse.developer.maven/pom.xml`: | ||
- Update `project.repositories.repository` with the URL of the new Eclipse version | ||
- Update `project.properties.*`: | ||
- Update `.riseclipse-target-platform-version` with `project.version` without `-SNAPSHOT` | ||
- Update `.maven-*` with latest versions using [https://maven.apache.org/plugins/index.html](https://maven.apache.org/plugins/index.html) | ||
- Update `.tycho-version` with latest one (see on [https://projects.eclipse.org/projects/technology.tycho](https://projects.eclipse.org/projects/technology.tycho) | ||
- Use the generated target file to update plugin versions | ||
|
||
|
||
- Use a `~/.m2/toolchains.xml` file to specify which jdk to use for the build (see [https://maven.apache.org/guides/mini/guide-using-toolchains.html](https://maven.apache.org/guides/mini/guide-using-toolchains.html), version should be `17` and vendor `temur`) | ||
|
||
- In a Terminal, go to `riseclipse-developper` and run `mvn clean install` | ||
- Go to `riseclipse-developper/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2` and run `mvn clean install` | ||
|
||
|
||
- Go to `riseclipse-main`: | ||
- create a `develop` branch | ||
- edit `pom.xml` and set the `project.parent.version` to the same as `riseclipse-developper/pom.xml:project.version` (with `-SNAPSHOT`) | ||
- edit `fr.centralesupelec.edf.riseclipse.main/META-INF/MANIFEST.MF` and set `Bundle-Version` to the same as `pom.xml:project.version`, replacing `-SNAPSHOT` with `.qualifier` | ||
- run `mvn clean install` | ||
|
||
- Do the same for `riseclipse-validator-ocl`, `riseclipse-metamodel-scl2003`, `riseclipse-metamodel-nsd2016` (warning: there can be several `META-INF/MANIFEST.MF` to change) | ||
|
||
- Go to `riseclipse-validator-scl2003`: | ||
- create a `develop` branch | ||
- edit `pom.xml`: | ||
- set the `project.parent.version` to the same as `riseclipse-developper/pom.xml:project.version` (with `-SNAPSHOT`) | ||
- update the versions of **RiseClipse needed plugins** to the current ones (with `-SNAPSHOT`) | ||
- edit `fr.centralesupelec.edf.riseclipse.iec61850.scl.validator*/META-INF/MANIFEST.MF` | ||
- set `Bundle-Version` to the same as `pom.xml:project.version`, replacing `-SNAPSHOT` with `.qualifier` | ||
- change `Require-Bundle` versions of RiseClipse bundles to current ones | ||
- run `mvn clean package` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.