Surefire configuration fix for coverage
[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.skipDesign>true</sonar.skipDesign>-->
41     <!--<sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>-->
42     <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
43     <nexus.proxy>https://nexus.onap.org</nexus.proxy>
44     <sitePath>/content/sites/site/org/onap/sdc/sdc-tosca/${project.version}</sitePath>
45     <snapshots.path>snapshots</snapshots.path>
46     <releases.path>releases</releases.path>
47     <!-- Sonar properties -->
48     <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
49     <sonar.skipDesign>true</sonar.skipDesign>
50     <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
51     <sonar.sources>.</sonar.sources>
52     <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
53     <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
54     <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java
55     </sonar.inclusions>
56     <sonar.branch>${project.version}</sonar.branch>
57
58   </properties>
59
60   <dependencies>
61     <dependency>
62       <groupId>org.slf4j</groupId>
63       <artifactId>slf4j-api</artifactId>
64       <version>1.7.25</version>
65     </dependency>
66
67     <dependency>
68       <groupId>junit</groupId>
69       <artifactId>junit</artifactId>
70       <version>4.12</version>
71       <scope>test</scope>
72     </dependency>
73
74     <dependency>
75       <groupId>com.google.guava</groupId>
76       <artifactId>guava</artifactId>
77       <scope>compile</scope>
78       <version>25.1-jre</version>
79     </dependency>
80
81     <!-- YAML parser -->
82     <dependency>
83       <groupId>org.yaml</groupId>
84       <artifactId>snakeyaml</artifactId>
85       <version>1.14</version>
86       <scope>compile</scope>
87     </dependency>
88
89   </dependencies>
90
91   <reporting>
92     <plugins>
93       <plugin>
94         <groupId>org.apache.maven.plugins</groupId>
95         <artifactId>maven-javadoc-plugin</artifactId>
96         <version>2.10.4</version>
97         <configuration>
98           <failOnError>false</failOnError>
99           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
100           <docletArtifact>
101             <groupId>org.umlgraph</groupId>
102             <artifactId>umlgraph</artifactId>
103             <version>5.6</version>
104           </docletArtifact>
105           <additionalparam>-views</additionalparam>
106           <useStandardDocletOptions>true</useStandardDocletOptions>
107         </configuration>
108       </plugin>
109     </plugins>
110   </reporting>
111
112   <build>
113     <plugins>
114       <plugin>
115         <groupId>org.apache.maven.plugins</groupId>
116         <artifactId>maven-site-plugin</artifactId>
117         <version>3.4</version>
118         <dependencies>
119           <dependency>
120             <groupId>org.apache.maven.wagon</groupId>
121             <artifactId>wagon-webdav-jackrabbit</artifactId>
122             <version>2.10</version>
123           </dependency>
124         </dependencies>
125       </plugin>
126
127       <plugin>
128         <artifactId>maven-checkstyle-plugin</artifactId>
129         <version>2.17</version>
130         <configuration>
131           <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
132           <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
133         </configuration>
134       </plugin>
135
136       <plugin>
137         <groupId>org.jacoco</groupId>
138         <artifactId>jacoco-maven-plugin</artifactId>
139         <version>0.7.8</version>
140         <executions>
141           <!-- Unit-Tests -->
142           <execution>
143             <id>prepare-agent</id>
144             <goals>
145               <goal>prepare-agent</goal>
146             </goals>
147             <configuration>
148                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
149             </configuration>
150           </execution>
151         </executions>
152       </plugin>
153
154       <plugin>
155         <groupId>org.apache.maven.plugins</groupId>
156         <artifactId>maven-compiler-plugin</artifactId>
157         <version>2.5.1</version>
158         <inherited>true</inherited>
159         <configuration>
160           <source>1.8</source>
161           <target>1.8</target>
162         </configuration>
163       </plugin>
164       <plugin>
165         <groupId>org.apache.maven.plugins</groupId>
166         <artifactId>maven-javadoc-plugin</artifactId>
167         <version>2.10.3</version>
168         <configuration/>
169       </plugin>
170       <!-- Test -->
171       <plugin>
172         <groupId>org.apache.maven.plugins</groupId>
173         <artifactId>maven-surefire-plugin</artifactId>
174         <version>2.19.1</version>
175         <configuration>
176           <argLine>${argLine} -Xmx2048m</argLine>
177         </configuration>
178       </plugin>
179
180       <plugin>
181         <groupId>org.sonarsource.scanner.maven</groupId>
182         <artifactId>sonar-maven-plugin</artifactId>
183         <version>3.0.2</version>
184       </plugin>
185
186       <plugin>
187         <groupId>com.github.sylvainlaurent.maven</groupId>
188         <artifactId>yaml-json-validator-maven-plugin</artifactId>
189         <version>1.0.1</version>
190         <executions>
191           <execution>
192             <id>validate</id>
193             <phase>validate</phase>
194             <goals>
195               <goal>validate</goal>
196             </goals>
197             <configuration>
198               <validationSets>
199                 <validationSet>
200                   <includes>
201                     <include>src/main/resources/**/*.y*ml</include>
202                     <include>src/test/resources/**/*.y*ml</include>
203                   </includes>
204                 </validationSet>
205                 <validationSet>
206                   <includes>
207                     <include>src/main/resources/**/*.json</include>
208                     <include>src/test/resources/**/*.json</include>
209                   </includes>
210                 </validationSet>
211               </validationSets>
212             </configuration>
213           </execution>
214         </executions>
215       </plugin>
216     </plugins>
217   </build>
218
219   <repositories>
220     <repository>
221       <id>central</id>
222       <name>Official Maven repository</name>
223       <url>http://repo2.maven.org/maven2/</url>
224     </repository>
225     <repository>
226       <id>ecomp-releases</id>
227       <name>Release Repository</name>
228       <url>${nexus.proxy}/content/repositories/releases/</url>
229     </repository>
230     <repository>
231       <id>ecomp-snapshots</id>
232       <name>Snapshots Repository</name>
233       <url>${nexus.proxy}/content/repositories/snapshots/</url>
234     </repository>
235   </repositories>
236
237   <distributionManagement>
238     <repository>
239       <id>ecomp-releases</id>
240       <name>Release Repository</name>
241       <url>${nexus.proxy}/content/repositories/${releases.path}/</url>
242     </repository>
243     <snapshotRepository>
244       <id>ecomp-snapshots</id>
245       <name>Snapshot Repository</name>
246       <url>${nexus.proxy}/content/repositories/${snapshots.path}/</url>
247     </snapshotRepository>
248     <site>
249       <id>ecomp-site</id>
250       <url>dav:${nexus.proxy}${sitePath}</url>
251     </site>
252   </distributionManagement>
253 </project>