Increment snapshot version
[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.6.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             <!--maven staging plugin --> 
77             <plugin> 
78                 <groupId>org.sonatype.plugins</groupId> 
79                 <artifactId>nexus-staging-maven-plugin</artifactId> 
80                 <version>1.6.7</version> 
81                 <extensions>true</extensions> 
82                 <configuration> 
83                     <nexusUrl>${onap.nexus.url}</nexusUrl> 
84                     <stagingProfileId>176c31dfe190a</stagingProfileId> 
85                     <serverId>ecomp-staging</serverId> 
86                 </configuration> 
87             </plugin>
88             <!--  <plugin>
89                 <groupId>org.codehaus.mojo</groupId>
90                 <artifactId>exec-maven-plugin</artifactId>
91                 <version>1.5.0</version>
92                 <executions>
93                     <execution>
94                         <id>npminstall</id>
95                         <phase>process-resources</phase>
96                         <configuration>
97                             <executable>${npm.executable}</executable>
98                             <arguments>
99                                 <argument>install</argument>
100
101                             </arguments>
102                         </configuration>
103                         <goals>
104                             <goal>exec</goal>
105                         </goals>
106                     </execution>
107                     <execution>
108                         <id>npmrun</id>
109                         <phase>process-resources</phase>
110                         <configuration>
111                             <executable>${npm.executable}</executable>
112                             <arguments>
113                                 <argument>run</argument>
114                                 <argument>build</argument>
115                             </arguments>
116                         </configuration>
117                         <goals>
118                             <goal>exec</goal>
119                         </goals>
120                     </execution>
121                 </executions>
122             </plugin> -->
123             <plugin>
124                 <groupId>com.github.eirslett</groupId>
125                 <artifactId>frontend-maven-plugin</artifactId>
126                 <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->
127                 <version>1.3</version>
128                 <configuration>
129                     <nodeVersion>v7.7.4</nodeVersion>
130                     <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
131                     <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>
132                     <installDirectory>./</installDirectory>
133                 </configuration>
134                 <executions>
135                     <execution>
136                         <id>install node and npm</id>
137                         <goals>
138                             <goal>install-node-and-npm</goal>
139                         </goals>
140                         <phase>generate-resources</phase>
141                     </execution>
142
143                     <execution>
144                         <id>npm install</id>
145                         <goals>
146                             <goal>npm</goal>
147                         </goals>
148
149                         <phase>generate-resources</phase>
150
151                         <configuration>
152                             <arguments>install</arguments>
153                         </configuration>
154                     </execution>
155
156                     <execution>
157                         <id>npm build</id>
158                         <goals>
159                             <goal>npm</goal>
160                         </goals>
161
162                         <phase>generate-resources</phase>
163
164                         <configuration>
165                             <arguments>run build</arguments>
166                         </configuration>
167                     </execution>
168
169                 </executions>
170             </plugin>
171
172             <plugin>
173               <artifactId>maven-assembly-plugin</artifactId>
174               <executions>
175                 <execution>
176                   <id>maven-repo-zip</id>
177                   <goals>
178                     <goal>single</goal>
179                   </goals>
180                   <phase>package</phase>
181                   <configuration>
182                     <appendAssemblyId>false</appendAssemblyId>
183                     <attach>false</attach>
184                     <finalName>${project.artifactId}-${project.version}</finalName>
185                     <descriptors>
186                       <descriptor>assemble_dist_zip.xml</descriptor>
187                     </descriptors>
188                   </configuration>
189                 </execution>
190               </executions>
191             </plugin>
192
193             <plugin>
194                 <groupId>org.codehaus.mojo</groupId>
195                 <artifactId>build-helper-maven-plugin</artifactId>
196                 <version>1.12</version>
197                 <executions>
198                     <execution>
199                         <id>attach-artifacts</id>
200                         <phase>package</phase>
201                         <goals>
202                             <goal>attach-artifact</goal>
203                         </goals>
204                         <configuration>
205                             <artifacts>
206                                 <artifact>
207                                     <file>target/${project.artifactId}-${project.version}.zip</file>
208                                     <type>zip</type>
209                                 </artifact>
210                             </artifacts>
211                         </configuration>
212                     </execution>
213                 </executions>
214             </plugin>
215         </plugins>
216     </build>
217     
218     <modules>
219         <module>CdtProxyService</module>
220     </modules>
221
222 </project>