Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Archiving products, archive naming

Hi,

I played around with this, added as below in the parent POM. (So the project holding the .product has no
such definitions).

This definition is however not picked up. (File name of the archive is not changing accordigingly).
Is this config correct? (Shoudn't this be in the POM holding the .product). What I understand from Jan's response is that it can also reside in the parent POM).

Thank You

pom.xml (Root parent).

<build>
        <plugins>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-maven-plugin</artifactId>
                <version>${tycho-version}</version>
                <extensions>true</extensions>
            </plugin>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <dependency-resolution>
                        <optionalDependencies>ignore</optionalDependencies>
                    </dependency-resolution>
                    <target>
                        <artifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>${project.artifactId}</artifactId>
                            <version>${project.version}</version>
                            <classifier>../../releng.tycho/com.netxforge.releng.target/netxstudio_kepler_xtext23_cdo40</classifier>
                        </artifact>
                    </target>
                    <environments>
                        <environment>
                            <os>win32</os>
                            <ws>win32</ws>
                            <arch>x86</arch>
                        </environment>
                        <environment>
                            <os>linux</os>
                            <ws>gtk</ws>
                            <arch>x86_64</arch>
                        </environment>
                        <environment>
                            <os>macosx</os>
                            <ws>cocoa</ws>
                            <arch>x86_64</arch>
                        </environment>
                    </environments>
                    <products>
                        <product>
                            <id>com.netxforge.netxflows</id>
                            <archiveFileName>NetXFlows-${unqualifiedVersion}</archiveFileName>
                        </product>
                    </products>
etc.....




On Tue, Apr 1, 2014 at 4:51 PM, Sievers, Jan <jan.sievers@xxxxxxx> wrote:
>...but shoudn't the archive documentation mention the "archiveFileName" entry?

that's a general bug with maven-site-plugin I think. It fails to generate docs for "deep" mojo parameters such as

http://eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-director-plugin/archive-products-mojo.html#products

Jan




From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Christophe Bouhier
Sent: Dienstag, 1. April 2014 16:19
To: Tycho user list
Subject: Re: [tycho-user] Archiving products, archive naming

Ah I think this explains it:

http://www.eclipse.org/tycho/sitedocs/tycho-packaging-plugin/plugin-info.html
...but shoudn't the archive documentation mention the "archiveFileName" entry?

Thanks Christophe

On Tue, Apr 1, 2014 at 3:12 PM, Sievers, Jan <jan.sievers@xxxxxxx> wrote:
you can configure the "archiveFileName" prefix of the product e.g. using a maven property defined in the respective parent pom

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=357503

Jan

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Christophe Bouhier
Sent: Dienstag, 1. April 2014 14:38
To: Tycho user list
Subject: [tycho-user] Archiving products, archive naming

Hi,
Is there a way to name the archives with a version number or other parameters I can use in the archive name?
I need to differentiate builds using different targets.

- Build 1) will use Kepler (.target has entry for Kepler).
- Build 2) will use Luna (.target has entry for Luna).
Both build the same .product file, but will have a different parent pom.xml  with varying Target Platform). 

Any options on how to deal with this?
(BTW: I didn't see a way to manipulate the file name with the goal tycho-p2-director:archive-products, but even if it did, would I somehow be able to differentiate which target was used to resolve dependencies and deduct a file name from this?).
One option, I have is to execute  bash script in the Hudson job running these builds, but I would really like to explore tycho's/Maven's possibilities prior to falling back to bash.
Thank You,
Christophe Bouhier
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top