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