This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
studio-se-master/build/Target_Platform_for_Talend_Studio/.README.md.html
hzhao-talendbj 92225f8337 feat(TUP-29701): Upgrade eclipse 418 (#352)
* chore : eclipse upgrade test

* feat(TUP-29701): upgrade eclipse to eclipse 4.18

* change target_platform

* change config.ini

* change talend.product

* change config.ini for other products

* change delta-pack to 4.18.0

* TUP-29701 add feature org.eclipse.m2m.atl.feature.group to fix compile
error

* TUP-29701 add target platform

* TUP-29701  change start level to 3 to set high priority when regist
handler (mainly to use org.ops4j.pax.url.mvn_2.6.1.Talend.jar instead of
org.eclipse.m2e.core) to fix Caused by: java.io.IOException: required
format is groupId:artifactId:version[:packaging[:classifier]]

* TUP-29701 maybe wrong judgement before, need to make sure
org.ops4j.pax.url.mvn is regist after org.eclipse.m2e.core . so change
startlevel 5 to test

* change url

* TUP-29701 change ini jdk to 11 and change ops4j to 2.6.2

* eclipse upgrade un-commonent module

* eclipse upgrade remove eclipse-orbit-p2-repo.url

* eclipse upgrade   change to target R2021-03

* eclipse upgrade TUP-31484 remove bonita p2 and add some plugins

* eclipse upgrade TUP-31484  change delta pack to 4.19.0

* TUP-31484 eclipse upgrade remove jackson and change talend.product

* TUP-31484 change back to 4

* TUP-31484 try add org.apache.xerces.jaxp.DocumentBuilderFactoryImpl  to
ini file

* TUP-31484 add pluins for ee

* TUP-31484 remove bonita jackson

* TUP-31484 add plugin for jgit

* TUP-31484  change for temp p2 url for temp build

* TUP-31484 change temp p2 url

* TUP-31484 set temp p2

* TUP-31484 change url to add /test

* TUP-31484 uncomment tmdm module

* TUP-31484 change version org.eclipse.equinox.launcher

* TUP-31484 revert temp p2 url

Co-authored-by: Nicolas Rousseau <nrousseau@talend.com>
2021-06-18 17:36:20 +08:00

676 lines
15 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>/Users/nrousseau/Documents/code/git/studio-full/studio-se-master/build/Target_Platform_for_Talend_Studio/.README.md.html</title>
<style type="text/css">
body {
color: #333;
font: 13px/1.4 "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
padding: 0;
margin: 0;
}
a {
background: transparent;
color: #4183c4;
text-decoration: none;
}
a:active,
a:hover {
outline: 0 none;
text-decoration: underline;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
mark {
background: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0 none;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 1em 40px;
}
hr {
box-sizing: content-box;
height: 0;
}
code,
kbd,
pre,
samp {
font-family: monospace,monospace;
font-size: 1em;
}
pre {
overflow: auto;
font: 12px Consolas,"Liberation Mono",Menlo,Courier,monospace;
margin-bottom: 0;
margin-top: 0;
}
.markdown-body {
padding: 30px;
font-size: 16px;
line-height: 1.6;
word-wrap: break-word;
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .absent {
color: #c00;
}
.markdown-body .anchor {
position: absolute;
top: 0;
bottom: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
line-height: 1;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 tt,
.markdown-body h1 code,
.markdown-body h2 tt,
.markdown-body h2 code,
.markdown-body h3 tt,
.markdown-body h3 code,
.markdown-body h4 tt,
.markdown-body h4 code,
.markdown-body h5 tt,
.markdown-body h5 code,
.markdown-body h6 tt,
.markdown-body h6 code {
font-size: inherit;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body p,.markdown-body blockquote,
.markdown-body ul,.markdown-body ol,
.markdown-body dl,.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body hr {
height: 4px;
padding: 0;
margin: 16px 0;
background-color: #e7e7e7;
border: 0 none;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ul.no-list,
.markdown-body ol.no-list {
padding: 0;
list-style-type: none;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote>:first-child {
margin-top: 0;
}
.markdown-body blockquote>:last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body span.frame {
display: block;
overflow: hidden;
}
.markdown-body span.frame>span {
display: block;
float: left;
width: auto;
padding: 7px;
margin: 13px 0 0;
overflow: hidden;
border: 1px solid #ddd;
}
.markdown-body span.frame span img {
display: block;
float: left;
}
.markdown-body span.frame span span {
display: block;
padding: 5px 0 0;
clear: both;
color: #333;
}
.markdown-body span.align-center {
display: block;
overflow: hidden;
clear: both;
}
.markdown-body span.align-center>span {
display: block;
margin: 13px auto 0;
overflow: hidden;
text-align: center;
}
.markdown-body span.align-center span img {
margin: 0 auto;
text-align: center;
}
.markdown-body span.align-right {
display: block;
overflow: hidden;
clear: both;
}
.markdown-body span.align-right>span {
display: block;
margin: 13px 0 0;
overflow: hidden;
text-align: right;
}
.markdown-body span.align-right span img {
margin: 0;
text-align: right;
}
.markdown-body span.float-left {
display: block;
float: left;
margin-right: 13px;
overflow: hidden;
}
.markdown-body span.float-left span {
margin: 13px 0 0;
}
.markdown-body span.float-right {
display: block;
float: right;
margin-left: 13px;
overflow: hidden;
}
.markdown-body span.float-right>span {
display: block;
margin: 13px auto 0;
overflow: hidden;
text-align: right;
}
.markdown-body code,.markdown-body tt {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0,0,0,0.04);
border-radius: 3px;
}
.markdown-body code:before,
.markdown-body code:after,
.markdown-body tt:before,
.markdown-body tt:after {
letter-spacing: -0.2em;
content: "\00a0";
}
.markdown-body code br,
.markdown-body tt br {
display: none;
}
.markdown-body del code {
text-decoration: inherit;
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code,
.markdown-body pre tt {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after,
.markdown-body pre tt:before,
.markdown-body pre tt:after {
content: normal;
}
.highlight .pl-coc,
.highlight .pl-entl,
.highlight .pl-entm,
.highlight .pl-eoa,
.highlight .pl-mai .pl-sf,
.highlight .pl-mm,
.highlight .pl-pdv,
.highlight .pl-sc,
.highlight .pl-som,
.highlight .pl-sr,
.highlight .pl-v,
.highlight .pl-vpf {
color: #0086b3;
}
.highlight .pl-eoac,
.highlight .pl-mdht,
.highlight .pl-mi1,
.highlight .pl-mri,
.highlight .pl-va,
.highlight .pl-vpu {
color: #008080;
}
.highlight .pl-c,
.highlight .pl-pdc {
color: #b4b7b4;
font-style: italic;
}
.highlight .pl-k,
.highlight .pl-ko,
.highlight .pl-kolp,
.highlight .pl-mc,
.highlight .pl-mr,
.highlight .pl-ms,
.highlight .pl-s,
.highlight .pl-sok,
.highlight .pl-st {
color: #6e5494;
}
.highlight .pl-ef,
.highlight .pl-enf,
.highlight .pl-enm,
.highlight .pl-entc,
.highlight .pl-eoi,
.highlight .pl-sf,
.highlight .pl-smc {
color: #d12089;
}
.highlight .pl-ens,
.highlight .pl-eoai,
.highlight .pl-kos,
.highlight .pl-mh .pl-pdh,
.highlight .pl-mp,
.highlight .pl-pde,
.highlight .pl-stp {
color: #458;
}
.highlight .pl-enti {
color: #d12089;
font-weight: bold;
}
.highlight .pl-cce,
.highlight .pl-enc,
.highlight .pl-kou,
.highlight .pl-mq {
color: #f93;
}
.highlight .pl-mp1 .pl-sf {
color: #458;
font-weight: bold;
}
.highlight .pl-cos,
.highlight .pl-ent,
.highlight .pl-md,
.highlight .pl-mdhf,
.highlight .pl-ml,
.highlight .pl-pdc1,
.highlight .pl-pds,
.highlight .pl-s1,
.highlight .pl-scp,
.highlight .pl-sol {
color: #df5000;
}
.highlight .pl-c1,
.highlight .pl-cn,
.highlight .pl-pse,
.highlight .pl-pse .pl-s2,
.highlight .pl-vi {
color: #a31515;
}
.highlight .pl-mb,
.highlight .pl-pdb {
color: #df5000;
font-weight: bold;
}
.highlight .pl-mi,
.highlight .pl-pdi {
color: #6e5494;
font-style: italic;
}
.highlight .pl-ms1 {
background-color: #f5f5f5;
}
.highlight .pl-mdh,
.highlight .pl-mdi {
font-weight: bold;
}
.highlight .pl-mdr {
color: #0086b3;
font-weight: bold;
}
.highlight .pl-s2 {
color: #333;
}
.highlight .pl-ii {
background-color: #df5000;
color: #fff;
}
.highlight .pl-ib {
background-color: #f93;
}
.highlight .pl-id {
background-color: #a31515;
color: #fff;
}
.highlight .pl-iu {
background-color: #b4b7b4;
}
.highlight .pl-mo {
color: #969896;
}
</style>
<script type="text/javascript">
function getDocumentScrollTop()
{
var res = document.body.scrollTop || document.documentElement.scrollTop || window.pageYOffset || 0;
// alert(res);
return res;
}
function setDocumentScrollTop(ypos)
{
window.scrollTo(0, ypos);
}
</script>
</head>
<body class="markdown-body">
<h1> <a id="current-target-platform" class="anchor" href="#current-target-platform" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Current target platform</h1>
<p>Eclipse used for Target setup: 2020-12</p>
<p>Using: Eclipse: <a href="https://download.eclipse.org/releases/2020-12" rel="nofollow">https://download.eclipse.org/releases/2020-12</a> Orbit: <a href="https://download.eclipse.org/tools/orbit/downloads/drops/R20201130205003/repository/" rel="nofollow">https://download.eclipse.org/tools/orbit/downloads/drops/R20201130205003/repository/</a> Jeeyul: <a href="https://eclipse.jeeeyul.net/update/" rel="nofollow">https://eclipse.jeeeyul.net/update/</a> Nebula / Nattable: <a href="https://download.eclipse.org/nebula/releases/2.4.3/" rel="nofollow">https://download.eclipse.org/nebula/releases/2.4.3/</a> / <a href="https://download.eclipse.org/nattable/releases/2.0.0/repository/" rel="nofollow">https://download.eclipse.org/nattable/releases/2.0.0/repository/</a> Eclipse test plugin: <a href="https://download.eclipse.org/eclipse/updates/4.18" rel="nofollow">https://download.eclipse.org/eclipse/updates/4.18</a></p>
<h1> <a id="how-to-prepare-a-target-platform-for-testing-in-eclipse" class="anchor" href="#how-to-prepare-a-target-platform-for-testing-in-eclipse" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>How to prepare a target platform for testing in eclipse.</h1>
<p>Open the .target in Eclipse using the Target Editor. Either edit from the target editor, or modify manually.</p>
<p>Note: Seems much faster if we know the list of features needed to edit manually the file to set the version.</p>
<p>Once target is prepared, most simple is to: Click on button on the top right corder of the target editor in Eclipse, export it to a folder, this will create the p2 target.</p>
<p>Then set as usual the target in eclipse, using folders with:</p>
<ul>
<li>Eclipse p2 repository</li>
<li>tos p2</li>
<li>ee p2 (if testing ee product)</li>
<li>bonita p2 (if test bonita/MDM)</li>
<li>babel p2 (can be included in eclipse p2, just not required for development normally) tos/ee p2, can be easily built manually / edited to customize the target platform easily. (mvn package in the folder + edit pom to add more dependencies)</li>
</ul>
<p>It's sometimes more simple to add a new dependency directly from tos p2 target rather than update the eclipse platform itself. Another point is that Eclipse p2 / tos p2 should be enough normally to check from a development environment for a TOS.</p>
<h1> <a id="how-to-prepare-the-final-target-platform-to-build-the-studio" class="anchor" href="#how-to-prepare-the-final-target-platform-to-build-the-studio" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>How to prepare the final target platform to build the studio:</h1>
<p>First, Eclipse p2 repository (main one):</p>
<ul>
<li>Difficulty here is more to get a target working for all os : macos, linux, windows.</li>
<li>It needs to export the target platform three times, one for each OS, then rebuild the p2.</li>
<li>Export first as win32 (Environment: win32/win32/x86_64), in a folder for example /win32</li>
<li>Export as macos (Environment: macos/cocoa/x86_64), in a folder for example /macos</li>
<li>Export as linux (Environment: linux/gtk/x86_64), in a folder for example /linux</li>
<li>Copy / merge all the plugins/features into another folder, for example: /building-target</li>
<li>Now we need to rebuild the p2 (contents/artifacts), and put it in another folder for example /any, using:</li>
</ul>
<p>/Applications/Eclipse.app/Contents/MacOS/eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:/any -artifactRepository file:/any -source file:/building-target -config ANY -publishArtifacts -compress</p>
<p>(replace of course with the origin folder)</p>
<p>Once it's done, build can be tested locally (modify pom / set url of folder using file:// as prefix instead of URL) If everything is ok, target can be deployed to nexus, using for example:</p>
<p>mvn deploy:deploy-file -Dfile=/Applications/java/talend/TargetPlatformE44/p2site/TargetPlatform.zip -DgroupId=org.talend.repo -DartifactId=eclipse-p2-repo -Dversion=4.18.0 -Dpackaging=zip -Durl=<a href="https://artifacts-oss.talend.com/nexus/content/repositories/TalendOpenSourceSnapshot" rel="nofollow">https://artifacts-oss.talend.com/nexus/content/repositories/TalendOpenSourceSnapshot</a> -DrepositoryId=talend_nexus_deployment (prefer use the original version of eclipse instead of talend version)</p>
<p>Nexus p2 repository will be available at <a href="https://artifacts-oss.talend.com/nexus/content/unzip/TalendP2UnzipOpenSourceRelease/org/talend/repo/eclipse-p2-repo/4.18.0/eclipse-p2-repo-4.18.0.zip-unzip/" rel="nofollow">https://artifacts-oss.talend.com/nexus/content/unzip/TalendP2UnzipOpenSourceRelease/org/talend/repo/eclipse-p2-repo/4.18.0/eclipse-p2-repo-4.18.0.zip-unzip/</a></p>
</body>
</html>