Move jTosca contents to sdc-tosca
[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           <includes>
178             <include>**/ToscaParser***Test.class</include>
179           </includes>
180         </configuration>
181       </plugin>
182
183       <plugin>
184         <groupId>org.sonarsource.scanner.maven</groupId>
185         <artifactId>sonar-maven-plugin</artifactId>
186         <version>3.0.2</version>
187       </plugin>
188
189       <plugin>
190         <groupId>com.github.sylvainlaurent.maven</groupId>
191         <artifactId>yaml-json-validator-maven-plugin</artifactId>
192         <version>1.0.1</version>
193         <executions>
194           <execution>
195             <id>validate</id>
196             <phase>validate</phase>
197             <goals>
198               <goal>validate</goal>
199             </goals>
200             <configuration>
201               <validationSets>
202                 <validationSet>
203                   <includes>
204                     <include>src/main/resources/**/*.y*ml</include>
205                     <include>src/test/resources/**/*.y*ml</include>
206                   </includes>
207                 </validationSet>
208                 <validationSet>
209                   <includes>
210                     <include>src/main/resources/**/*.json</include>
211                     <include>src/test/resources/**/*.json</include>
212                   </includes>
213                 </validationSet>
214               </validationSets>
215             </configuration>
216           </execution>
217         </executions>
218       </plugin>
219     </plugins>
220   </build>
221
222   <repositories>
223     <repository>
224       <id>central</id>
225       <name>Official Maven repository</name>
226       <url>http://repo2.maven.org/maven2/</url>
227     </repository>
228     <repository>
229       <id>ecomp-releases</id>
230       <name>Release Repository</name>
231       <url>${nexus.proxy}/content/repositories/releases/</url>
232     </repository>
233     <repository>
234       <id>ecomp-snapshots</id>
235       <name>Snapshots Repository</name>
236       <url>${nexus.proxy}/content/repositories/snapshots/</url>
237     </repository>
238   </repositories>
239
240   <distributionManagement>
241     <repository>
242       <id>ecomp-releases</id>
243       <name>Release Repository</name>
244       <url>${nexus.proxy}/content/repositories/${releases.path}/</url>
245     </repository>
246     <snapshotRepository>
247       <id>ecomp-snapshots</id>
248       <name>Snapshot Repository</name>
249       <url>${nexus.proxy}/content/repositories/${snapshots.path}/</url>
250     </snapshotRepository>
251     <site>
252       <id>ecomp-site</id>
253       <url>dav:${nexus.proxy}${sitePath}</url>
254     </site>
255   </distributionManagement>
256 </project>