Reducing onboarding backend maven build time
[sdc.git] / openecomp-be / tools / zusammen-tools / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5
6     <properties>
7
8         <groovy.version>2.4.7</groovy.version>
9         <janino.version>2.7.7</janino.version>
10
11     </properties>
12
13
14
15     <name>openecomp-zusammen-tools</name>
16     <dependencies>
17         <dependency>
18             <groupId>org.openecomp.sdc</groupId>
19             <artifactId>openecomp-sdc-vendor-software-product-api</artifactId>
20             <version>${project.version}</version>
21         </dependency>
22         <dependency>
23             <groupId>com.amdocs.zusammen.plugin</groupId>
24             <artifactId>zusammen-collaboration-cassandra-plugin</artifactId>
25             <version>${zusammen-collaboration-store.version}</version>
26         </dependency>
27         <dependency>
28             <groupId>org.openecomp.sdc</groupId>
29             <artifactId>openecomp-sdc-vendor-software-product-core</artifactId>
30             <version>${project.version}</version>
31         </dependency>
32         <dependency>
33             <groupId>org.openecomp.sdc</groupId>
34             <artifactId>openecomp-sdc-vendor-license-api</artifactId>
35             <version>${project.version}</version>
36         </dependency>
37         <dependency>
38             <groupId>org.openecomp.sdc</groupId>
39             <artifactId>openecomp-sdc-model-impl</artifactId>
40             <version>${project.version}</version>
41         </dependency>
42         <dependency>
43             <groupId>org.openecomp.sdc.core</groupId>
44             <artifactId>openecomp-zusammen-core</artifactId>
45             <version>${project.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>com.amdocs.zusammen.plugin</groupId>
49             <artifactId>zusammen-state-store-cassandra-plugin</artifactId>
50               <version>${zusammen-state-store.version}</version>
51         </dependency>
52         <dependency>
53             <groupId>org.hibernate</groupId>
54             <artifactId>hibernate-validator</artifactId>
55             <version>${hibernate.validator.version}</version>
56         </dependency>
57         <dependency>
58             <groupId>org.openecomp.sdc</groupId>
59             <artifactId>openecomp-sdc-vendor-license-core</artifactId>
60             <version>${project.version}</version>
61         </dependency>
62         <dependency>
63             <groupId>org.openecomp.sdc</groupId>
64             <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
65             <version>${project.version}</version>
66         </dependency>
67     </dependencies>
68     <artifactId>openecomp-zusammen-tools</artifactId>
69     <groupId>org.openecomp.sdc.core.tools</groupId>
70     <version>1.2.0-SNAPSHOT</version>
71     <parent>
72         <groupId>org.openecomp.sdc</groupId>
73         <artifactId>openecomp-sdc-lib</artifactId>
74         <relativePath>../../lib</relativePath>
75         <version>1.2.0-SNAPSHOT</version>
76     </parent>
77     <!--parent>
78         <groupId>org.openecomp.sdc</groupId>
79         <artifactId>openecomp-sdc</artifactId>
80         <version>1.0-SNAPSHOT</version>
81     </parent-->
82     <build>
83         <plugins>
84
85             <plugin>
86                 <groupId>org.codehaus.mojo</groupId>
87                 <artifactId>license-maven-plugin</artifactId>
88                 <version>1.10</version>
89                 <configuration>
90                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
91                     <processStartTag>
92                         ============LICENSE_START=======================================================
93                     </processStartTag>
94                     <processEndTag>
95                         ============LICENSE_END=========================================================
96                     </processEndTag>
97                     <sectionDelimiter>
98                         ================================================================================
99                     </sectionDelimiter>
100                     <licenseName>apache_v2</licenseName>
101                     <inceptionYear>2017</inceptionYear>
102                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.
103                     </organizationName>
104                     <projectName>SDC</projectName>
105                     <canUpdateCopyright>true</canUpdateCopyright>
106                     <canUpdateDescription>true</canUpdateDescription>
107                     <canUpdateLicense>true</canUpdateLicense>
108                     <emptyLineAfterHeader>true</emptyLineAfterHeader>
109                     <verbose>false</verbose>
110                     <includes>
111                         <include>**/*.java</include>
112                         <include>**/*.js</include>
113                         <include>**/*.ts</include>
114                     </includes>
115                     <roots>
116                         <root>src</root>
117                         <root>app</root>
118                         <root>server-mock</root>
119                         <root>typings</root>
120                     </roots>
121                 </configuration>
122                 <executions>
123                     <execution>
124                         <id>first</id>
125                         <goals>
126                             <goal>update-file-header</goal>
127                         </goals>
128                         <!--phase>process-sources</phase-->
129                     </execution>
130                 </executions>
131             </plugin>
132
133
134             <plugin>
135                 <groupId>org.apache.maven.plugins</groupId>
136                 <artifactId>maven-dependency-plugin</artifactId>
137                 <version>2.8</version>
138                 <executions>
139                     <execution>
140                         <id>copy-dependencies</id>
141                         <phase>install</phase>
142                         <goals>
143                             <goal>copy-dependencies</goal>
144                         </goals>
145                         <configuration>
146                             <outputDirectory>${project.build.directory}/lib</outputDirectory>
147                             <overWriteReleases>false</overWriteReleases>
148                             <overWriteSnapshots>false</overWriteSnapshots>
149                             <overWriteIfNewer>true</overWriteIfNewer>
150                             <!--includeScope>runtime</includeScope-->
151                         </configuration>
152                     </execution>
153                 </executions>
154             </plugin>
155
156             <plugin>
157                 <groupId>org.apache.maven.plugins</groupId>
158                 <artifactId>maven-jar-plugin</artifactId>
159                 <version>2.4</version>
160                 <executions>
161                     <execution>
162                         <phase>package</phase>
163                     </execution>
164                 </executions>
165                 <configuration>
166                     <archive>
167                         <manifest>
168                             <addClasspath>true</addClasspath>
169                             <classpathLayoutType>custom</classpathLayoutType>
170                             <customClasspathLayout>
171                                 lib/${artifact.artifactId}-${baseVersion}.${artifact.extension}
172                             </customClasspathLayout>
173                             <mainClass>org.openecomp.core.tools.main.ZusammenMainTool
174                             </mainClass>
175                         </manifest>
176                         <manifestEntries>
177                             <Class-Path>lib/</Class-Path>
178                         </manifestEntries>
179                     </archive>
180                 </configuration>
181             </plugin>
182
183             <plugin>
184                 <groupId>org.apache.maven.plugins</groupId>
185                 <artifactId>maven-antrun-plugin</artifactId>
186                 <executions>
187                     <execution>
188                         <id>ant-test</id>
189                         <phase>package</phase>
190                         <configuration>
191                             <tasks>
192                                 <fixcrlf srcdir="./" eol="unix"
193                                          includes="zusammenMainTool.sh"/>
194                             </tasks>
195                             <tasks>
196                                 <replace file="src/main/resources/zusammenMainTool.sh" token="1.0-SNAPSHOT" value="${project.version}"/>
197                             </tasks>
198
199                         </configuration>
200                         <goals>
201                             <goal>run</goal>
202                         </goals>
203                     </execution>
204                 </executions>
205             </plugin>
206             <plugin>
207                 <artifactId>maven-assembly-plugin</artifactId>
208                 <executions>
209                     <execution>
210                         <id>Generate assembly</id>
211                         <phase>install</phase>
212                         <goals>
213                             <goal>single</goal>
214                         </goals>
215                     </execution>
216                 </executions>
217                 <configuration>
218                     <descriptors>
219                         <descriptor>${basedir}/src/main/assembly/zusammen-tools-lib-assembly.xml
220                         </descriptor>
221                     </descriptors>
222                     <appendAssemblyId>false</appendAssemblyId>
223                     <finalName>openecomp-zusammen-tools-lib</finalName>
224                 </configuration>
225             </plugin>
226
227         </plugins>
228     </build>
229
230 </project>