summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/templates
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-05-25 17:00:11 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-25 17:00:11 +0000
commit92e70e4db18ec9de845dcd09c2c0a015e4a72a3a (patch)
tree1d7e50c4eed87420018d12732155a40845d07952 /kubernetes/portal/templates
parent7cccd2a303d4f61dee5aa2ab5da701bd9e18fec8 (diff)
parentf9cd2cd921a4113a6bda4434d4f29be583f96642 (diff)
Merge "the final docker release for R6"
Diffstat (limited to 'kubernetes/portal/templates')
0 files changed, 0 insertions, 0 deletions
a id='n169' href='#n169'>169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
<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>org.openecomp.sdc</groupId>
    <artifactId>onboarding-fe</artifactId>
    <name>onboarding-ui-war</name>
    <packaging>war</packaging>

    <parent>
        <groupId>org.openecomp.sdc</groupId>
        <artifactId>sdc-onboarding</artifactId>
        <version>1.2.0-SNAPSHOT</version>
        <relativePath>../onboarding</relativePath>
    </parent>

    <properties>
        <maven.war.plugin.version>3.0.0</maven.war.plugin.version>
    </properties>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.6.1</version>
                <executions>
                    <execution>
                        <id>clean.dist.folder</id>
                        <phase>clean</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                        <configuration>
                            <filesets>
                                <fileset>
                                    <directory>${basedir}/dist</directory>
                                </fileset>
                                <!--<fileset>-->
                                    <!--<directory>${basedir}/node_modules</directory>-->
                                <!--</fileset>-->
                                <fileset>
                                    <directory>${basedir}/coverage</directory>
                                </fileset>
                                <fileset>
                                    <directory>${basedir}/../dox-sequence-diagram-ui/dist
                                    </directory>
                                </fileset>
                                <!--<fileset>-->
                                    <!--<directory>${basedir}/../dox-sequence-diagram-ui/node_modules-->
                                    <!--</directory>-->
                                <!--</fileset>-->
                            </filesets>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <!-- ============================================= -->
            <!-- Build the UI module node code -->
            <!-- ============================================= -->
            <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <version>1.4</version>

                <configuration>
                    <installDirectory>${project.parent.parent.basedir}</installDirectory>
                </configuration>

                <executions>

                    <execution>
                        <id>install node and npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <configuration>
                            <nodeVersion>v6.9.5</nodeVersion>
                            <npmVersion>3.10.10</npmVersion>
                        </configuration>
                    </execution>

                    <execution>
                        <id>npm set progress off</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <arguments>set progress=false</arguments>
                        </configuration>
                    </execution>

                    <execution>
                        <id>npm install in dox-sequence-diagram-ui</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
                            </workingDirectory>
                            <arguments>install</arguments>
                        </configuration>
                    </execution>

                    <!-- Fix jQuery dependency in restful-js -->
                    <execution>
                        <id>npm restful-js</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <arguments>install restful-js</arguments>
                        </configuration>
                    </execution>
                    <execution>
                        <id>npm install restful-js dependencies</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <workingDirectory>${project.basedir}/node_modules/restful-js
                            </workingDirectory>
                            <arguments>install --production</arguments>
                        </configuration>
                    </execution>

                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <arguments>install</arguments>
                        </configuration>
                    </execution>

                    <execution>
                        <id>npm run build</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <arguments>run build -- --version=${project.version}</arguments>
                        </configuration>
                    </execution>
                    <execution>
                        <id>ui test</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <arguments>run test-build</arguments>
                        </configuration>
                        <phase>test</phase>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>repack war</id>
                        <phase>prepare-package</phase>
                        <configuration>
                            <tasks>
                                <echo message="Building test environment"/>
                                <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
                                    <patternset>
                                        <include name="**/*"/>
                                    </patternset>
                                </unzip>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>${maven.war.plugin.version}</version>
                <configuration>
                    <webResources>
                        <resource>
                            <directory>${basedir}/target/dist</directory>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>