Update INFO.yaml
[appc/cdt.git] / pom.xml
1 <!-- 
2 ============LICENSE_START==========================================
3 ===================================================================
4 Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
5 ===================================================================
6
7 Unless otherwise specified, all software contained herein is licensed
8 under the Apache License, Version 2.0 (the License);
9 you may not use this software except in compliance with the License.
10 You may obtain a copy of the License at
11
12     http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 ============LICENSE_END============================================ -->
22
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <groupId>org.onap.appc.cdt</groupId>
27     <artifactId>config-design-tool</artifactId>
28     <version>1.8.0-SNAPSHOT</version>
29     <packaging>pom</packaging>
30
31     <name>appc-config-design-tool</name>
32
33     <properties>
34         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35         <npm.executable>npm</npm.executable>
36         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
37     </properties>
38
39     <!-- ================================================================================== -->
40     <!-- Distribution Management Sites -->
41     <!-- ================================================================================== -->
42     <distributionManagement>        
43         <repository>
44             <id>ecomp-releases</id>
45             <name>openecomp-repository-releases</name>
46             <url>${onap.nexus.url}/content/repositories/releases</url>
47         </repository>
48         <snapshotRepository>
49             <id>ecomp-snapshots</id>
50             <name>openecomp-repository-snapshots</name>
51             <url>${onap.nexus.url}/content/repositories/snapshots</url>
52         </snapshotRepository>
53     </distributionManagement>
54
55     <dependencies>
56         <dependency>
57             <groupId>junit</groupId>
58             <artifactId>junit</artifactId>
59             <version>3.8.1</version>
60             <scope>test</scope>
61         </dependency>
62     </dependencies>
63
64     <build>
65         <plugins>
66             <!-- Allows the maven version plugin to work even when child modules
67                  don't use this pom as a parent. -->
68             <plugin>
69                 <groupId>org.codehaus.mojo</groupId>
70                 <artifactId>versions-maven-plugin</artifactId>
71                 <version>2.5</version>
72                 <configuration>
73                     <processAllModules>true</processAllModules>
74                 </configuration>
75             </plugin>
76             <!--  <plugin>
77                 <groupId>org.codehaus.mojo</groupId>
78                 <artifactId>exec-maven-plugin</artifactId>
79                 <version>1.5.0</version>
80                 <executions>
81                     <execution>
82                         <id>npminstall</id>
83                         <phase>process-resources</phase>
84                         <configuration>
85                             <executable>${npm.executable}</executable>
86                             <arguments>
87                                 <argument>install</argument>
88
89                             </arguments>
90                         </configuration>
91                         <goals>
92                             <goal>exec</goal>
93                         </goals>
94                     </execution>
95                     <execution>
96                         <id>npmrun</id>
97                         <phase>process-resources</phase>
98                         <configuration>
99                             <executable>${npm.executable}</executable>
100                             <arguments>
101                                 <argument>run</argument>
102                                 <argument>build</argument>
103                             </arguments>
104                         </configuration>
105                         <goals>
106                             <goal>exec</goal>
107                         </goals>
108                     </execution>
109                 </executions>
110             </plugin> -->
111             <plugin>
112                 <groupId>com.github.eirslett</groupId>
113                 <artifactId>frontend-maven-plugin</artifactId>
114                 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
115                 <version>1.3</version>
116                 <configuration>
117                     <nodeVersion>v7.7.4</nodeVersion>
118                     <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
119                     <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
120                     <installDirectory>./</installDirectory>
121                 </configuration>
122                 <executions>
123                     <execution>
124                         <id>install node and npm</id>
125                         <goals>
126                             <goal>install-node-and-npm</goal>
127                         </goals>
128                         <phase>generate-resources</phase>
129                     </execution>
130
131                     <execution>
132                         <id>npm install</id>
133                         <goals>
134                             <goal>npm</goal>
135                         </goals>
136
137                         <phase>generate-resources</phase>
138
139                         <configuration>
140                             <arguments>install</arguments>
141                         </configuration>
142                     </execution>
143
144                     <execution>
145                         <id>npm build</id>
146                         <goals>
147                             <goal>npm</goal>
148                         </goals>
149
150                         <phase>generate-resources</phase>
151
152                         <configuration>
153                             <arguments>run build</arguments>
154                         </configuration>
155                     </execution>
156
157                 </executions>
158             </plugin>
159
160             <plugin>
161               <artifactId>maven-assembly-plugin</artifactId>
162               <executions>
163                 <execution>
164                   <id>maven-repo-zip</id>
165                   <goals>
166                     <goal>single</goal>
167                   </goals>
168                   <phase>package</phase>
169                   <configuration>
170                     <appendAssemblyId>false</appendAssemblyId>
171                     <attach>false</attach>
172                     <finalName>${project.artifactId}-${project.version}</finalName>
173                     <descriptors>
174                       <descriptor>assemble_dist_zip.xml</descriptor>
175                     </descriptors>
176                   </configuration>
177                 </execution>
178               </executions>
179             </plugin>
180
181             <plugin>
182                 <groupId>org.codehaus.mojo</groupId>
183                 <artifactId>build-helper-maven-plugin</artifactId>
184                 <version>1.12</version>
185                 <executions>
186                     <execution>
187                         <id>attach-artifacts</id>
188                         <phase>package</phase>
189                         <goals>
190                             <goal>attach-artifact</goal>
191                         </goals>
192                         <configuration>
193                             <artifacts>
194                                 <artifact>
195                                     <file>target/${project.artifactId}-${project.version}.zip</file>
196                                     <type>zip</type>
197                                 </artifact>
198                             </artifacts>
199                         </configuration>
200                     </execution>
201                 </executions>
202             </plugin>
203         </plugins>
204     </build>
205     
206     <modules>
207         <module>CdtProxyService</module>
208     </modules>
209
210 </project>