Merge "Fix build errors in autorelease full clean build"
[vfc/nfvo/wfengine.git] / winery / org.eclipse.winery.repository / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 /*******************************************************************************
4  * Copyright (c) 2013 University of Stuttgart.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * and the Apache License 2.0 which both accompany this distribution,
8  * and are available at http://www.eclipse.org/legal/epl-v10.html
9  * and http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Contributors:
12  *    Tobias Unger - initial API and implementation and/or initial documentation
13  *    Oliver Kopp - improvements
14  *******************************************************************************/
15 -->
16 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
17         <modelVersion>4.0.0</modelVersion>
18         <parent>
19                 <groupId>org.eclipse.winery</groupId>
20                 <artifactId>winery</artifactId>
21                 <version>0.1.37-SNAPSHOT</version>
22         </parent>
23         <artifactId>org.eclipse.winery.repository</artifactId>
24         <packaging>war</packaging>
25         <properties>
26                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27         </properties>
28         <dependencies>
29                 <dependency>
30                         <groupId>ch.qos.logback</groupId>
31                         <artifactId>logback-classic</artifactId>
32                         <version>1.1.1</version>
33                         <scope>compile</scope>
34                 </dependency>
35                 <dependency>
36                         <groupId>com.fasterxml.jackson.core</groupId>
37                         <artifactId>jackson-databind</artifactId>
38                         <version>2.2.2</version>
39                         <scope>compile</scope>
40                 </dependency>
41                 <dependency>
42                         <groupId>com.fasterxml.jackson.core</groupId>
43                         <artifactId>jackson-core</artifactId>
44                         <version>2.2.2</version>
45                         <scope>compile</scope>
46                 </dependency>
47                 <dependency>
48                         <groupId>com.sun.jersey</groupId>
49                         <artifactId>jersey-core</artifactId>
50                         <version>1.17</version>
51                         <scope>compile</scope>
52                 </dependency>
53                 <dependency>
54                         <groupId>org.apache.commons</groupId>
55                         <artifactId>commons-compress</artifactId>
56                         <version>1.6</version>
57                         <scope>compile</scope>
58                         <exclusions>
59                                 <exclusion>
60                                         <groupId>org.tukaani</groupId>
61                                         <artifactId>xz</artifactId>
62                                 </exclusion>
63                         </exclusions>
64                 </dependency>
65                 <dependency>
66                         <!-- Version 1.3 is approved by Eclipse, Version 1.4 is not -->
67                         <groupId>org.tukaani</groupId>
68                         <artifactId>xz</artifactId>
69                         <version>1.3</version>
70                 </dependency>
71                 <dependency>
72                         <groupId>commons-io</groupId>
73                         <artifactId>commons-io</artifactId>
74                         <version>2.4</version>
75                         <scope>compile</scope>
76                 </dependency>
77                 <dependency>
78                         <groupId>xerces</groupId>
79                         <artifactId>xercesImpl</artifactId>
80                         <version>2.9.1</version>
81                         <scope>compile</scope>
82                 </dependency>
83                 <dependency>
84                         <groupId>javax.servlet</groupId>
85                         <artifactId>javax.servlet-api</artifactId>
86                         <version>3.0.1</version>
87                         <scope>provided</scope>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.apache.tika</groupId>
91                         <artifactId>tika-core</artifactId>
92                         <version>1.3</version>
93                         <scope>compile</scope>
94                 </dependency>
95                 <dependency>
96                         <groupId>org.restdoc</groupId>
97                         <artifactId>restdoc-server-jersey</artifactId>
98                         <version>1.0.1</version>
99                         <scope>compile</scope>
100                         <!-- we have to stick with Orbit's versions of the libraries -->
101                         <exclusions>
102                                 <exclusion>
103                                         <groupId>com.sun.jersey</groupId>
104                                         <artifactId>jersey-server</artifactId>
105                                 </exclusion>
106                                 <exclusion>
107                                         <groupId>com.sun.jersey</groupId>
108                                         <artifactId>jersey-servlet</artifactId>
109                                 </exclusion>
110                                 <exclusion>
111                                         <groupId>com.fasterxml.jackson.core</groupId>
112                                         <artifactId>jackson-core</artifactId>
113                                 </exclusion>
114                                 <exclusion>
115                                         <!-- provided by jersey -->
116                                         <groupId>javax.ws.rs</groupId>
117                                         <artifactId>jsr311-api</artifactId>
118                                 </exclusion>
119                                 <exclusion>
120                                         <!-- version 2.2.2 explicitly included above -->
121                                         <groupId>com.fasterxml.jackson.core</groupId>
122                                         <artifactId>jackson-annotations</artifactId>
123                                 </exclusion>
124                                 <exclusion>
125                                         <!-- version 2.2.2 explicitly included above -->
126                                         <groupId>com.fasterxml.jackson.core</groupId>
127                                         <artifactId>jackson-databind</artifactId>
128                                 </exclusion>
129                                 <exclusion>
130                                         <!-- other version included via logback -->
131                                         <groupId>org.slf4j</groupId>
132                                         <artifactId>slf4j-api</artifactId>
133                                 </exclusion>
134                         </exclusions>
135                 </dependency>
136                 <dependency>
137                         <groupId>com.sun.jersey.contribs</groupId>
138                         <artifactId>jersey-multipart</artifactId>
139                         <version>1.17</version>
140                         <scope>compile</scope>
141                         <exclusions>
142                                 <exclusion>
143                                 <groupId>org.jvnet</groupId>
144                                 <artifactId>mimepull</artifactId>
145                                 </exclusion>
146                         </exclusions>
147                 </dependency>
148                 <dependency>
149                          <groupId>org.jvnet.mimepull</groupId>
150                          <artifactId>mimepull</artifactId>
151                          <version>1.9.4</version>
152                 </dependency>
153                 <dependency>
154                         <groupId>org.apache.commons</groupId>
155                         <artifactId>commons-lang3</artifactId>
156                         <version>3.1</version>
157                         <scope>compile</scope>
158                 </dependency>
159                 <dependency>
160                         <groupId>org.eclipse.winery</groupId>
161                         <artifactId>org.eclipse.winery.model.selfservice</artifactId>
162                         <!-- in case of a change at the version, adapt about.html -->
163                         <version>0.1.20-SNAPSHOT</version>
164                         <scope>compile</scope>
165                 </dependency>
166                 <dependency>
167                         <groupId>org.slf4j</groupId>
168                         <artifactId>jcl-over-slf4j</artifactId>
169                         <version>1.7.6</version>
170                         <scope>compile</scope>
171                 </dependency>
172                 <dependency>
173                         <groupId>com.sun.jersey</groupId>
174                         <artifactId>jersey-servlet</artifactId>
175                         <version>1.11</version>
176                         <scope>compile</scope>
177                         <!-- 1.11 depends on server 1.11, but we use 1.17 -->
178                         <exclusions>
179                                 <exclusion>
180                                         <groupId>com.sun.jersey</groupId>
181                                         <artifactId>jersey-server</artifactId>
182                                 </exclusion>
183                         </exclusions>
184                 </dependency>
185                 <dependency>
186                         <groupId>com.sun.jersey</groupId>
187                         <artifactId>jersey-server</artifactId>
188                         <version>1.17</version>
189                         <scope>compile</scope>
190                 </dependency>
191                 <dependency>
192                         <groupId>jstl</groupId>
193                         <artifactId>jstl</artifactId>
194                         <version>1.2</version>
195                         <scope>compile</scope>
196                 </dependency>
197                 <dependency>
198                         <groupId>org.eclipse.winery</groupId>
199                         <artifactId>org.eclipse.winery.model.csar.toscametafile</artifactId>
200                         <!-- in case of a change at the version, adapt about.html -->
201                         <version>0.0.4-SNAPSHOT</version>
202                 </dependency>
203                 <!--  use jackson-jaxrs-json-provider instead of jersey-json as suggested by http://stackoverflow.com/a/17006866/873282 -->
204                 <dependency>
205                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
206                         <artifactId>jackson-jaxrs-json-provider</artifactId>
207                         <version>2.2.2</version>
208                 </dependency>
209                 <dependency>
210                         <groupId>org.slf4j</groupId>
211                         <artifactId>slf4j-ext</artifactId>
212                         <version>1.7.2</version>
213                         <scope>compile</scope>
214                         <!-- not approved by Eclipse legal -->
215                         <exclusions>
216                                 <exclusion>
217                                         <groupId>ch.qos.cal10n</groupId>
218                                         <artifactId>cal10n-api</artifactId>
219                                 </exclusion>
220                         </exclusions>
221                 </dependency>
222                 <dependency>
223                         <groupId>org.eclipse.winery</groupId>
224                         <artifactId>org.eclipse.winery.common</artifactId>
225                         <version>0.1.37-SNAPSHOT</version>
226                         <scope>compile</scope>
227                 </dependency>
228                 <dependency>
229                         <groupId>org.eclipse.winery</groupId>
230                         <artifactId>org.eclipse.winery.generators.ia</artifactId>
231                         <version>0.1.37-SNAPSHOT</version>
232                         <scope>compile</scope>
233                 </dependency>
234                 <dependency>
235                         <groupId>org.eclipse.winery</groupId>
236                         <artifactId>org.eclipse.winery.repository.client</artifactId>
237                         <version>0.1.37-SNAPSHOT</version>
238                         <scope>compile</scope>
239                 </dependency>
240                 <dependency>
241                         <groupId>commons-configuration</groupId>
242                         <artifactId>commons-configuration</artifactId>
243                         <version>1.9</version>
244                         <scope>compile</scope>
245                         <exclusions>
246                                 <!-- provided by jcl-over-slf4j to enable logging via logback -->
247                                 <exclusion>
248                                         <groupId>commons-logging</groupId>
249                                         <artifactId>commons-logging</artifactId>
250                                 </exclusion>
251                         </exclusions>
252                 </dependency>
253                 <dependency>
254                         <groupId>org.eclipse.jgit</groupId>
255                         <artifactId>org.eclipse.jgit</artifactId>
256                         <version>3.0.0.201306101825-r</version>
257                         <scope>compile</scope>
258                 </dependency>
259                 <dependency>
260                         <!-- Required for com.sun.xml.bind.namespacePrefixMapper -->
261                         <groupId>com.sun.xml.bind</groupId>
262                         <artifactId>jaxb-impl</artifactId>
263                         <version>2.2.5</version>
264                 </dependency>
265                 <!-- no review, but approval is required for test-only dependencies: http://wiki.eclipse.org/Development_Resources/IP/Test_and_Build_Dependencies -->
266                 <dependency>
267                         <groupId>junit</groupId>
268                         <artifactId>junit</artifactId>
269                         <version>4.11</version>
270                         <scope>test</scope>
271                 </dependency>
272                 <dependency>
273                         <groupId>com.jayway.restassured</groupId>
274                         <artifactId>rest-assured</artifactId>
275                         <version>1.9.0</version>
276                         <scope>test</scope>
277                 </dependency>
278         </dependencies>
279         <build>
280                 <resources>
281                         <resource>
282                                 <directory>.</directory>
283                                 <filtering>true</filtering>
284                                 <includes>
285                                         <include>about.html</include>
286                                 </includes>
287                         </resource>
288                         <resource>
289                                 <directory>src/main/resources</directory>
290                                 <filtering>true</filtering>
291                                 <includes>
292                                         <include>winery.properties</include>
293                                         <include>logback.xml</include>
294                                         <include>logback-test.xml</include>
295                                 </includes>
296                         </resource>
297                         <resource>
298                                 <directory>src/main/templates</directory>
299                                 <includes>
300                                         <include>*.java</include>
301                                 </includes>
302                                 <filtering>true</filtering>
303                                 <targetPath>${project.build.directory}/generated-sources/java/org/eclipse/winery/repository</targetPath>
304                         </resource>
305                 </resources>
306                 <plugins>
307                         <plugin>
308                                 <groupId>org.apache.maven.plugins</groupId>
309                                 <artifactId>maven-compiler-plugin</artifactId>
310                                 <version>3.1</version>
311                                 <configuration>
312                                         <source>1.7</source>
313                                         <target>1.7</target>
314                                 </configuration>
315                         </plugin>
316                         <plugin>
317                                 <groupId>org.apache.maven.plugins</groupId>
318                                 <artifactId>maven-war-plugin</artifactId>
319                                 <version>2.4</version>
320                                 <configuration>
321                                         <webResources>
322                                                 <resource>
323                                                         <directory>${basedir}/src/main/webapp/WEB-INF</directory>
324                                                         <filtering>true</filtering>
325                                                         <targetPath>WEB-INF</targetPath>
326                                                         <includes>
327                                                                 <include>tags/about.tag</include>
328                                                                 <include>tags/genericpage.tag</include>
329                                                         </includes>
330                                                 </resource>
331                                         </webResources>
332                                         <attachClasses>true</attachClasses> 
333                                 </configuration>
334                         </plugin>
335                         <plugin>
336                                 <groupId>com.github.eirslett</groupId>
337                                 <artifactId>frontend-maven-plugin</artifactId>
338                                 <version>1.0</version>
339                                 <!-- optional -->
340                                 <configuration>
341                                         <nodeVersion>v4.5.0</nodeVersion>
342                                         <npmVersion>2.15.9</npmVersion>
343                                         <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
344                                         <npmDownloadRoot>https://registry.npmjs.org/npm/-/</npmDownloadRoot>
345                                 </configuration>
346                                 <executions>
347                                         <execution>
348                                                 <id>install node and npm</id>
349                                                 <!-- optional: default phase is "generate-resources" -->
350                                                 <phase>initialize</phase>
351                                                 <goals>
352                                                         <goal>install-node-and-npm</goal>
353                                                         <goal>npm</goal>
354                                                 </goals>
355                                         </execution>
356                                         <execution>
357                                                 <id>bower install</id>
358                                                 <phase>initialize</phase>
359                                                 <goals>
360                                                         <goal>bower</goal>
361                                                 </goals>
362                                         </execution>
363                                 </executions>
364                         </plugin>
365                         <plugin>
366                                 <artifactId>maven-antrun-plugin</artifactId>
367                                 <version>1.7</version>
368                                 <executions>
369                                         <execution>
370                                                 <phase>generate-sources</phase>
371                                                 <id>default-cli</id>
372                                                 <configuration>
373                                                         <target>
374                                                                 <copy todir="${project.basedir}/src/main/webapp/WEB-INF/tags/common" overwrite="true">
375                                                                         <fileset dir="${project.basedir}/../org.eclipse.winery.topologymodeler/src/main/webapp/WEB-INF/tags/common" />
376                                                                 </copy>
377                                                                 <copy todir="${project.basedir}/src/main/webapp/jsp/shared" overwrite="true">
378                                                                         <fileset dir="${project.basedir}/../org.eclipse.winery.topologymodeler/src/main/webapp/jsp/shared" />
379                                                                 </copy>
380                                                                 <copy todir="${project.basedir}/src/main/webapp/WEB-INF" overwrite="true" file="${project.basedir}/../org.eclipse.winery.topologymodeler/src/main/webapp/WEB-INF/common-functions.tld" />
381                                                                 <copy todir="${project.basedir}/src/main/webapp/js" overwrite="true" file="${project.basedir}/../org.eclipse.winery.topologymodeler/src/main/webapp/js/winery-common-topologyrendering.js" />
382                                                                 <copy todir="${project.basedir}/src/main/webapp/js" overwrite="true" file="${project.basedir}/../org.eclipse.winery.topologymodeler/src/main/webapp/js/winery-support-common.js" />
383                                                         </target>
384                                                 </configuration>
385                                                 <goals>
386                                                         <goal>run</goal>
387                                                 </goals>
388                                         </execution>
389                                 </executions>
390                         </plugin>
391                         <plugin>
392                                 <artifactId>maven-clean-plugin</artifactId>
393                                 <version>2.5</version>
394                                 <configuration>
395                                         <filesets>
396                                                 <fileset>
397                                                         <!-- delete the files copied by generate source / the ant-task above. This ensures that deleted files being deleted at the topology modeler are also deleted at the repository -->
398                                                         <directory>${project.basedir}/src/main/webapp/WEB-INF/tags/common</directory>
399                                                         <excludes>
400                                                                 <exclude>.gitignore</exclude>
401                                                         </excludes>
402                                                         <followSymlinks>false</followSymlinks>
403                                                 </fileset>
404                                                 <fileset>
405                                                         <!-- delete the files copied by generate source / the ant-task above. This ensures that deleted files being deleted at the topology modeler are also deleted at the repository -->
406                                                         <directory>${project.basedir}/src/main/webapp/jsp/shared</directory>
407                                                         <excludes>
408                                                                 <exclude>.gitignore</exclude>
409                                                         </excludes>
410                                                         <followSymlinks>false</followSymlinks>
411                                                 </fileset>
412                                         </filesets>
413                                 </configuration>
414                         </plugin>
415                         <plugin>
416                                 <groupId>org.apache.maven.plugins</groupId>
417                                 <artifactId>maven-surefire-plugin</artifactId>
418                                 <version>2.16</version>
419                                 <configuration>
420                                         <skipTests>true</skipTests>
421                                 </configuration>
422                         </plugin>
423                         <plugin>
424                                 <groupId>org.codehaus.mojo</groupId>
425                                 <artifactId>build-helper-maven-plugin</artifactId>
426                                 <version>1.8</version>
427                                 <executions>
428                                         <execution>
429                                                 <id>add-source</id>
430                                                 <phase>generate-sources</phase>
431                                                 <goals>
432                                                         <goal>add-source</goal>
433                                                 </goals>
434                                                 <configuration>
435                                                         <sources>
436                                                                 <source>${project.build.directory}/generated-sources/java/</source>
437                                                         </sources>
438                                                 </configuration>
439                                         </execution>
440                                 </executions>
441                         </plugin>
442                 </plugins>
443                 <finalName>winery</finalName>
444                 <pluginManagement>
445                         <plugins>
446                                 <plugin>
447                                         <!-- hint by http://wiki.eclipse.org/M2E_plugin_execution_not_covered -->
448                                         <groupId>org.eclipse.m2e</groupId>
449                                         <artifactId>lifecycle-mapping</artifactId>
450                                         <version>1.0.0</version>
451                                         <configuration>
452                                                 <lifecycleMappingMetadata>
453                                                         <pluginExecutions>
454                                                                 <pluginExecution>
455                                                                         <pluginExecutionFilter>
456                                                                                 <groupId>org.apache.maven.plugins</groupId>
457                                                                                 <artifactId>maven-antrun-plugin</artifactId>
458                                                                                 <versionRange>[1.0.0,)</versionRange>
459                                                                                 <goals>
460                                                                                         <goal>run</goal>
461                                                                                 </goals>
462                                                                         </pluginExecutionFilter>
463                                                                         <action>
464                                                                                 <ignore />
465                                                                         </action>
466                                                                 </pluginExecution>
467                                                                 <pluginExecution>
468                                                                         <pluginExecutionFilter>
469                                                                                 <groupId>org.apache.maven.plugins</groupId>
470                                                                                 <artifactId>maven-resources-plugin</artifactId>
471                                                                                 <versionRange>[1.0.0,)</versionRange>
472                                                                                 <goals>
473                                                                                         <goal>resources</goal>
474                                                                                 </goals>
475                                                                         </pluginExecutionFilter>
476                                                                         <action>
477                                                                                 <execute>
478                                                                                         <runOnConfiguration>true</runOnConfiguration>
479                                                                                         <runOnIncremental>false</runOnIncremental>
480                                                                                 </execute>
481                                                                         </action>
482                                                                 </pluginExecution>
483                                                                 <pluginExecution>
484                                                                         <pluginExecutionFilter>
485                                                                                 <groupId>org.codehaus.mojo</groupId>
486                                                                                 <artifactId>build-helper-maven-plugin</artifactId>
487                                                                                 <versionRange>[1.0,)</versionRange>
488                                                                                 <goals>
489                                                                                         <goal>parse-version</goal>
490                                                                                         <goal>add-source</goal>
491                                                                                         <goal>maven-version</goal>
492                                                                                         <goal>add-resource</goal>
493                                                                                         <goal>add-test-resource</goal>
494                                                                                         <goal>add-test-source</goal>
495                                                                                 </goals>
496                                                                         </pluginExecutionFilter>
497                                                                         <action>
498                                                                                 <execute>
499                                                                                         <runOnConfiguration>true</runOnConfiguration>
500                                                                                         <runOnIncremental>true</runOnIncremental>
501                                                                                 </execute>
502                                                                         </action>
503                                                                 </pluginExecution>
504                                                         </pluginExecutions>
505                                                 </lifecycleMappingMetadata>
506                                         </configuration>
507                                 </plugin>
508                         </plugins>
509                 </pluginManagement>
510         </build>
511 </project>