Strabon

view endpoint-exec/pom.xml @ 1457:c56f16b4fb1a

#58: -Ddebian=true to create the debian package during maven
compiling.
author Giannis Vlachopoulos <johnvl@di.uoa.gr>
date Thu Jan 15 14:36:12 2015 +0200 (2015-01-15)
parents 3a20ea696d0e
children fdbcb246115b
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.2.11-SNAPSHOT</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 <artifactId>jdeb</artifactId>
115 <groupId>org.vafer</groupId>
116 <version>1.3</version>
117 <executions>
118 <execution>
119 <phase>package</phase>
120 <goals>
121 <goal>jdeb</goal>
122 </goals>
123 <configuration>
124 <skipPOMs>false</skipPOMs>
125 <dataSet>
126 <data>
127 <src>${project.build.directory}/strabon-endpoint-executable-${project.version}.jar</src>
128 <type>file</type>
129 <mapper>
130 <type>perm</type>
131 <prefix>/usr/share/jdeb/lib</prefix>
132 </mapper>
133 </data>
134 <data>
135 <src>${basedir}/strabon-endpoint</src>
136 <type>file</type>
137 <mapper>
138 <type>perm</type>
139 <prefix>/usr/local/bin</prefix>
140 <user>root</user>
141 <group>root</group>
142 <filemode>755</filemode>
143 </mapper>
144 </data>
145 <data>
146 <src>${basedir}/strabon-init</src>
147 <type>file</type>
148 <mapper>
149 <type>perm</type>
150 <prefix>/usr/local/bin</prefix>
151 <user>root</user>
152 <group>root</group>
153 <filemode>755</filemode>
154 </mapper>
155 </data>
156 </dataSet>
157 </configuration>
158 </execution>
159 </executions>
160 </plugin>
162 </plugins>
163 </build>
165 </profile>
166 </profiles>
167 </project>