Generate rApp packages for unit test
[nonrtric/plt/rappmanager.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index b772daa..79d2934 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
         <exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
         <apache.compress.version>1.25.0</apache.compress.version>
     </properties>
+    <profiles>
+        <profile>
+            <id>Windows</id>
+            <activation>
+                <os>
+                    <family>Windows</family>
+                </os>
+            </activation>
+            <properties>
+                <script.extension>.bat</script.extension>
+                <file.separator>\</file.separator>
+            </properties>
+        </profile>
+        <profile>
+            <id>unix</id>
+            <activation>
+                <os>
+                    <family>unix</family>
+                </os>
+            </activation>
+            <properties>
+                <script.extension>.sh</script.extension>
+                <file.separator>/</file.separator>
+            </properties>
+        </profile>
+    </profiles>
     <build>
         <plugins>
             <plugin>
                     <skipTests>false</skipTests>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>exec-maven-plugin</artifactId>
+                <version>${exec-maven-plugin.version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-test-csar-packages</id>
+                        <phase>initialize</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <workingDirectory>
+                                scripts/init/generate-test-rapp-packages
+                            </workingDirectory>
+                            <executable>
+                                go
+                            </executable>
+                            <arguments>
+                                <argument>run</argument>
+                                <argument>generatetestrapppackages.go</argument>
+                            </arguments>
+                        </configuration>
+                        <inherited>false</inherited>
+                    </execution>
+                </executions>
+            </plugin>
             <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>