Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Running TPD to Target before actual build

Hi, 
thank you for the replies.

I hoped that one of the Tycho developers could help with this. I was hoping for a  undocumented life-cycle phase one could use.

Cheers,
Eugen

On Tue, Mar 20, 2018 at 8:20 AM, Sandra Parsick <sparsick@xxxxxx> wrote:
Hi,

I ran in the same issue. My workaround was

cd module-where-the-target-definition-is
mvn clean install
cd ..
mvn clean install

Firstly, I generate the TPD and install it in my local M2 Repository,
then I build the whole project and Maven Tycho use the previously
generated TPD.

Best regards,

Sandra

Am 20.03.2018 um 08:14 schrieb Pierre-Charles David:
> On 19/03/2018 18:28, Eugen Neufeld wrote:
>> Hi,
>>
>> I would like to use a tpd file
>> (https://github.com/mbarbero/fr.obeo.releng.targetplatform) for my
>> target definition.
>> The Readme of the TPD Project also describes a way of generating the
>> target file using maven.
>> I would like to use this, but fail as tycho is trying to resolve the
>> target before my transformation kicks in.
>>
>> I know I could run two dedicated mvn commands, but I would like to
>> still be able to call "mvn clean install" once.
>>
>> Do you have a suggestion for a possible solution?
>
> I'm no expert on the internals of Maven or Tycho, but from what I read
> at https://github.com/mbarbero/fr.obeo.releng.targetplatform/issues/73,
> Mickael (author of the TPD DSL) seems to think that this is not
> possible: "Tycho uses maven extension mechanism to hook up very early in
> the maven dependencies resolution mechanism, so
> there are little chances you can use a generated .target from the same
> maven run."
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Eugen Neufeld, M.Sc.

Software Engineer / Consultant
EclipseSource Munich

Email: eneufeld@xxxxxxxxxxxxxxxxx
Web: http://eclipsesource.com/munich
Mobil: +49 176 22 85 11 50
Phone: +49 89 21 555 30 - 13
Fax: +49 89 21 555 30 - 19

EclipseSource Muenchen GmbH
Agnes-Pockels-Bogen 1
80992 Muenchen

General Managers: Dr. Jonas Helming, Dr. Maximilian Koegel
Registered Office: Agnes-Pockels-Bogen 1, 80992 Muenchen, Commercial Register Muenchen, HRB 191789

Back to the top