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