Set Oparent as parent and fix Checkstyle errors in sdc/jtosca
[sdc/sdc-tosca.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2                  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <groupId>org.onap.sdc.jtosca</groupId>
6         <artifactId>jtosca</artifactId>
7         <version>1.6.0-SNAPSHOT</version>
8         <name>sdc-jtosca</name>
9
10         <parent>
11                 <groupId>org.onap.oparent</groupId>
12                 <artifactId>oparent</artifactId>
13                 <version>2.0.0</version>
14                 <relativePath/>
15         </parent>
16
17         <properties>
18
19                 <!-- ==================== -->
20                 <!-- Generic properties -->
21                 <!-- ==================== -->
22                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
24                 <!-- ==================== -->
25                 <!-- Versions -->
26                 <!-- ==================== -->
27                 <!-- Global project version -->
28
29                 <!-- Dependencies projects version -->
30                 <!--<sonar.skipDesign>true</sonar.skipDesign>-->
31                 <!--<sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>-->
32                 <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
33                 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
34                 <sitePath>/content/sites/site/org/onap/sdc/jtosca/${project.version}</sitePath>
35                 <snapshots.path>snapshots</snapshots.path>
36                 <releases.path>releases</releases.path>
37                 <staging.profile.id>176c31dfe190a</staging.profile.id>
38                 <!-- Sonar properties -->
39                 <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
40                 <sonar.skipDesign>true</sonar.skipDesign>
41                 <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
42                 <sonar.sources>.</sonar.sources>
43                 <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
44                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
45                 <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions>
46                 <sonar.branch>${project.version}</sonar.branch>
47
48         </properties>
49
50         <dependencies>
51                 <!-- YAML parser -->
52                 <dependency>
53                         <groupId>org.yaml</groupId>
54                         <artifactId>snakeyaml</artifactId>
55                         <version>1.14</version>
56                         <scope>compile</scope>
57                 </dependency>
58
59                 <dependency>
60                         <groupId>org.slf4j</groupId>
61                         <artifactId>slf4j-api</artifactId>
62                         <version>1.7.25</version>
63                 </dependency>
64
65                 <!-- <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId>
66             <version>1.1.2</version> <scope>test</scope> </dependency> -->
67
68                 <dependency>
69                         <groupId>junit</groupId>
70                         <artifactId>junit</artifactId>
71                         <version>4.12</version>
72                         <scope>test</scope>
73                 </dependency>
74
75                 <dependency>
76                         <groupId>com.opencsv</groupId>
77                         <artifactId>opencsv</artifactId>
78                         <version>3.10</version>
79                         <scope>test</scope>
80                 </dependency>
81
82                 <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-io -->
83                 <dependency>
84                         <groupId>org.apache.commons</groupId>
85                         <artifactId>commons-io</artifactId>
86                         <version>1.3.2</version>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>org.reflections</groupId>
91                         <artifactId>reflections</artifactId>
92                         <version>0.9.11</version>
93                         <exclusions>
94                                 <exclusion>  <!-- declare the exclusion here -->
95                                         <groupId>com.google.guava</groupId>
96                                         <artifactId>guava</artifactId>
97                                 </exclusion>
98                         </exclusions>
99                 </dependency>
100                 <dependency>
101                         <groupId>com.google.guava</groupId>
102                         <artifactId>guava</artifactId>
103                         <scope>compile</scope>
104                         <version>25.1-jre</version>
105                 </dependency>
106
107         </dependencies>
108
109         <reporting>
110                 <plugins>
111
112                         <plugin>
113                                 <groupId>org.apache.maven.plugins</groupId>
114                                 <artifactId>maven-javadoc-plugin</artifactId>
115                                 <version>2.10.4</version>
116                                 <configuration>
117                                         <failOnError>false</failOnError>
118                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
119                                         <docletArtifact>
120                                                 <groupId>org.umlgraph</groupId>
121                                                 <artifactId>umlgraph</artifactId>
122                                                 <version>5.6</version>
123                                         </docletArtifact>
124                                         <additionalparam>-views</additionalparam>
125                                         <useStandardDocletOptions>true</useStandardDocletOptions>
126                                 </configuration>
127                         </plugin>
128                 </plugins>
129         </reporting>
130
131         <build>
132                 <plugins>
133                         <plugin>
134                                 <artifactId>maven-checkstyle-plugin</artifactId>
135                                 <version>2.17</version>
136                                 <configuration>
137                                         <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
138                                         <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
139                                 </configuration>
140                         </plugin>
141                         <plugin>
142                                 <groupId>org.apache.maven.plugins</groupId>
143                                 <artifactId>maven-site-plugin</artifactId>
144                                 <version>3.4</version>
145                                 <dependencies>
146                                         <dependency>
147                                                 <groupId>org.apache.maven.wagon</groupId>
148                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
149                                                 <version>2.10</version>
150                                         </dependency>
151                                 </dependencies>
152                         </plugin>
153
154                         <plugin>
155                                 <groupId>org.jacoco</groupId>
156                                 <artifactId>jacoco-maven-plugin</artifactId>
157                                 <version>0.7.8</version>
158                                 <executions>
159                                         <!-- Unit-Tests -->
160                                         <execution>
161                                                 <id>prepare-agent</id>
162                                                 <goals>
163                                                         <goal>prepare-agent</goal>
164                                                 </goals>
165                                                 <configuration>
166                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
167                                                 </configuration>
168                                         </execution>
169                                 </executions>
170                         </plugin>
171
172                         <!-- Staging Plugin -->
173                         <plugin>
174                                 <groupId>org.sonatype.plugins</groupId>
175                                 <artifactId>nexus-staging-maven-plugin</artifactId>
176                                 <version>1.6.7</version>
177                                 <extensions>true</extensions>
178                                 <configuration>
179                                         <nexusUrl>${nexus.proxy}</nexusUrl>
180                                         <stagingProfileId>${staging.profile.id}</stagingProfileId>
181                                         <serverId>onap-staging</serverId>
182                                 </configuration>
183                         </plugin>
184
185                         <plugin>
186                                 <groupId>org.apache.maven.plugins</groupId>
187                                 <artifactId>maven-compiler-plugin</artifactId>
188                                 <version>2.5.1</version>
189                                 <inherited>true</inherited>
190                                 <configuration>
191                                         <source>1.8</source>
192                                         <target>1.8</target>
193                                 </configuration>
194                         </plugin>
195                         <plugin>
196                                 <groupId>org.apache.maven.plugins</groupId>
197                                 <artifactId>maven-javadoc-plugin</artifactId>
198                                 <version>2.10.3</version>
199                                 <configuration/>
200                         </plugin>
201                         <!-- Test -->
202                         <plugin>
203                                 <groupId>org.apache.maven.plugins</groupId>
204                                 <artifactId>maven-surefire-plugin</artifactId>
205                                 <version>2.19.1</version>
206                                 <configuration>
207                                         <includes>
208                                                 <include>*/*</include>
209                                         </includes>
210                                 </configuration>
211                         </plugin>
212                         <plugin>
213                                 <groupId>org.sonarsource.scanner.maven</groupId>
214                                 <artifactId>sonar-maven-plugin</artifactId>
215                                 <version>3.0.2</version>
216                         </plugin>
217                         <plugin>
218                                 <groupId>com.github.sylvainlaurent.maven</groupId>
219                                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
220                                 <version>1.0.1</version>
221                                 <executions>
222                                         <execution>
223                                                 <id>validate</id>
224                                                 <phase>validate</phase>
225                                                 <goals>
226                                                         <goal>validate</goal>
227                                                 </goals>
228                                                 <configuration>
229                                                         <validationSets>
230                                                                 <validationSet>
231                                                                         <includes>
232                                                                                 <include>src/main/resources/**/*.y*ml</include>
233                                                                                 <include>src/test/resources/**/*.y*ml</include>
234                                                                         </includes>
235                                                                 </validationSet>
236                                                                 <validationSet>
237                                                                         <includes>
238                                                                                 <include>src/main/resources/**/*.json</include>
239                                                                                 <include>src/test/resources/**/*.json</include>
240                                                                         </includes>
241                                                                 </validationSet>
242                                                         </validationSets>
243                                                 </configuration>
244                                         </execution>
245                                 </executions>
246                         </plugin>
247                 </plugins>
248         </build>
249
250         <repositories>
251                 <repository>
252                         <id>central</id>
253                         <name>Official Maven repository</name>
254                         <url>http://repo2.maven.org/maven2/</url>
255                 </repository>
256                 <repository>
257                         <id>onap-releases</id>
258                         <name>Release Repository</name>
259                         <url>${nexus.proxy}/content/repositories/releases/</url>
260                 </repository>
261                 <repository>
262                         <id>onap-snapshots</id>
263                         <name>Snapshots Repository</name>
264                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
265                 </repository>
266         </repositories>
267
268         <distributionManagement>
269                 <repository>
270                         <id>onap-releases</id>
271                         <name>Release Repository</name>
272                         <url>${nexus.proxy}/content/repositories/${releases.path}/</url>
273                 </repository>
274                 <snapshotRepository>
275                         <id>onap-snapshots</id>
276                         <name>Snapshot Repository</name>
277                         <url>${nexus.proxy}/content/repositories/${snapshots.path}/</url>
278                 </snapshotRepository>
279                 <site>
280                         <id>onap-site</id>
281                         <url>dav:${nexus.proxy}${sitePath}</url>
282                 </site>
283         </distributionManagement>
284
285 </project>