c1e0ccce55af25229163de0f0cb71f2551347556
[policy/engine.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/maven-v4_0_0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <groupId>org.openecomp.policy.engine</groupId>
6         <artifactId>PolicyEngineSuite</artifactId>
7         <version>1.1.0-SNAPSHOT</version>
8         <packaging>pom</packaging>
9         <name>ECOMP Policy Engine</name>
10
11         <description>The ECOMP Policy Engine main pom</description>
12
13         <properties>
14                 <maven.compiler.source>1.8</maven.compiler.source>
15                 <maven.compiler.target>1.8</maven.compiler.target>
16
17                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18
19                 <!-- from vaadin-test -->
20                 <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
21                 <project.source.version>1.8</project.source.version>
22                 <project.target.version>1.8</project.target.version>
23                 <project.encoding>UTF-8</project.encoding>
24                 <!-- end -->
25
26                 <sonar.language>java</sonar.language>
27                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
28                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
29                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
30                 <sonar.jacoco.itReportPath>/opt/app/policy/it-results/jacoco-it.exec</sonar.jacoco.itReportPath>
31                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
32                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
33                 <common-modules.version>1.1.0-SNAPSHOT</common-modules.version>
34                 <nexusproxy>https://nexus.onap.org</nexusproxy>
35                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
36                 <releases.path>content/repositories/releases/</releases.path>
37                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
38                 <staging.path>content/repositories/staging/</staging.path>
39         </properties>
40
41
42         <modules>
43                 <module>ECOMP-XACML</module>
44                 <module>ECOMP-REST</module>
45                 <module>ECOMP-PDP</module>
46                 <module>ECOMP-PDP-REST</module>
47                 <module>ECOMP-PAP-REST</module>
48                 <module>ECOMP-TEST</module>
49                 <module>LogParser</module>
50                 <module>PolicyEngineClient</module>
51                 <module>PolicyEngineUtils</module>
52                 <module>PolicyEngineAPI</module>
53                 <module>PyPDPServer</module>
54                 <module>BRMSGateway</module>
55                 <module>ecomp-sdk-app</module>
56                 <module>packages</module>
57         </modules>
58
59         <repositories>
60                 <repository>
61                         <id>central</id>
62                         <name>Maven 2 repository</name>
63                         <url>http://repo2.maven.org/maven2/</url>
64                 </repository>
65                 <repository>
66                         <id>soapUI</id>
67                         <url>http://www.soapui.org/repository/maven2/</url>
68                         <name>SoapUI plugin</name>
69                 </repository>
70                 <repository>
71                         <id>ecomp-releases</id>
72                         <name>OpenECOMP Release Repository</name>
73                         <url>${nexusproxy}/${releases.path}/</url>
74                 </repository>
75                 <repository>
76                         <id>ecomp-staging</id>
77                         <name>OpenECOMP Staging Repository</name>
78                         <url>${nexusproxy}/${staging.path}</url>
79                 </repository>
80                 <repository>
81                         <id>ecomp-snapshots</id>
82                         <name>OpenECOMP Snapshot Repository</name>
83                         <url>${nexusproxy}/${snapshots.path}</url>
84                 </repository>
85         </repositories>
86
87         <distributionManagement>
88                 <repository>
89                         <id>ecomp-releases</id>
90                         <name>OpenECOMP Release Repository</name>
91                         <url>${nexusproxy}/${releases.path}</url>
92                 </repository>
93                 <snapshotRepository>
94                         <id>ecomp-snapshots</id>
95                         <name>OpenECOMP Snapshot Repository</name>
96                         <url>${nexusproxy}/${snapshots.path}</url>
97                 </snapshotRepository>
98                 <site>
99                         <id>ecomp-site</id>
100                         <url>dav:${nexusproxy}${sitePath}</url>
101                 </site>
102         </distributionManagement>
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         <dependencies>
126
127                 <dependency>
128                         <groupId>javax.servlet</groupId>
129                         <artifactId>javax.servlet-api</artifactId>
130                         <version>3.0.1</version>
131                         <!-- <scope>provided</scope> -->
132                 </dependency>
133                 <dependency>
134                         <!-- org.w3c.dom dependencies -->
135                         <groupId>xml-apis</groupId>
136                         <artifactId>xml-apis</artifactId>
137                         <version>1.3.03</version>
138                 </dependency>
139         </dependencies>
140
141         <build>
142                 <plugins>
143                         <plugin>
144                                 <groupId>org.sonatype.plugins</groupId>
145                                 <artifactId>nexus-staging-maven-plugin</artifactId>
146                                 <version>1.6.7</version>
147                                 <extensions>true</extensions>
148                                 <configuration>
149                                         <nexusUrl>${nexusproxy}</nexusUrl>
150                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
151                                         <serverId>ecomp-staging</serverId>
152                                 </configuration>
153                         </plugin>
154                         <plugin>
155                                 <groupId>org.apache.maven.plugins</groupId>
156                                 <artifactId>maven-deploy-plugin</artifactId>
157                                 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
158                                 <configuration>
159                                         <skip />
160                                 </configuration>
161                         </plugin>
162                         <plugin>
163                                 <groupId>org.apache.maven.plugins</groupId>
164                                 <artifactId>maven-surefire-plugin</artifactId>
165                                 <version>2.19.1</version>
166                                 <configuration>
167                                         <skipTests>true</skipTests>
168                                 </configuration>
169                         </plugin>
170                         <plugin>
171                                 <groupId>org.apache.maven.plugins</groupId>
172                                 <artifactId>maven-clean-plugin</artifactId>
173                                 <version>2.4.1</version>
174                         </plugin>
175                         <!-- license plugin Run mvn clean before running from the command line 
176                                 mvn license:update-file-header -->
177                         <plugin>
178                                 <groupId>org.codehaus.mojo</groupId>
179                                 <artifactId>license-maven-plugin</artifactId>
180                                 <version>1.9</version>
181                                 <configuration>
182                                         <extraExtensions>
183                                                 <!-- Used to add or change the header style <fileTypeYouAreMapping> 
184                                                         fileTypeMappedInto </fileTypeYouAreMapping> -->
185                                                 <drl>java</drl>
186                                                 <ccf>properties</ccf>
187
188                                                 <!-- Because the typical sql comment type confuses the update algorithm -->
189                                                 <sql>java</sql>
190                                         </extraExtensions>
191                                         <licenseName>apache_v2</licenseName>
192
193                                         <inceptionYear>2017</inceptionYear>
194                                         <organizationName>AT&amp;T Intellectual Property. All rights
195                                                 reserved.</organizationName>
196
197                                         <!-- Once you have established the tags and delimiter, they cannot be 
198                                                 changed -->
199                                         <processStartTag>============LICENSE_START=======================================================</processStartTag>
200                                         <processEndTag>============LICENSE_END=========================================================</processEndTag>
201                                         <sectionDelimiter>================================================================================</sectionDelimiter>
202                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
203                                         <canUpdateCopyright>true</canUpdateCopyright>
204                                         <canUpdateDescription>true</canUpdateDescription>
205                                         <canUpdateLicense>true</canUpdateLicense>
206                                         <emptyLineAfterHeader>true</emptyLineAfterHeader>
207                                         <roots>
208                                                 <!-- Default is src, target/generated-sources, target/processed-sources -->
209
210                                                 <!-- Everything except the files in the excludes section -->
211                                                 <root>/</root>
212                                         </roots>
213                                         <excludes>
214                                                 <!-- Files which are to be excluded. The pom.xml is excluded because 
215                                                         the start/end tags and the delimiters are in the body of the file. This confuses 
216                                                         the algorithm. So, this file must be manually updated with a license header. -->
217                                                 <exclude>pom.xml</exclude>
218                                         </excludes>
219                                 </configuration>
220                         </plugin>
221                         <plugin>
222                                 <groupId>org.apache.maven.plugins</groupId>
223                                 <artifactId>maven-compiler-plugin</artifactId>
224                                 <version>3.0</version>
225                                 <configuration>
226                                         <encoding>${project.encoding}</encoding>
227                                         <source>${project.source.version}</source>
228                                         <target>${project.target.version}</target>
229                                 </configuration>
230                         </plugin>
231                         <plugin>
232                                 <groupId>org.apache.maven.plugins</groupId>
233                                 <artifactId>maven-resources-plugin</artifactId>
234                                 <version>2.6</version>
235                                 <configuration>
236                                         <encoding>${project.encoding}</encoding>
237                                 </configuration>
238                         </plugin>
239                         <plugin>
240                                 <groupId>org.apache.maven.plugins</groupId>
241                                 <artifactId>maven-war-plugin</artifactId>
242                                 <version>2.3</version>
243                                 <configuration>
244                                         <failOnMissingWebXml>false</failOnMissingWebXml>
245                                 </configuration>
246                         </plugin>
247                         <!-- The Jetty plugin allows us to easily test the development build by 
248                                 running jetty:run on the command line. -->
249
250                         <plugin>
251                                 <groupId>org.eclipse.jetty</groupId>
252                                 <artifactId>jetty-maven-plugin</artifactId>
253                                 <version>${jetty.plugin.version}</version>
254                                 <configuration>
255                                         <scanIntervalSeconds>2</scanIntervalSeconds>
256                                 </configuration>
257                         </plugin>
258                         <plugin>
259                                 <groupId>com.fortify.ps.maven.plugin</groupId>
260                                 <artifactId>sca-maven-plugin</artifactId>
261                                 <version>4.20</version>
262                         </plugin>
263                         <plugin>
264                                 <groupId>org.jacoco</groupId>
265                                 <artifactId>jacoco-maven-plugin</artifactId>
266                                 <version>0.7.5.201505241946</version>
267                                 <configuration>
268                                         <dumpOnExit>true</dumpOnExit>
269                                         <includes>
270                                                 <include>org.openecomp.*</include>
271                                         </includes>
272                                 </configuration>
273                                 <executions>
274                                         <execution>
275                                                 <id>jacoco-initialize-unit-tests</id>
276                                                 <goals>
277                                                         <goal>prepare-agent</goal>
278                                                 </goals>
279                                                 <configuration>
280                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
281                                                 </configuration>
282                                         </execution>
283                                 </executions>
284                         </plugin>
285                         <plugin>
286                           <groupId>org.apache.maven.plugins</groupId>
287                           <artifactId>maven-site-plugin</artifactId>
288                           <version>3.6</version>
289                           <dependencies>
290                             <dependency>
291                               <groupId>org.apache.maven.wagon</groupId>
292                               <artifactId>wagon-webdav-jackrabbit</artifactId>
293                               <version>2.10</version>
294                             </dependency>
295                           </dependencies>
296                         </plugin>
297                 </plugins>
298         </build>
299 </project>