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