Created
July 26, 2017 13:36
-
-
Save jamesfe/d686e6604ad01fe7d452a435d04f9f12 to your computer and use it in GitHub Desktop.
maven-exec-plugin build for all devs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <profiles> | |
| <profile> | |
| <id>windows code generation</id> | |
| <activation> | |
| <os> | |
| <family>Windows</family> | |
| </os> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>cygwin execution</id> | |
| <phase>generate-sources</phase> | |
| <configuration> | |
| <executable>cmd</executable> | |
| <arguments> | |
| <argument>/C</argument> | |
| <argument>python</argument> | |
| <argument>${project.basedir}/generateSource.py</argument> | |
| </arguments> | |
| </configuration> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <!-- Compile scala sources / test scala sources --> | |
| <plugin> | |
| <groupId>net.alchim31.maven</groupId> | |
| <artifactId>scala-maven-plugin</artifactId> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>non-windows code generation</id> | |
| <activation> | |
| <os> | |
| <family>!Windows</family> | |
| </os> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <configuration> | |
| <executable>python3</executable> | |
| <arguments> | |
| <argument>${project.basedir}/generateSource.py</argument> | |
| </arguments> | |
| </configuration> | |
| <id>python-build</id> | |
| <phase>generate-sources</phase> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <!-- Compile scala sources / test scala sources --> | |
| <plugin> | |
| <groupId>net.alchim31.maven</groupId> | |
| <artifactId>scala-maven-plugin</artifactId> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment