d99abd185b11271e3e9f9dcceda961ade9d61e46
[aai/sparky-fe.git] / pom.xml
1 <!--
2
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7     Copyright © 2017 Amdocs
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13           http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22     ECOMP is a trademark and service mark of AT&T Intellectual Property.
23
24 -->
25 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
27     <modelVersion>4.0.0</modelVersion>
28     <groupId>org.onap.aai</groupId>
29     <artifactId>sparky-fe</artifactId>
30     <packaging>war</packaging>
31     <version>1.0.0-SNAPSHOT</version>
32     <name>aai-sparky-fe</name>
33     <url>http://maven.apache.org</url>
34
35     <properties>
36        <nexusproxy>https://nexus.onap.org</nexusproxy>
37     </properties>
38
39     <dependencies>
40     </dependencies>
41
42     <build>
43         <plugins>
44
45             <plugin>
46                 <groupId>org.apache.maven.plugins</groupId>
47                 <artifactId>maven-war-plugin</artifactId>
48                 <configuration>
49                     <failOnMissingWebXml>false</failOnMissingWebXml>
50                     <webResources>
51                        <resource>
52                           <directory>dist</directory>
53                                </resource>
54                     </webResources>
55                 </configuration>
56             </plugin>
57
58             <plugin>
59                 <groupId>com.github.eirslett</groupId>
60                 <artifactId>frontend-maven-plugin</artifactId>
61                 <version>1.4</version>
62                 <executions>
63                     <execution>
64                         <id>install node and npm</id>
65                         <goals>
66                             <goal>install-node-and-npm</goal>
67                         </goals>
68                         <phase>generate-resources</phase>
69                         <configuration>
70                             <nodeVersion>v6.2.2</nodeVersion>
71                             <npmVersion>3.10.3</npmVersion>
72                         </configuration>
73                     </execution>
74                     <execution>
75                         <id>npm config</id>
76                         <goals>
77                             <goal>npm</goal>
78                         </goals>
79                         <phase>generate-resources</phase>
80                         <configuration>
81                             <arguments>config set cache node${file.separator}npm-cache</arguments>
82                         </configuration>
83                     </execution>
84                     <execution>
85                         <id>npm install</id>
86                         <goals>
87                             <goal>npm</goal>
88                         </goals>
89                         <phase>generate-resources</phase>
90                     </execution>
91                     <execution>
92                         <id>gulp build</id>
93                         <goals>
94                             <goal>gulp</goal>
95                         </goals>
96                         <phase>generate-resources</phase>
97
98                          <configuration>
99                                 <arguments>build</arguments>
100                         </configuration>
101
102                     </execution>
103                 </executions>
104             </plugin>
105             <plugin>
106                 <groupId>org.sonatype.plugins</groupId>
107                 <artifactId>nexus-staging-maven-plugin</artifactId>
108                 <version>1.6.7</version>
109                 <extensions>true</extensions>
110                 <configuration>
111                     <nexusUrl>${nexusproxy}</nexusUrl>
112                     <stagingProfileId>176c31dfe190a</stagingProfileId>
113                     <serverId>ecomp-staging</serverId>
114                 </configuration>
115             </plugin>
116         </plugins>
117     </build>
118
119     <distributionManagement>
120        <repository>
121           <id>ecomp-releases</id>
122           <name>ECOMP Release Repository</name>
123           <url>${nexusproxy}/content/repositories/releases/</url>
124        </repository>
125        <snapshotRepository>
126           <id>ecomp-snapshots</id>
127           <name>ECOMP Snapshot Repository</name>
128           <url>${nexusproxy}/content/repositories/snapshots/</url>
129       </snapshotRepository>
130    </distributionManagement>
131
132 </project>