[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [tycho-user] target-platform-configuration question
|
- From: Simon Goodall <simon@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Aug 2012 10:54:02 +0100
- Delivered-to: tycho-user@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=uYbT3KP2k2LJOhoaTkn6OpU9jaUtbjuz5R9UW9BNfbQ=; b=bUSezYURYjVX+aKSRR3Vaqtg1SVfYyQnXcaj9TCmkk5XZL3iddxbvmgP1LmxB3Jdp3 7Ls1RDJ5pwAX4eue+tHHbexKBZ7kyAMPkC7GQLIZMj/FJ2xdVI7brze7kAj+a+9pUHin QB8fz9btqGz3CvyD6luaFDZkk9avWKy6YAHkl4Ye8vNcMrED7ETvxmaBCaO4T7dcgwZk uupQH4HOdmNGX7/nNErjAga4wghaid5T6qLvThtFiKbKgvVYeOmOmesdD2UYefUF07mw xWdOvbMDcZjYBWF2WHtyojRudvNP5XXYvdH00rvUVcR+dvxJ+S3qgVB/wJwZJLLygzMh h6Ng==
Hi,
I tend to have my projects structured something like this;
parent
-- target-definition
-- bundle-a
-- bundle-b
-- etc...
My target definition is in a project called "target-definition". This
is a plain pom packaging project with the following build block;
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>targetFileNameWithoutExtension.target</file>
<type>target</type>
<classifier>targetFileNameWithoutExtension</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
This hooks the target into the build process. It also means that this
can be deployed to a maven repository and referenced later. My parent
pom has target-definition listed as the first module and the
target-platform-configuration block as defined in the link you
referenced.
Now I can either build the full project from the parent directory - or
if I have previously installed or deployed the full projects I can
step down into the child modules and build them individually still
using my target definition. In these cases the .target file will be
obtained from the maven repository.
HTH.
Simon
On 3 August 2012 21:22, Craig Foote <craigfoote@xxxxxxxxx> wrote:
> Hi, I have several tycho projects each using target-platform-configuration
> to specify its own dedicated project with a .target file. I want to
> consolidate the targets and modify all the old references to the new
> location. Following
> http://wiki.eclipse.org/Tycho/Target_Platform#Target_files, I've set the GAV
> to a parent project with the consolidated .target at its root but I'm
> getting the error "Could not resolve target platform specification
> artifact..." so I assume I'm specifying it wrong. What must be the
> relationship between a consuming project and the project holding the
> .target? Mine are siblings with the parent specified in the child using a
> relative path. The parent is of type "pom". Any ideas appreciated? I assumed
> the parent project is part of the reactor and so its content could be found
> - am I wrong?
>
> Craig
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>