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