Merge "removed block of commented-out lines of code"
[cli.git] / profiles / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright 2017 Huawei Technologies Co., Ltd.
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
21          http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23
24     <parent>
25         <groupId>org.onap.cli</groupId>
26         <artifactId>cli</artifactId>
27         <version>6.0.1-SNAPSHOT</version>
28     </parent>
29
30     <artifactId>cli-profiles</artifactId>
31     <name>cli/profiles</name>
32     <packaging>pom</packaging>
33
34     <modules>
35         <module>http</module>
36         <module>snmp</module>
37         <module>command</module>
38         <module>robot</module>
39
40     </modules>
41     <dependencies>
42         <dependency>
43             <groupId>junit</groupId>
44             <artifactId>junit</artifactId>
45             <version>4.11</version>
46             <scope>test</scope>
47         </dependency>
48         <dependency>
49             <groupId>org.onap.cli</groupId>
50             <artifactId>cli-framework</artifactId>
51             <version>${project.parent.version}</version>
52         </dependency>
53     </dependencies>
54     <build>
55          <pluginManagement>
56             <plugins>
57                 <plugin>
58                     <groupId>org.apache.maven.plugins</groupId>
59                     <artifactId>maven-resources-plugin</artifactId>
60                     <version>3.1.0</version>
61                     <executions>
62                         <execution>
63                             <id>copy-resource-conf</id>
64                             <phase>install</phase>
65                             <goals>
66                                 <goal>copy-resources</goal>
67                             </goals>
68
69                             <configuration>
70                                 <outputDirectory>../../profiles/target/conf</outputDirectory>
71                                 <resources>
72                                     <resource>
73                                         <directory>${project.basedir}/src/main/resources</directory>
74                                         <includes>
75                                             <include>*.properties</include>
76                                         </includes>
77                                     </resource>
78                                 </resources>
79                             </configuration>
80                         </execution>
81                    </executions>
82                 </plugin>
83                 <plugin>
84                   <groupId>org.apache.maven.plugins</groupId>
85                   <artifactId>maven-dependency-plugin</artifactId>
86                   <executions>
87                     <execution>
88                       <id>copy-artifact</id>
89                       <phase>package</phase>
90                       <goals>
91                         <goal>copy</goal>
92                       </goals>
93                       <configuration>
94                         <artifactItems>
95                             <artifactItem>
96                               <groupId>${project.groupId}</groupId>
97                               <artifactId>${project.artifactId}</artifactId>
98                               <version>${project.version}</version>
99                               <type>${project.packaging}</type>
100                             </artifactItem>
101                         </artifactItems>
102                         <!-- copy to profiles dependencies -->
103                         <outputDirectory>../../profiles/target/lib</outputDirectory>
104                       </configuration>
105                     </execution>
106                   </executions>
107                 </plugin>
108                   <plugin>
109                     <groupId>org.apache.maven.plugins</groupId>
110                     <artifactId>maven-dependency-plugin</artifactId>
111                     <version>3.0.0</version>
112                     <executions>
113                       <execution>
114                         <id>copy-dependencies</id>
115                         <phase>package</phase>
116                         <goals>
117                           <goal>copy-dependencies</goal>
118                         </goals>
119                         <configuration>
120                           <outputDirectory>../../profiles/target/lib</outputDirectory>
121                           <overWriteReleases>false</overWriteReleases>
122                           <overWriteSnapshots>false</overWriteSnapshots>
123                           <overWriteIfNewer>true</overWriteIfNewer>
124                           <excludeArtifactIds>junit,jmockit</excludeArtifactIds>
125                         </configuration>
126                       </execution>
127                     </executions>
128                   </plugin>
129                 <plugin>
130                     <groupId>org.apache.maven.plugins</groupId>
131                     <artifactId>maven-surefire-plugin</artifactId>
132                     <version>2.22.0</version>
133                     <configuration>
134                         <argLine>
135                             -javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
136                             ${surefireArgLine}
137                         </argLine>
138                     </configuration>
139                 </plugin>
140             </plugins>
141         </pluginManagement>
142     </build>
143 </project>