Release dcaegen2/platform/cli
[dcaegen2/platform/cli.git] / blueprint-generator / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3  org.onap.dcae
4  ================================================================================
5  Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
6  ================================================================================
7  Licensed under the Apache License, Version 2.0 (the "License");
8  you may not use this file except in compliance with the License.
9  You may obtain a copy of the License at
10
11       http://www.apache.org/licenses/LICENSE-2.0
12
13  Unless required by applicable law or agreed to in writing, software
14  distributed under the License is distributed on an "AS IS" BASIS,
15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  See the License for the specific language governing permissions and
17  limitations under the License.
18  ============LICENSE_END=========================================================
19 -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.onap.oparent</groupId> 
27                 <artifactId>oparent</artifactId> 
28                 <version>2.0.0</version> 
29         </parent>
30         <groupId>org.onap.dcaegen2.platform.cli</groupId>
31         <artifactId>blueprint-generator</artifactId>
32         <version>1.2.1</version>
33         <properties>
34                 <maven.compiler.source>1.6</maven.compiler.source>
35                 <maven.compiler.target>1.6</maven.compiler.target>
36
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38                 <sonar.core.codeCoveragePlugin>cobertura</sonar.core.codeCoveragePlugin>
39                 <sonar.java.coveragePlugin>cobertura</sonar.java.coveragePlugin>
40                 <sonar.junit.reportsPath>${project.basedir}/target/surefire-reports</sonar.junit.reportsPath>
41                 <sonar.surefire.reportsPath>${project.basedir}/target/surefire-reports</sonar.surefire.reportsPath>
42                 <sonar.cobertura.reportPath>${project.basedir}/target/site/cobertura/coverage.xml</sonar.cobertura.reportPath>
43                 <shade.main>org.onap.blueprintgenerator.core.App</shade.main>
44                 <shade.transformer>org.apache.maven.plugins.shade.resource.ManifestResourceTransformer</shade.transformer>
45         </properties>
46
47         <build>
48                 <plugins>    
49         <!-- the following plugins are invoked from oparent, we do not need them -->
50                         <plugin>
51                                 <artifactId>maven-assembly-plugin</artifactId>
52                                 <version>2.4.1</version>
53                                 <configuration>
54                                         <descriptors>
55                                                 <descriptor>src/assembly/dep.xml</descriptor>
56                                         </descriptors>
57                                 </configuration>
58
59                                 <executions>
60                                         <execution>
61
62                                                 <id>make-assembly</id>
63                                                 <phase>package</phase>
64                                                 <goals>
65                                                         <goal>single</goal>
66                                                 </goals>
67                                         </execution>
68                                 </executions>
69
70                         </plugin>
71
72                         <plugin>
73                                 <groupId>org.codehaus.mojo</groupId>
74                                 <artifactId>cobertura-maven-plugin</artifactId>
75                                 <version>2.7</version>
76                                 <configuration>
77                                         <instrumentation>
78                                                 <includes>
79                                                         <include>**/*.class</include>
80                                                 </includes>
81                                         </instrumentation>
82                                         <encoding>UTF-8</encoding>
83                                 </configuration>
84
85                                 <executions>
86
87                                         <execution>
88                                                 <id>clean</id>
89                                                 <!-- > <phase>pre-site</phase> -->
90                                                 <phase>pre-site</phase>
91                                                 <goals>
92                                                         <goal>cobertura</goal>
93                                                 </goals>
94                                         </execution>
95
96
97                                         <execution>
98                                                 <id>instrument</id>
99                                                 <phase>site</phase>
100                                                 <goals>
101                                                         <goal>instrument</goal>
102                                                         <goal>cobertura</goal>
103                                                 </goals>
104                                                 <configuration>
105                                                         <encoding>UTF-8</encoding>
106                                                 </configuration>
107                                         </execution>
108
109                                 </executions>
110
111                         </plugin>
112
113                         <plugin>
114                                 <groupId>org.sonarsource.scanner.maven</groupId>
115                                 <artifactId>sonar-maven-plugin</artifactId>
116                                 <version>3.0.2</version>
117                         </plugin>
118                         <plugin>
119                                 <groupId>org.apache.maven.plugins</groupId>
120                                 <artifactId>maven-shade-plugin</artifactId>
121                                 <version>3.2.1</version>
122                                 <executions>
123                                         <execution>
124                                                 <goals>
125                                                         <goal>shade</goal>
126                                                 </goals>
127                                                 <configuration>
128                                                         <shadedArtifactAttached>true</shadedArtifactAttached>
129                                                         <shadedClassifierName>executable</shadedClassifierName>
130                                                         <transformers>
131                                                                 <transformer
132                                                                                 implementation="${shade.transformer}">
133                                                                         <mainClass>${shade.main}</mainClass>
134                                                                 </transformer>
135                                                         </transformers>
136                                                 </configuration>
137                                         </execution>
138                                 </executions>
139                         </plugin>
140                         <plugin>
141                                 <groupId>org.apache.maven.plugins</groupId>
142                                 <artifactId>maven-compiler-plugin</artifactId>
143                                 <configuration>
144                                         <source>8</source>
145                                         <target>8</target>
146                                 </configuration>
147                         </plugin>
148                 </plugins>
149
150         </build>
151
152         <reporting>
153                 <plugins>
154                         <plugin>
155                                 <!-- use mvn cobertura:cobertura to generate cobertura reports -->
156                                 <groupId>org.codehaus.mojo</groupId>
157                                 <artifactId>cobertura-maven-plugin</artifactId>
158                                 <version>2.7</version>
159                                 <configuration>
160                                         <formats>
161                                                 <format>xml</format>
162                                         </formats>
163                                 </configuration>
164                         </plugin>
165                 </plugins>
166         </reporting>
167
168
169         <dependencies>
170                 <dependency>
171                         <groupId>junit</groupId>
172                         <artifactId>junit</artifactId>
173                         <version>4.12</version>
174                         <scope>test</scope>
175                 </dependency>
176                 <dependency>
177                         <groupId>org.mockito</groupId>
178                         <artifactId>mockito-core</artifactId>
179                         <version>3.1.0</version>
180                         <scope>test</scope>
181                 </dependency>
182
183                 <dependency>
184                         <groupId>info.picocli</groupId>
185                         <artifactId>picocli</artifactId>
186                         <version>3.9.6</version>
187                 </dependency>
188                 <dependency>
189                         <groupId>org.projectlombok</groupId>
190                         <artifactId>lombok</artifactId>
191                         <version>1.18.2</version>
192                         <scope>provided</scope>
193                 </dependency>
194                 <dependency>
195                         <groupId>com.fasterxml.jackson.dataformat</groupId>
196                         <artifactId>jackson-dataformat-yaml</artifactId>
197                         <version>2.9.8</version>
198                 </dependency>
199
200                 <dependency>
201                         <groupId>com.fasterxml.jackson.core</groupId>
202                         <artifactId>jackson-databind</artifactId>
203                         <version>2.9.8</version>
204                 </dependency>
205                 <dependency>
206                         <groupId>com.fasterxml.jackson.core</groupId>
207                         <artifactId>jackson-annotations</artifactId>
208                         <version>2.9.8</version>
209                 </dependency>
210         </dependencies>
211
212 </project>