1 <?xml version="1.0" encoding="UTF-8"?>
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
12 * Tobias Unger - initial API and implementation and/or initial documentation
13 * Oliver Kopp - improvements
14 *******************************************************************************/
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>
19 <groupId>org.eclipse.winery</groupId>
20 <artifactId>winery</artifactId>
21 <version>0.1.37-SNAPSHOT</version>
23 <artifactId>org.eclipse.winery.repository</artifactId>
24 <packaging>war</packaging>
26 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30 <groupId>ch.qos.logback</groupId>
31 <artifactId>logback-classic</artifactId>
32 <version>1.1.1</version>
33 <scope>compile</scope>
36 <groupId>com.fasterxml.jackson.core</groupId>
37 <artifactId>jackson-databind</artifactId>
38 <version>2.2.2</version>
39 <scope>compile</scope>
42 <groupId>com.fasterxml.jackson.core</groupId>
43 <artifactId>jackson-core</artifactId>
44 <version>2.2.2</version>
45 <scope>compile</scope>
48 <groupId>com.sun.jersey</groupId>
49 <artifactId>jersey-core</artifactId>
50 <version>1.17</version>
51 <scope>compile</scope>
54 <groupId>org.apache.commons</groupId>
55 <artifactId>commons-compress</artifactId>
56 <version>1.6</version>
57 <scope>compile</scope>
60 <groupId>org.tukaani</groupId>
61 <artifactId>xz</artifactId>
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>
72 <groupId>commons-io</groupId>
73 <artifactId>commons-io</artifactId>
74 <version>2.4</version>
75 <scope>compile</scope>
78 <groupId>xerces</groupId>
79 <artifactId>xercesImpl</artifactId>
80 <version>2.9.1</version>
81 <scope>compile</scope>
84 <groupId>javax.servlet</groupId>
85 <artifactId>javax.servlet-api</artifactId>
86 <version>3.0.1</version>
87 <scope>provided</scope>
90 <groupId>org.apache.tika</groupId>
91 <artifactId>tika-core</artifactId>
92 <version>1.3</version>
93 <scope>compile</scope>
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 -->
103 <groupId>com.sun.jersey</groupId>
104 <artifactId>jersey-server</artifactId>
107 <groupId>com.sun.jersey</groupId>
108 <artifactId>jersey-servlet</artifactId>
111 <groupId>com.fasterxml.jackson.core</groupId>
112 <artifactId>jackson-core</artifactId>
115 <!-- provided by jersey -->
116 <groupId>javax.ws.rs</groupId>
117 <artifactId>jsr311-api</artifactId>
120 <!-- version 2.2.2 explicitly included above -->
121 <groupId>com.fasterxml.jackson.core</groupId>
122 <artifactId>jackson-annotations</artifactId>
125 <!-- version 2.2.2 explicitly included above -->
126 <groupId>com.fasterxml.jackson.core</groupId>
127 <artifactId>jackson-databind</artifactId>
130 <!-- other version included via logback -->
131 <groupId>org.slf4j</groupId>
132 <artifactId>slf4j-api</artifactId>
137 <groupId>com.sun.jersey.contribs</groupId>
138 <artifactId>jersey-multipart</artifactId>
139 <version>1.17</version>
140 <scope>compile</scope>
143 <groupId>org.jvnet</groupId>
144 <artifactId>mimepull</artifactId>
149 <groupId>org.jvnet.mimepull</groupId>
150 <artifactId>mimepull</artifactId>
151 <version>1.9.4</version>
154 <groupId>org.apache.commons</groupId>
155 <artifactId>commons-lang3</artifactId>
156 <version>3.1</version>
157 <scope>compile</scope>
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>
167 <groupId>org.slf4j</groupId>
168 <artifactId>jcl-over-slf4j</artifactId>
169 <version>1.7.6</version>
170 <scope>compile</scope>
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 -->
180 <groupId>com.sun.jersey</groupId>
181 <artifactId>jersey-server</artifactId>
186 <groupId>com.sun.jersey</groupId>
187 <artifactId>jersey-server</artifactId>
188 <version>1.17</version>
189 <scope>compile</scope>
192 <groupId>jstl</groupId>
193 <artifactId>jstl</artifactId>
194 <version>1.2</version>
195 <scope>compile</scope>
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>
203 <!-- use jackson-jaxrs-json-provider instead of jersey-json as suggested by http://stackoverflow.com/a/17006866/873282 -->
205 <groupId>com.fasterxml.jackson.jaxrs</groupId>
206 <artifactId>jackson-jaxrs-json-provider</artifactId>
207 <version>2.2.2</version>
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 -->
217 <groupId>ch.qos.cal10n</groupId>
218 <artifactId>cal10n-api</artifactId>
223 <groupId>org.eclipse.winery</groupId>
224 <artifactId>org.eclipse.winery.common</artifactId>
225 <version>0.1.37-SNAPSHOT</version>
226 <scope>compile</scope>
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>
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>
241 <groupId>commons-configuration</groupId>
242 <artifactId>commons-configuration</artifactId>
243 <version>1.9</version>
244 <scope>compile</scope>
246 <!-- provided by jcl-over-slf4j to enable logging via logback -->
248 <groupId>commons-logging</groupId>
249 <artifactId>commons-logging</artifactId>
254 <groupId>org.eclipse.jgit</groupId>
255 <artifactId>org.eclipse.jgit</artifactId>
256 <version>3.0.0.201306101825-r</version>
257 <scope>compile</scope>
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>
265 <!-- no review, but approval is required for test-only dependencies: http://wiki.eclipse.org/Development_Resources/IP/Test_and_Build_Dependencies -->
267 <groupId>junit</groupId>
268 <artifactId>junit</artifactId>
269 <version>4.11</version>
273 <groupId>com.jayway.restassured</groupId>
274 <artifactId>rest-assured</artifactId>
275 <version>1.9.0</version>
282 <directory>.</directory>
283 <filtering>true</filtering>
285 <include>about.html</include>
289 <directory>src/main/resources</directory>
290 <filtering>true</filtering>
292 <include>winery.properties</include>
293 <include>logback.xml</include>
294 <include>logback-test.xml</include>
298 <directory>src/main/templates</directory>
300 <include>*.java</include>
302 <filtering>true</filtering>
303 <targetPath>${project.build.directory}/generated-sources/java/org/eclipse/winery/repository</targetPath>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-compiler-plugin</artifactId>
310 <version>3.1</version>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-war-plugin</artifactId>
319 <version>2.4</version>
323 <directory>${basedir}/src/main/webapp/WEB-INF</directory>
324 <filtering>true</filtering>
325 <targetPath>WEB-INF</targetPath>
327 <include>tags/about.tag</include>
328 <include>tags/genericpage.tag</include>
332 <attachClasses>true</attachClasses>
336 <groupId>com.github.eirslett</groupId>
337 <artifactId>frontend-maven-plugin</artifactId>
338 <version>1.0</version>
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>
348 <id>install node and npm</id>
349 <!-- optional: default phase is "generate-resources" -->
350 <phase>initialize</phase>
352 <goal>install-node-and-npm</goal>
357 <id>bower install</id>
358 <phase>initialize</phase>
366 <artifactId>maven-antrun-plugin</artifactId>
367 <version>1.7</version>
370 <phase>generate-sources</phase>
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" />
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" />
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" />
392 <artifactId>maven-clean-plugin</artifactId>
393 <version>2.5</version>
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>
400 <exclude>.gitignore</exclude>
402 <followSymlinks>false</followSymlinks>
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>
408 <exclude>.gitignore</exclude>
410 <followSymlinks>false</followSymlinks>
416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-surefire-plugin</artifactId>
418 <version>2.16</version>
420 <skipTests>true</skipTests>
424 <groupId>org.codehaus.mojo</groupId>
425 <artifactId>build-helper-maven-plugin</artifactId>
426 <version>1.8</version>
430 <phase>generate-sources</phase>
432 <goal>add-source</goal>
436 <source>${project.build.directory}/generated-sources/java/</source>
443 <finalName>winery</finalName>
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>
452 <lifecycleMappingMetadata>
455 <pluginExecutionFilter>
456 <groupId>org.apache.maven.plugins</groupId>
457 <artifactId>maven-antrun-plugin</artifactId>
458 <versionRange>[1.0.0,)</versionRange>
462 </pluginExecutionFilter>
468 <pluginExecutionFilter>
469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-resources-plugin</artifactId>
471 <versionRange>[1.0.0,)</versionRange>
473 <goal>resources</goal>
475 </pluginExecutionFilter>
478 <runOnConfiguration>true</runOnConfiguration>
479 <runOnIncremental>false</runOnIncremental>
484 <pluginExecutionFilter>
485 <groupId>org.codehaus.mojo</groupId>
486 <artifactId>build-helper-maven-plugin</artifactId>
487 <versionRange>[1.0,)</versionRange>
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>
496 </pluginExecutionFilter>
499 <runOnConfiguration>true</runOnConfiguration>
500 <runOnIncremental>true</runOnIncremental>
505 </lifecycleMappingMetadata>