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