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