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