1.1.0-SNAPSHOT
[policy/drools-pdp.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ECOMP Policy Engine - Drools PDP
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19   -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23         <modelVersion>4.0.0</modelVersion>
24
25         <groupId>org.openecomp.policy.drools-pdp</groupId>
26         <artifactId>drools-pdp</artifactId>
27         <version>1.1.0-SNAPSHOT</version>
28         <packaging>pom</packaging>
29         <name>ECOMP Policy Engine - Drools PDP</name>
30
31         <description>The ECOMP Policy Engine drools-based PDP Project</description>
32
33         <properties>
34                 <maven.compiler.source>1.8</maven.compiler.source>
35                 <maven.compiler.target>1.8</maven.compiler.target>
36
37                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38                 <project.source.version>1.8</project.source.version>
39                 <project.target.version>1.8</project.target.version>
40                 <common-modules.version>1.1.0-SNAPSHOT</common-modules.version>
41   
42                 <sonar.language>java</sonar.language>
43                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
44                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
45                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
46                 <sonar.jacoco.itReportPath>/opt/app/jacoco-it.exec</sonar.jacoco.itReportPath>
47                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
48                 <nexusproxy>https://nexus.openecomp.org</nexusproxy>
49         </properties>
50
51         <modules>
52                 <module>policy-utils</module>
53                 <module>policy-core</module>
54                 <module>policy-endpoints</module>
55                 <module>policy-management</module>
56                 <module>policy-persistence</module>
57                 <module>policy-healthcheck</module>
58                 <module>packages</module>
59         </modules>
60
61         <repositories>
62                 <repository>
63                         <id>central</id>
64                         <name>Maven 2 repository</name>
65                         <url>http://repo2.maven.org/maven2/</url>
66                 </repository>
67
68                 <repository>
69                   <id>eclipse</id>
70                   <url>https://repo.eclipse.org/content/repositories/releases</url>
71                   <releases>
72                     <enabled>true</enabled>
73                     <updatePolicy>daily</updatePolicy>
74                   </releases>
75                   <snapshots>
76                     <enabled>false</enabled>
77                   </snapshots>
78                 </repository>
79
80                 <repository>
81                         <id>soapUI</id>
82                         <url>http://www.soapui.org/repository/maven2/</url>
83                         <name>SoapUI plugin</name>
84                 </repository>
85                 <repository>
86                         <id>ecomp-releases</id>
87                         <name>OpenECOMP Release Repository</name>
88                         <url>${nexusproxy}/content/repositories/releases/</url>
89                 </repository>
90                 <repository>
91                         <id>ecomp-staging</id>
92                         <name>OpenECOMP Staging Repository</name>
93                         <url>${nexusproxy}/content/repositories/staging/</url>
94                 </repository>
95         </repositories>
96
97         <distributionManagement>
98                 <repository>
99                         <id>ecomp-releases</id>
100                         <name>OpenECOMP Release Repository</name>
101                         <url>${nexusproxy}/content/repositories/releases/</url>
102                 </repository>
103                 <snapshotRepository>
104                         <id>ecomp-snapshots</id>
105                         <name>OpenECOMP Snapshot Repository</name>
106                         <url>${nexusproxy}/content/repositories/snapshots/</url>
107                 </snapshotRepository>
108                 <site>
109                         <id>ecomp-javadoc</id>
110                         <url>dav:https://ecomp-nexus:8443/repository/policy-javadoc/${project.version}</url>
111                 </site>
112         </distributionManagement>
113
114         <dependencies>
115
116         </dependencies>
117
118         <build>
119                 <plugins>
120                         <plugin>
121                                 <groupId>org.sonatype.plugins</groupId>
122                                 <artifactId>nexus-staging-maven-plugin</artifactId>
123                                 <version>1.6.7</version>
124                                 <extensions>true</extensions>
125                                 <configuration>
126                                         <nexusUrl>${nexusproxy}</nexusUrl>
127                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
128                                         <serverId>ecomp-staging</serverId>
129                                 </configuration>
130                         </plugin>
131                         <plugin>
132                                 <groupId>org.apache.maven.plugins</groupId>
133                                 <artifactId>maven-deploy-plugin</artifactId>
134                                 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
135                                 <configuration>
136                                         <skip />
137                                 </configuration>
138                         </plugin>
139                         <plugin>
140                                 <groupId>org.apache.maven.plugins</groupId>
141                                 <artifactId>maven-compiler-plugin</artifactId>
142                                 <version>3.0</version>
143                                 <configuration>
144                                         <encoding>${project.encoding}</encoding>
145                                         <source>${project.source.version}</source>
146                                         <target>${project.target.version}</target>
147                                 </configuration>
148                         </plugin>
149                         <plugin>
150                                 <groupId>org.apache.maven.plugins</groupId>
151                                 <artifactId>maven-resources-plugin</artifactId>
152                                 <version>2.6</version>
153                                 <configuration>
154                                         <encoding>${project.encoding}</encoding>
155                                 </configuration>
156                         </plugin>
157                         <!-- 
158                                 license plugin
159                              Run 
160                                 mvn clean 
161                              before running from the command line
162                                 mvn license:update-file-header
163                         -->
164                         <plugin>
165                                 <groupId>org.codehaus.mojo</groupId>
166                                 <artifactId>license-maven-plugin</artifactId>
167                                 <version>1.9</version>
168                                 <configuration>
169                                         <extraExtensions>
170                                                 <!-- Used to add or change the header style <fileTypeYouAreMapping> 
171                                                         fileTypeMappedInto </fileTypeYouAreMapping> -->
172                                                 <drl>java</drl>
173                                                 <ccf>properties</ccf>
174
175                                                 <!-- Because the typical sql comment type confuses the update algorithm -->
176                                                 <sql>java</sql>
177                                         </extraExtensions>
178                                         <licenseName>apache_v2</licenseName>
179
180                                         <inceptionYear>2017</inceptionYear>
181                                         <organizationName>AT&amp;T Intellectual Property. All rights 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                 </plugins>
208                 <pluginManagement>
209                         <plugins>
210                                 <plugin>
211                                         <groupId>org.jacoco</groupId>
212                                         <artifactId>jacoco-maven-plugin</artifactId>
213                                         <version>0.7.5.201505241946</version>
214                                         <configuration>
215                                                 <dumpOnExit>true</dumpOnExit>
216                                                 <includes>
217                                                         <include>org.openecomp.*</include>
218                                                 </includes>
219                                         </configuration>
220                                         <executions>
221                                                 <execution>
222                                                         <id>jacoco-initialize-unit-tests</id>
223                                                         <goals>
224                                                                 <goal>prepare-agent</goal>
225                                                         </goals>
226                                                         <configuration>
227                                                                 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
228                                                         </configuration>
229                                                 </execution>
230                                         </executions>
231                                 </plugin>
232                         </plugins>
233                 </pluginManagement>
234         </build>
235 </project>