Strabon

view endpoint-exec/pom.xml @ 1497:0aadb8a44fc9

[maven-release-plugin] prepare release v3.3.1
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Mar 11 20:30:33 2015 +0200 (2015-03-11)
parents 7704457b644e
children 8e6437ba6ba2
line source
1 <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/maven-v4_0_0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <groupId>eu.earthobservatory</groupId>
7 <artifactId>strabon</artifactId>
8 <version>3.3.1</version>
9 </parent>
11 <artifactId>strabon-endpoint-exec</artifactId>
13 <name>Strabon: Executable endpoint</name>
14 <description>A Strabon endpoint packaged with Tomcat 7 as a single executable jar file</description>
15 <packaging>pom</packaging>
17 <dependencies>
18 <dependency>
19 <groupId>eu.earthobservatory</groupId>
20 <artifactId>strabon-endpoint</artifactId>
21 <version>${eu.earthobservatory.version}</version>
22 <type>war</type>
23 <scope>compile</scope>
24 </dependency>
25 </dependencies>
27 <build>
28 <plugins>
29 <plugin>
30 <groupId>org.apache.tomcat.maven</groupId>
31 <artifactId>tomcat7-maven-plugin</artifactId>
32 <version>2.0</version>
33 <executions>
34 <execution>
35 <id>tomcat-run</id>
36 <goals>
37 <goal>exec-war-only</goal>
38 </goals>
39 <phase>package</phase>
40 <configuration>
41 <path>/</path>
42 <uriEncoding>UTF-8</uriEncoding>
43 <finalName>strabon-endpoint-executable-${project.version}.jar</finalName>
44 <!-- Override the default server.xml if nessecary
45 <serverXml>src/main/tomcatconf/server.xml</serverXml>
46 -->
47 <!--
48 <extraResources>
49 <extraResource>
50 <directory>${basedir}/src/main/resources</directory>
51 <includes>
52 <include>**/log4j.xml</include>
53 </includes>
54 </extraResource>
55 </extraResources>
56 -->
57 <warRunDependencies>
58 <warRunDependency>
59 <dependency>
60 <groupId>eu.earthobservatory</groupId>
61 <artifactId>strabon-endpoint</artifactId>
62 <version>${eu.earthobservatory.version}</version>
63 <type>war</type>
64 </dependency>
65 <contextPath>/</contextPath>
66 </warRunDependency>
67 </warRunDependencies>
68 <!--
69 <extraDependencies>
70 <extraDependency>
71 <groupId>org.slf4j</groupId>
72 <artifactId>jul-to-slf4j</artifactId>
73 <version>${slf4jVersion}</version>
74 </extraDependency>
75 <extraDependency>
76 <groupId>org.slf4j</groupId>
77 <artifactId>slf4j-api</artifactId>
78 <version>${slf4jVersion}</version>
79 </extraDependency>
80 <extraDependency>
81 <groupId>org.slf4j</groupId>
82 <artifactId>slf4j-log4j12</artifactId>
83 <version>${slf4jVersion}</version>
84 </extraDependency>
85 <extraDependency>
86 <groupId>log4j</groupId>
87 <artifactId>log4j</artifactId>
88 <version>1.2.12</version>
89 </extraDependency>
90 </extraDependencies>
91 -->
92 </configuration>
93 </execution>
94 </executions>
95 </plugin>
98 </plugins>
99 </build>
101 <profiles>
102 <profile>
103 <id>create-debian</id>
104 <activation>
105 <activeByDefault>false</activeByDefault>
106 <property>
107 <name>debian</name>
108 <value>true</value>
109 </property>
110 </activation>
111 <build>
112 <plugins>
113 <plugin>
114 <groupId>org.codehaus.mojo</groupId>
115 <artifactId>exec-maven-plugin</artifactId>
116 <version>1.1.1</version>
117 <executions>
118 <execution>
119 <!--
120 <id>some-execution</id>
121 -->
122 <phase>package</phase>
123 <goals>
124 <goal>exec</goal>
125 </goals>
126 </execution>
127 </executions>
128 <configuration>
129 <executable>${basedir}/../scripts/update-debian-version.sh</executable>
130 </configuration>
131 </plugin>
133 <plugin>
134 <artifactId>jdeb</artifactId>
135 <groupId>org.vafer</groupId>
136 <version>1.3</version>
137 <executions>
138 <execution>
139 <phase>package</phase>
140 <goals>
141 <goal>jdeb</goal>
142 </goals>
143 <configuration>
144 <skipPOMs>false</skipPOMs>
145 <dataSet>
146 <data>
147 <src>${project.build.directory}/strabon-endpoint-executable-${project.version}.jar</src>
148 <type>file</type>
149 <mapper>
150 <type>perm</type>
151 <prefix>/usr/share/jdeb/lib</prefix>
152 </mapper>
153 </data>
154 <data>
155 <src>${basedir}/strabon-endpoint</src>
156 <type>file</type>
157 <mapper>
158 <type>perm</type>
159 <prefix>/usr/local/bin</prefix>
160 <user>root</user>
161 <group>root</group>
162 <filemode>755</filemode>
163 </mapper>
164 </data>
165 <data>
166 <src>${basedir}/strabon-init</src>
167 <type>file</type>
168 <mapper>
169 <type>perm</type>
170 <prefix>/usr/local/bin</prefix>
171 <user>root</user>
172 <group>root</group>
173 <filemode>755</filemode>
174 </mapper>
175 </data>
176 </dataSet>
177 </configuration>
178 </execution>
179 </executions>
180 </plugin>
181 </plugins>
182 </build>
183 </profile>
184 </profiles>
185 </project>