priyanshu | 7e78cd1 | 2018-07-16 19:25:05 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright © 2016-2018 European Support Limited |
| 4 | ~ |
| 5 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ~ you may not use this file except in compliance with the License. |
| 7 | ~ You may obtain a copy of the License at |
| 8 | ~ |
| 9 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ~ |
| 11 | ~ Unless required by applicable law or agreed to in writing, software |
| 12 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ~ See the License for the specific language governing permissions and |
| 15 | ~ limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 19 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 20 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 21 | |
| 22 | <modelVersion>4.0.0</modelVersion> |
priyanshu | 7e78cd1 | 2018-07-16 19:25:05 +0530 | [diff] [blame] | 23 | <artifactId>workflow-designer-ui</artifactId> |
Stanislav Vishnevetskiy | 101bc93 | 2018-07-23 13:26:41 +0300 | [diff] [blame] | 24 | <packaging>war</packaging> |
priyanshu | 7e78cd1 | 2018-07-16 19:25:05 +0530 | [diff] [blame] | 25 | |
| 26 | <parent> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 27 | <groupId>org.onap.sdc.sdc-workflow-designer</groupId> |
priyanshu | 7e78cd1 | 2018-07-16 19:25:05 +0530 | [diff] [blame] | 28 | <artifactId>workflow-designer-parent</artifactId> |
| 29 | <version>1.3.0-SNAPSHOT</version> |
| 30 | </parent> |
| 31 | |
Stanislav Vishnevetskiy | 101bc93 | 2018-07-23 13:26:41 +0300 | [diff] [blame] | 32 | <properties> |
| 33 | <jest.command /> |
| 34 | </properties> |
| 35 | |
| 36 | |
| 37 | <dependencies> |
| 38 | <dependency> |
| 39 | <groupId>org.eclipse.jetty</groupId> |
| 40 | <artifactId>jetty-proxy</artifactId> |
| 41 | <version>9.4.11.v20180605</version> |
| 42 | </dependency> |
| 43 | <dependency> |
| 44 | <groupId>javax.servlet</groupId> |
| 45 | <artifactId>javax.servlet-api</artifactId> |
| 46 | <version>3.0.1</version> |
| 47 | <scope>provided</scope> |
| 48 | </dependency> |
| 49 | </dependencies> |
| 50 | |
| 51 | <build> |
| 52 | <plugins> |
| 53 | <plugin> |
| 54 | <groupId>com.github.eirslett</groupId> |
| 55 | <artifactId>frontend-maven-plugin</artifactId> |
| 56 | <version>1.6</version> |
| 57 | <configuration> |
| 58 | <workingDirectory>src/main/frontend</workingDirectory> |
| 59 | <installDirectory>target</installDirectory> |
| 60 | </configuration> |
| 61 | <executions> |
| 62 | <execution> |
| 63 | <id>install node and yarn</id> |
| 64 | <goals> |
| 65 | <goal>install-node-and-yarn</goal> |
| 66 | </goals> |
| 67 | <phase>generate-resources</phase> |
| 68 | <configuration> |
Malek | f09952f | 2018-08-28 09:19:25 +0300 | [diff] [blame] | 69 | <nodeVersion>v8.11.4</nodeVersion> |
| 70 | <yarnVersion>v1.9.4</yarnVersion> |
Stanislav Vishnevetskiy | 101bc93 | 2018-07-23 13:26:41 +0300 | [diff] [blame] | 71 | </configuration> |
| 72 | </execution> |
| 73 | <execution> |
| 74 | <id>yarn install</id> |
| 75 | <goals> |
| 76 | <goal>yarn</goal> |
| 77 | </goals> |
| 78 | <configuration> |
| 79 | <arguments>install</arguments> |
| 80 | </configuration> |
| 81 | </execution> |
| 82 | <execution> |
| 83 | <id>yarn run webpack build</id> |
| 84 | <goals> |
| 85 | <goal>yarn</goal> |
| 86 | </goals> |
| 87 | <configuration> |
| 88 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 89 | <arguments>build</arguments> |
| 90 | </configuration> |
| 91 | </execution> |
| 92 | <execution> |
| 93 | <id>ui test</id> |
| 94 | <goals> |
| 95 | <goal>yarn</goal> |
| 96 | </goals> |
| 97 | <configuration> |
| 98 | <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> |
| 99 | <arguments>test-build ${jest.command}</arguments> |
| 100 | <skip>${skipTests}</skip> |
| 101 | </configuration> |
| 102 | <phase>test</phase> |
| 103 | </execution> |
| 104 | </executions> |
| 105 | </plugin> |
| 106 | <plugin> |
| 107 | <groupId>org.apache.maven.plugins</groupId> |
| 108 | <artifactId>maven-war-plugin</artifactId> |
| 109 | <version>3.2.2</version> |
| 110 | <configuration> |
| 111 | <webResources> |
| 112 | <resource> |
| 113 | <directory>src/main/frontend/dist</directory> |
| 114 | <includes> |
Stanislav Vishnevetskiy | aec32e5 | 2018-08-05 16:25:09 +0300 | [diff] [blame] | 115 | <include>*.*</include> |
Stanislav Vishnevetskiy | 101bc93 | 2018-07-23 13:26:41 +0300 | [diff] [blame] | 116 | </includes> |
| 117 | </resource> |
| 118 | <resource> |
vempo | b4e1091 | 2018-07-26 12:10:37 +0300 | [diff] [blame] | 119 | <directory>src/main/frontend/external-resources/ping/</directory> |
Stanislav Vishnevetskiy | 101bc93 | 2018-07-23 13:26:41 +0300 | [diff] [blame] | 120 | <filtering>true</filtering> |
| 121 | <includes> |
| 122 | <include>ping</include> |
| 123 | </includes> |
| 124 | </resource> |
| 125 | </webResources> |
| 126 | </configuration> |
| 127 | </plugin> |
| 128 | </plugins> |
| 129 | </build> |
| 130 | <profiles> |
| 131 | <profile> |
| 132 | <id>jest-windows-profile</id> |
| 133 | <activation> |
| 134 | <os> |
| 135 | <family>windows</family> |
| 136 | </os> |
| 137 | </activation> |
| 138 | <properties> |
| 139 | <jest.command>--runInBand</jest.command> |
| 140 | </properties> |
| 141 | </profile> |
| 142 | <profile> |
| 143 | <id>docker</id> |
| 144 | <activation> |
| 145 | <activeByDefault>false</activeByDefault> |
| 146 | </activation> |
| 147 | <build> |
| 148 | <plugins> |
| 149 | <plugin> |
| 150 | <groupId>io.fabric8</groupId> |
| 151 | <artifactId>docker-maven-plugin</artifactId> |
| 152 | <configuration> |
| 153 | <images> |
| 154 | <image> |
| 155 | <name>onap/workflow-frontend</name> |
| 156 | <build> |
| 157 | <tags> |
| 158 | <tag>${project.version}</tag> |
| 159 | </tags> |
| 160 | <from>jetty:9.4.11-alpine</from> |
| 161 | <user>root</user> |
| 162 | <assembly> |
| 163 | <descriptorRef>artifact</descriptorRef> |
| 164 | <targetDir>/var/lib/jetty/webapps</targetDir> |
| 165 | </assembly> |
| 166 | <entryPoint> |
| 167 | java -DproxyTo=$BACKEND $JAVA_OPTIONS -jar $JETTY_HOME/start.jar |
| 168 | </entryPoint> |
| 169 | </build> |
| 170 | </image> |
| 171 | </images> |
| 172 | </configuration> |
| 173 | </plugin> |
| 174 | </plugins> |
| 175 | </build> |
| 176 | </profile> |
| 177 | </profiles> |
priyanshu | 7e78cd1 | 2018-07-16 19:25:05 +0530 | [diff] [blame] | 178 | </project> |
| 179 | |