Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho and Target Platform Usage

So, I have been using an 'aggregator' POM - which basically defines all the modules to execute - and has its parent defined as the POM which contains the maven-tycho-plugin and target configuration.  I run 'mvn install' on this project to perform my build.  It works with <repository> defined in parent but not when I try to use *target.

<parent>
<groupId>com.xxx</groupId>
<artifactId>com.xxx.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../com.xxx.parent</relativePath>
</parent>

<groupId>com.xxx</groupId>
<artifactId>com.xxx.build.aggregator</artifactId>
<packaging>pom</packaging>

<modules>
<module>com.xxx.build.target</module>
<module>com.xxx.doc</module>
<module>com.xxx.core</module>
<module>com.xxx.config</module>
<module>com.xxx.feature</module>
<module>com.xxx.product</module>
</modules>

For my target project - the POM looks as follows:

<parent>
<groupId>com.xxx</groupId>
<artifactId>com.xxx.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../com.xxx.parent</relativePath>
</parent>

<groupId>com.xxx</groupId>
<artifactId>com.xxx.build.target</artifactId>
<packaging>eclipse-target-definition</packaging>



On Wed, Dec 10, 2014 at 9:54 AM, Aleksandar Toshovski <Aleksandar.Toshovski@xxxxxxx> wrote:
On 10/12/14 15:30, Andy Stoneberg wrote:
Greetings,

Did you add your target module to the parent pom under <modules></modules>? The target module should be from type <packaging>eclipse-target-definition</packaging>

I am a brand new Tycho user - so I apologize if this is a silly oversight on my part!  I am using v 0.21.0.

I have been following the tutorial found here: http://www.vogella.com/tutorials/EclipseTycho/article.html 
It has went pretty smoothly but I am having trouble using a *target file to define/configure my repository.

One 'wrinkle' in my setup is that I have a P2 repository that requires authentication.  So, I have the proper <server> element in my settings.xml to define the credentials.  When I build my multi-module project with a <repository> defined, I am able to successfully reference the remote P2 repo and retrieve all artifacts.

However, when I attempt to use the <target> element in my <configuration> node, it seems to simply be ignored, and then my build fails because it can't find any of the dependencies provided by the repository.  Furthermore, when running Maven in debug mode, I see no output to indicate that it is even trying to use this target platform configuration.

I am aware of the restriction that says the *target file must be named based on the artifactId - so I do have a file named com.xxx.build.target.target in the root of the target project.  

Thanks for the help and let me know what other information I can provide to help.

Andy

Relevant POM config:

 <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <configuration> <target> <artifact> <groupId>com.xxx</groupId> <artifactId>com.xxx.build.target</artifactId> </artifact> </target> <environments> <environment> <os>win32</os> <ws>win32</ws> <arch>x86</arch> </environment> <environment> <os>win32</os> <ws>win32</ws> <arch>x86_64</arch> </environment> <environment> <os>macosx</os> <ws>cocoa</ws> <arch>x86_64</arch> </environment> <environment> <os>linux</os> <ws>gtk</ws> <arch>x86_64</arch> </environment> <environment> <os>linux</os> <ws>gtk</ws> <arch>ppc64</arch> </environment> </environments> </configuration> </plugin>


_______________________________________________
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


--

Mit freundlichen Grüßen / Best regards,
Aleksandar Toshovski


_______________________________________________
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


Back to the top