Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Is it possible to launch only some modules ?

You should use Maven profiles for that purpose.

Jeff


On Fri, Jan 22, 2016 at 4:16 PM, Christelle BURGUERA <Christelle.BURGUERA@xxxxxx> wrote:

Hi !

 

I’ve maven projects who build, an exe, some Eclipse plugins, an Eclipse Product …

I’ve 8 modules, all called by a parent pom :

 

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

 

    <groupId>com.st.system.workbench</groupId>

    <artifactId>Maven_SW4STM32</artifactId>

    <version>1.6.0-SNAPSHOT</version>

    <packaging>pom</packaging>

    <name>SystemWorkbench</name>

    <description>SystemWorkbench Project Root</description>

 

    <organization>

        <name>STMicroelectronics</name>

        <url>www.st.com</url>

    </organization>

   

  

    <modules>

       <module>../Maven_1</module>

       <module>../Maven_2</module>

       <module>../Maven_3</module>      

       <module>../Maven_4</module>

       <module>../Maven_5</module>

       <module>../Maven_6</module>

       <module>../Maven_7</module>

       <module>../Maven_8</module>

 

    </modules>

  <build>

    <plugins>

      <plugin>

        <groupId>org.eclipse.tycho</groupId>

        <artifactId>tycho-maven-plugin</artifactId>

        <version>${tychoVersion}</version>

        <extensions>true</extensions>

      </plugin>

 

      <plugin>

        <groupId>org.eclipse.tycho</groupId>

        <artifactId>target-platform-configuration</artifactId>

        <version>${tychoVersion}</version>

        <configuration>

          <environments>

            <environment>

              <os>linux</os>

              <ws>gtk</ws>

              <arch>x86</arch>

            </environment>

            <environment>

              <os>linux</os>

              <ws>gtk</ws>

              <arch>x86_64</arch>

            </environment>

            <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>

          </environments>

        </configuration>

      </plugin>

    </plugins>

  </build>

  <properties>

       <tychoVersion>0.23.1</tychoVersion>

  </properties>

</project>

 

I launch it with a command : mvn clean install with arguments …

I want to know if it is possible to pass by an extra argument to give the possibility to the user to select what he wants to build.

The modules are not dependents the ones with the other, it’s possible for ex to build the module 1 and the module 2 only, or the module 3 and 4 and 5 only …

 

Any idea ?

Thank you !

Have a good week-end !

 

Christelle


_______________________________________________
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



--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top