1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<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">
|
3
|
<modelVersion>4.0.0</modelVersion>
|
4
|
<artifactId>cdm-webapp</artifactId>
|
5
|
<groupId>eu.etaxonomy</groupId>
|
6
|
<version>4.1.1</version>
|
7
|
<packaging>war</packaging>
|
8
|
<name>CDM Webapp</name>
|
9
|
<properties>
|
10
|
<cdmlib.version>4.2.0-SNAPSHOT</cdmlib.version>
|
11
|
<cdm.vaadin.version>4.2.0-SNAPSHOT</cdm.vaadin.version>
|
12
|
</properties>
|
13
|
<repositories>
|
14
|
<!-- the cdm internal repository -->
|
15
|
<repository>
|
16
|
<id>EditRepository</id>
|
17
|
<url>http://wp5.e-taxonomy.eu/mavenrepo/</url>
|
18
|
<releases>
|
19
|
<enabled>true</enabled>
|
20
|
<updatePolicy>always</updatePolicy>
|
21
|
</releases>
|
22
|
<snapshots>
|
23
|
<enabled>true</enabled>
|
24
|
<updatePolicy>always</updatePolicy>
|
25
|
</snapshots>
|
26
|
</repository>
|
27
|
</repositories>
|
28
|
<distributionManagement>
|
29
|
<repository>
|
30
|
<uniqueVersion>false</uniqueVersion>
|
31
|
<id>wp5.e-taxonomy.eu</id>
|
32
|
<name>Edit Maven Repository</name>
|
33
|
<url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo/</url>
|
34
|
<layout>default</layout>
|
35
|
</repository>
|
36
|
</distributionManagement>
|
37
|
<profiles>
|
38
|
<profile>
|
39
|
<id>local-repository</id>
|
40
|
<activation>
|
41
|
<property>
|
42
|
<name>localrepo</name>
|
43
|
</property>
|
44
|
</activation>
|
45
|
<repositories>
|
46
|
<repository>
|
47
|
<id>EditLocalRepository</id>
|
48
|
<url>file://${localrepo}/eu/etaxonomy/</url>
|
49
|
<releases>
|
50
|
<enabled>false</enabled>
|
51
|
<updatePolicy>always</updatePolicy>
|
52
|
</releases>
|
53
|
<snapshots>
|
54
|
<enabled>true</enabled>
|
55
|
<updatePolicy>always</updatePolicy>
|
56
|
</snapshots>
|
57
|
</repository>
|
58
|
</repositories>
|
59
|
</profile>
|
60
|
</profiles>
|
61
|
<dependencies>
|
62
|
<dependency>
|
63
|
<groupId>eu.etaxonomy</groupId>
|
64
|
<artifactId>cdmlib-remote-webapp</artifactId>
|
65
|
<version>${cdmlib.version}</version>
|
66
|
<type>war</type>
|
67
|
</dependency>
|
68
|
<dependency>
|
69
|
<groupId>eu.etaxonomy</groupId>
|
70
|
<artifactId>cdm-vaadin</artifactId>
|
71
|
<version>${cdm.vaadin.version}</version>
|
72
|
<type>war</type>
|
73
|
</dependency>
|
74
|
</dependencies>
|
75
|
<build>
|
76
|
<plugins>
|
77
|
<plugin>
|
78
|
<groupId>org.apache.maven.plugins</groupId>
|
79
|
<artifactId>maven-war-plugin</artifactId>
|
80
|
<version>2.6</version>
|
81
|
<configuration>
|
82
|
<webResources>
|
83
|
<resource>
|
84
|
<!-- this is relative to the pom.xml directory -->
|
85
|
<directory>${project.build.directory}/dependency/cdm-vaadin</directory>
|
86
|
</resource>
|
87
|
<resource>
|
88
|
<!-- this is relative to the pom.xml directory -->
|
89
|
<directory>${project.build.directory}/dependency/cdmlib-remote-webapp</directory>
|
90
|
</resource>
|
91
|
</webResources>
|
92
|
</configuration>
|
93
|
</plugin>
|
94
|
<!--
|
95
|
|
96
|
when executing the mvn deploy directly (not via jgit-flow *-finish) unpacked war
|
97
|
resources are accumulating and must be deleted before entering the prepare-package
|
98
|
life cycle phase, therefore configuring this auto-clean makes a lot of sense.
|
99
|
|
100
|
BUT the auto-clean is causing problems with the jgit-flow plugin,
|
101
|
it is called twice and thus removes the cdm-webapp-x.x.x.war after it has been build,
|
102
|
maven then fails with : "The packaging for this project did not assign a file to the build artifact"
|
103
|
Therefore this is disabled!
|
104
|
|
105
|
A possible solution to this is to bind define a special auto-clean execution to the prepare-package phase,
|
106
|
as long as this plugin is defined before the maven-dependency-plugin the clean should only
|
107
|
happen before the unpack, see http://www.mkyong.com/maven/maven-plugin-execution-order-in-same-phase/
|
108
|
Maybe it makes sense to define a fileset that only includes the unpacked war files
|
109
|
|
110
|
<plugin>
|
111
|
<groupId>org.apache.maven.plugins</groupId>
|
112
|
<artifactId>maven-clean-plugin</artifactId>
|
113
|
<version>2.5</version>
|
114
|
<executions>
|
115
|
<execution>
|
116
|
<id>auto-clean</id>
|
117
|
<phase>initialize</phase>
|
118
|
<goals>
|
119
|
<goal>clean</goal>
|
120
|
</goals>
|
121
|
</execution>
|
122
|
</executions>
|
123
|
</plugin>
|
124
|
-->
|
125
|
<plugin>
|
126
|
<groupId>org.apache.maven.plugins</groupId>
|
127
|
<artifactId>maven-dependency-plugin</artifactId>
|
128
|
<version>2.10</version>
|
129
|
<executions>
|
130
|
<execution>
|
131
|
<id>unpack</id>
|
132
|
<phase>prepare-package</phase>
|
133
|
<goals>
|
134
|
<goal>unpack</goal>
|
135
|
</goals>
|
136
|
<configuration>
|
137
|
<artifactItems>
|
138
|
<artifactItem>
|
139
|
<groupId>eu.etaxonomy</groupId>
|
140
|
<artifactId>cdm-vaadin</artifactId>
|
141
|
<version>${cdm.vaadin.version}</version>
|
142
|
<type>war</type>
|
143
|
<overWrite>true</overWrite>
|
144
|
<outputDirectory>${project.build.directory}/dependency/cdm-vaadin</outputDirectory>
|
145
|
<excludes>META-INF/**,WEB-INF/classes/log4j.properties</excludes>
|
146
|
</artifactItem>
|
147
|
<artifactItem>
|
148
|
<groupId>eu.etaxonomy</groupId>
|
149
|
<artifactId>cdmlib-remote-webapp</artifactId>
|
150
|
<version>${cdmlib.version}</version>
|
151
|
<type>war</type>
|
152
|
<overWrite>true</overWrite>
|
153
|
<outputDirectory>${project.build.directory}/dependency/cdmlib-remote-webapp</outputDirectory>
|
154
|
</artifactItem>
|
155
|
</artifactItems>
|
156
|
<overWriteReleases>false</overWriteReleases>
|
157
|
<overWriteSnapshots>true</overWriteSnapshots>
|
158
|
</configuration>
|
159
|
</execution>
|
160
|
</executions>
|
161
|
</plugin>
|
162
|
<plugin>
|
163
|
<groupId>external.atlassian.jgitflow</groupId>
|
164
|
<artifactId>jgitflow-maven-plugin</artifactId>
|
165
|
<version>1.0-m6</version>
|
166
|
<configuration>
|
167
|
<pushHotfixes>true</pushHotfixes>
|
168
|
<pushReleases>true</pushReleases>
|
169
|
<enableSshAgent>true</enableSshAgent>
|
170
|
<allowSnapshots>true</allowSnapshots>
|
171
|
<allowUntracked>true</allowUntracked>
|
172
|
</configuration>
|
173
|
<dependencies>
|
174
|
<!--
|
175
|
upgrading dependency jsch.agent.version of jgit-flow plugin to 0.1.53
|
176
|
in order have ssl key exchange algorithms compatible with openssh 6.7
|
177
|
-->
|
178
|
<dependency>
|
179
|
<groupId>com.jcraft</groupId>
|
180
|
<artifactId>jsch</artifactId>
|
181
|
<version>0.1.53</version>
|
182
|
</dependency>
|
183
|
</dependencies>
|
184
|
</plugin>
|
185
|
</plugins>
|
186
|
<extensions>
|
187
|
<extension>
|
188
|
<groupId>org.apache.maven.wagon</groupId>
|
189
|
<artifactId>wagon-scm</artifactId>
|
190
|
<version>1.0-beta-6</version>
|
191
|
</extension>
|
192
|
<extension>
|
193
|
<groupId>org.apache.maven.wagon</groupId>
|
194
|
<artifactId>wagon-ssh</artifactId>
|
195
|
<version>1.0-beta-6</version>
|
196
|
</extension>
|
197
|
<extension>
|
198
|
<groupId>org.apache.maven.wagon</groupId>
|
199
|
<artifactId>wagon-ssh-external</artifactId>
|
200
|
<version>1.0-beta-6</version>
|
201
|
</extension>
|
202
|
</extensions>
|
203
|
</build>
|
204
|
</project>
|