16a63395ccb2c3d28c55f4aca840a22cebed8db1
[policy/drools-applications.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   drools-pdp-apps
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/xsd/maven-4.0.0.xsd">
23
24         <modelVersion>4.0.0</modelVersion>
25
26         <groupId>org.openecomp.policy.drools-applications</groupId>
27         <artifactId>drools-pdp-apps</artifactId>
28         <version>1.1.0-SNAPSHOT</version>
29
30         <name>Policy Engine - Drools PDP Application Models</name>
31         <packaging>pom</packaging>
32
33         <properties>
34                 <maven.compiler.source>1.8</maven.compiler.source>
35                 <maven.compiler.target>1.8</maven.compiler.target>
36                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37                 <project.source.version>1.8</project.source.version>
38                 <project.target.version>1.8</project.target.version>
39                 <nexusproxy>https://nexus.onap.org</nexusproxy>
40                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
41                 <releases.path>content/repositories/releases/</releases.path>
42                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
43                 <staging.path>content/repositories/staging/</staging.path>
44         </properties>
45
46         <repositories>
47                 <repository>
48                         <id>ecomp-releases</id>
49                         <name>OpenECOMP Release Repository</name>
50                         <url>${nexusproxy}/${releases.path}</url>
51                 </repository>
52                 <repository>
53                         <id>ecomp-staging</id>
54                         <name>OpenECOMP Staging Repository</name>
55                         <url>${nexusproxy}/${staging.path}</url>
56                 </repository>
57                 <repository>
58                         <id>ecomp-snapshots</id>
59                         <name>OpenECOMP Snapshot Repository</name>
60                         <url>${nexusproxy}/${snapshots.path}</url>
61                 </repository>
62         </repositories>
63
64         <build>
65                 <plugins>
66                         <plugin>
67                                 <groupId>org.sonatype.plugins</groupId>
68                                 <artifactId>nexus-staging-maven-plugin</artifactId>
69                                 <version>1.6.7</version>
70                                 <extensions>true</extensions>
71                                 <configuration>
72                                         <nexusUrl>${nexusproxy}</nexusUrl>
73                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
74                                         <serverId>ecomp-staging</serverId>
75                                 </configuration>
76                         </plugin>
77                         <plugin>
78                                 <groupId>org.apache.maven.plugins</groupId>
79                                 <artifactId>maven-deploy-plugin</artifactId>
80                                 <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
81                                 <configuration>
82                                         <skip />
83                                 </configuration>
84                         </plugin>
85                         <plugin>
86                                 <groupId>org.apache.maven.plugins</groupId>
87                                 <artifactId>maven-compiler-plugin</artifactId>
88                                 <version>3.0</version>
89                                 <configuration>
90                                         <encoding>${project.encoding}</encoding>
91                                         <source>${project.source.version}</source>
92                                         <target>${project.target.version}</target>
93                                 </configuration>
94                         </plugin>
95             <!--
96
97                 license plugin
98
99                  Run
100
101                      mvn clean
102
103                  before running from the command line
104
105                      mvn license:update-file-header
106
107             -->
108
109             <plugin>
110
111                 <groupId>org.codehaus.mojo</groupId>
112
113                 <artifactId>license-maven-plugin</artifactId>
114
115                 <version>1.9</version>
116
117                 <configuration>
118
119                     <extraExtensions>
120
121                         <!-- Used to add or change the header style <fileTypeYouAreMapping>
122
123                             fileTypeMappedInto </fileTypeYouAreMapping> -->
124                         
125                         <!-- Since it appears that comments in .json files are, at best, 
126                                 iffy, you should remove the license headers from those files or
127                                 you can list each individual file to be ignored in the ignore
128                                 section below -->
129
130                         <drl>java</drl>
131
132                         <ccf>properties</ccf>
133
134  
135
136                         <!-- Because the typical sql comment type confuses the update algorithm -->
137
138                         <sql>java</sql>
139                         
140                         <!-- yaml files are generated, but some are included -->
141                         
142                         <yaml>properties</yaml>
143
144                     </extraExtensions>
145
146                     <licenseName>apache_v2</licenseName>
147
148  
149
150                     <inceptionYear>2017</inceptionYear>
151
152                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
153
154  
155
156                     <!-- Once you have established the tags and delimiter, they cannot be
157
158                         changed -->
159
160                     <processStartTag>============LICENSE_START=======================================================</processStartTag>
161
162                     <processEndTag>============LICENSE_END=========================================================</processEndTag>
163
164                     <sectionDelimiter>================================================================================</sectionDelimiter>
165
166                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
167
168                     <canUpdateCopyright>true</canUpdateCopyright>
169
170                     <canUpdateDescription>true</canUpdateDescription>
171
172                     <canUpdateLicense>true</canUpdateLicense>
173
174                     <emptyLineAfterHeader>true</emptyLineAfterHeader>
175
176                     <roots>
177
178                         <!-- Default is src, target/generated-sources, target/processed-sources -->
179
180  
181
182                         <!-- Everything except the files in the excludes section -->
183
184                         <root>/</root>
185
186                     </roots>
187
188                     <excludes>
189
190                         <!-- Files which are to be excluded. The pom.xml is excluded because
191
192                             the start/end tags and the delimiters are in the body of the file. This confuses
193
194                             the algorithm. So, this file must be manually updated with a license header. -->
195
196                         <exclude>pom.xml</exclude>
197
198                     </excludes>
199
200                 </configuration>
201
202             </plugin>                   
203
204                 <plugin>
205                   <groupId>org.apache.maven.plugins</groupId>
206                   <artifactId>maven-site-plugin</artifactId>
207                   <version>3.6</version>
208                   <dependencies>
209                     <dependency>
210                       <groupId>org.apache.maven.wagon</groupId>
211                       <artifactId>wagon-webdav-jackrabbit</artifactId>
212                       <version>2.10</version>
213                     </dependency>
214                   </dependencies>
215                 </plugin>
216
217             </plugins>
218         </build>
219
220         <modules>
221                 <module>rest</module>
222                 <module>aai</module>
223                 <module>appc</module>
224                 <module>controlloop</module>
225                 <module>mso</module>
226                 <module>sdnc</module>
227                 <module>trafficgenerator</module>
228                 <module>template.demo</module>
229                 <module>vfwsim</module>
230                 <module>archetype-closedloop-demo-rules</module>
231                 <module>packages</module>
232         </modules>
233
234
235         <distributionManagement>
236                 <repository>
237                         <id>ecomp-releases</id>
238                         <name>OpenECOMP Release Repository</name>
239                         <url>${nexusproxy}/${releases.path}</url>
240                 </repository>
241                 <snapshotRepository>
242                         <id>ecomp-snapshots</id>
243                         <name>OpenECOMP Snapshot Repository</name>
244                         <url>${nexusproxy}/${snapshots.path}</url>
245                 </snapshotRepository>
246                 <site>
247                         <id>ecomp-site</id>
248                         <url>dav:${nexusproxy}${sitePath}</url>
249                 </site>
250
251         </distributionManagement>
252
253         <reporting>
254           <plugins>
255             <plugin>
256               <groupId>org.apache.maven.plugins</groupId>
257               <artifactId>maven-javadoc-plugin</artifactId>
258               <version>2.10.4</version>
259               <configuration>
260                 <failOnError>false</failOnError>
261                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
262                 <docletArtifact>
263                   <groupId>org.umlgraph</groupId>
264                   <artifactId>umlgraph</artifactId>
265                   <version>5.6</version>
266                 </docletArtifact>
267                 <additionalparam>-views</additionalparam>
268                 <useStandardDocletOptions>true</useStandardDocletOptions>
269               </configuration>
270             </plugin>
271           </plugins>
272         </reporting>
273 </project>