Bug 518224 - [releng] ensure we are using the right target-platform configuration
Summary: [releng] ensure we are using the right target-platform configuration
Status: UNCONFIRMED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Others (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-14 05:01 EDT by Francois Le Fevre CLA
Modified: 2017-06-14 05:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Le Fevre CLA 2017-06-14 05:01:34 EDT
In Papyrus, the target-platform is not compile at first at the difference from project like papyrus-SysML.
May be it is important or not.

Asking to the tycho mailing list




Dear all,

I am noticed something strange in our build that use target-platform-configuration [1]
We have defined a target-platform-configuration linked to an artifact.
The maven build reactor compile our target artifact at this end of the process.
I was wondering it should be compiled at first to avoid compiling many other target platform and ensure unicity of target platform?

For me, maven tycho should detect our target-platform-configuration, andput it in the top build reactor order, to ensure the artifact has been created before to be used by other plugins?
But I see many 
“[INFO] Computing target platform for MavenProject”
And the build reactor put it as the last participant.

Do I  miss something?

Thanks for explanation.

Francois

[1]: https://hudson.eclipse.org/papyrus/view/Oxygen%20(Master)/job/Papyrus-Master/3851/consoleText
[INFO] Reactor Build Order:
[INFO] 
[INFO] org.eclipse.papyrus.releng
[INFO] Papyrus Main Plugins
[INFO] EMF Facet, the Papyrus Edition
….
….
[INFO] org.eclipse.papyrus.main.target.parent
[INFO] org.eclipse.papyrus.main.eclipse.target  <<<<<<<<<<last element to be compiled?!
[INFO] org.eclipse.papyrus.p2


(2]

<plugin>
                                                                              <groupId>org.eclipse.tycho</groupId>
                                                                              <artifactId>target-platform-configuration</artifactId>
                                                                              <version>${tycho-version}</version>
                                                                              <configuration>
                                                                                              <environments>
                                                                                                              <environment>
                                                                                                                             <os>linux</os>
                                                                                                                             <ws>gtk</ws>
                                                                                                                             <arch>x86_64</arch>
                                                                                                              </environment>
                                                                                                              <environment>
                                                                                                                             <os>linux</os>
                                                                                                                             <ws>gtk</ws>
                                                                                                                             <arch>x86</arch>
                                                                                                              </environment>
                                                                                                              <environment>
                                                                                                                             <os>win32</os>
                                                                                                                             <ws>win32</ws>
                                                                                                                             <arch>x86_64</arch>
                                                                                                              </environment>
                                                                                                              <environment>
                                                                                                                             <os>win32</os>
                                                                                                                             <ws>win32</ws>
                                                                                                                             <arch>x86</arch>
                                                                                                              </environment>
                                                                                                              <environment>
                                                                                                                             <os>macosx</os>
                                                                                                                             <ws>cocoa</ws>
                                                                                                                             <arch>x86_64</arch>
                                                                                                              </environment>
                                                                                              </environments>
                                                                                              <target>
                                                                                                              <artifact>
                                                                                                                             <groupId>org.eclipse.papyrus</groupId>
                                                                                                                              <artifactId>org.eclipse.papyrus.main.portable.target</artifactId>
                                                                                                                             <version>0.0.1-SNAPSHOT</version>
                                                                                                              </artifact>
                                                                                              </target>
                                                                              </configuration>
                                                               </plugin>