Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho lifecycle

at this point Tycho is not extensible on this level.

category.xml (as well as other files like feature.xml, build.properties etc.) must be available before the build starts. These files are treated the same way as pom.xml files for now, i.e. they define the build and can't be changed during build.

See related bugs

https://bugs.eclipse.org/bugs/show_bug.cgi?id=353889
https://bugs.eclipse.org/bugs/show_bug.cgi?id=349115
https://bugs.eclipse.org/bugs/show_bug.cgi?id=443083

Regards
Jan



From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of LE FEVRE FRANCOIS
Sent: Montag, 22. Juni 2015 10:38
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] tycho lifecycle

Dear all,
I am trying to understand tycho lifecycle management.
I would like to use a plugin before target-platform-configuration, during the validate maven phase but it seems that tycho lifecycle mapping do not able me to add plugins before it ows analysis.
The scenario is the following: I want to have sometimes a category.xml that includes feature source and sometimes not.

I have included at the end of email, a snipped of the pom where I want to call maven-antrun-plugin in the validate phase to copy/replace a specific category.xml file.
But I did not succeed.

Could you give me any advice on how do it?

Thanks


<plugin>
                                                                <groupId>org.apache.maven.plugins</groupId>
                                                                <artifactId>maven-antrun-plugin</artifactId>
                                                                <executions>
                                                                                <execution>
                                                                                                <phase>validate</phase>
                                                                                                <goals>
                                                                                                                <goal>run</goal>
                                                                                                </goals>
                                                                                                <configuration>
                                                                                                                <tasks>
                                                                                                                                <delete file="category.xml" />
                                                                                                                                <copy file="src/main/resources/category.withoutsource.xml"
                                                                                                                                                tofile="category.xml" />
                                                                                                                </tasks>
                                                                                                </configuration>
                                                                                </execution>
                                                                </executions>
                                                </plugin>





Francois LE FEVRE
Research Engineer
Commission for Atomic Energy and Alternative Energies (CEA)
Model-driven Engineering for Embedded Systems Laboratory (LISE) 
Projet: Papyrus: https://www.eclipse.org/papyrus/

Commissariat à l'énergie atomique et aux énergies alternatives (CEA)
Paris-Saclay Campus - Nano-INNOV | Bât. 862-PC1087 | F-91191 Gif-sur-Yvette Cedex
T. +33 (0)1 69 08 49 86  |  F. +33 (0)1 69 08 83 95  | 
francois.le-fevre@xxxxxx   |  Blog: http://biocamp.blogspot.fr/




Back to the top