-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
162 lines (162 loc) · 5.96 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.terradue</groupId>
<artifactId>dcs-gmtsar-mm-${mission}</artifactId>
<packaging>pom</packaging>
<name>dcs-gmtsar-mm</name>
<parent>
<groupId>com.terradue</groupId>
<artifactId>dcs-bash-parent</artifactId>
<version>2.0.0</version>
</parent>
<description>Developer Cloud Sandbox interferogram processing with GMTSAR Edit</description>
<version>0.5-SNAPSHOT</version>
<properties>
<summary>Developer Cloud Sandbox interferogram processing with GMTSAR Multi Mission</summary>
<description>Developer Cloud Sandbox interferogram processing with GMTSAR Multi Mission</description>
<community>geohazards-tep</community>
<yumRepo>geohazards-tep</yumRepo>
<mission/>
</properties>
<scm>
<connection>scm:git:ssh://[email protected]/geohazards-tep/dcs-gmtsar-mm</connection>
<developerConnection>scm:git:ssh://[email protected]/geohazards-tep/dcs-gmtsar-mm</developerConnection>
<url>https://github.com/geohazards-tep/dcs-gmtsar-mm</url>
<tag>HEAD</tag>
</scm>
<profiles>
<profile>
<id>package-app</id>
<activation>
<property>
<name>env</name>
<value>ci</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-rpm</id>
<goals>
<goal>rpm</goal>
</goals>
<configuration>
<mappings>
<mapping>
<directory>/application</directory>
<sources>
<source>
<location>${basedir}/src/main/app-resources</location>
</source>
<softlinkSource>
<location>application${mission}.xml</location>
<destination>application.xml</destination>
</softlinkSource>
</sources>
</mapping>
<mapping>
<directory>/application</directory>
<sources>
<source>
<location>${basedir}/src/main/app-resources</location>
<includes>
<include>**/bin/**</include>
<include>**/run**</include>
<include>**/*.sh</include>
<include>**/*.py</include>
<include>**/*.R</include>
<include>**/*.exe</include>
<include>**/*.sav</include>
</includes>
</source>
</sources>
<filemode>755</filemode>
</mapping>
</mappings>
<!-- Set here the dependencies installed with 'sudo yum install'-->
<requires>
<require>bash</require>
<require>idl</require>
<require>snap</require>
<require>tcsh</require>
<require>GMT5SAR</require>
<require>lapack</require>
</requires>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>install-and-test</id>
<activation>
<property>
<name>env</name>
<value>sandbox</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-app-resources</id>
<phase>install</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>/application</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/app-resources/</directory>
<excludes>
<exclude>**/application*.xml</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/src/main/app-resources/</directory>
<includes>
<include>**/application${mission}.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>application.xml move</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>cp</executable>
<arguments>
<argument>/application/application${mission}.xml</argument>
<argument>/application/application.xml</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>