-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
175 lines (170 loc) · 8.48 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
163
164
165
166
167
168
169
170
171
172
173
174
175
<?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>gov.nasa</groupId>
<artifactId>wwj-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>nasa-wwj</module>
</modules>
<properties>
<wwj.release.version>1.5.0</wwj.release.version>
<tmp.archive.dir>${project.build.directory}/wwj-archive</tmp.archive.dir>
<lib.repo.dir>nasa-wwj/lib-repository</lib.repo.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<!-- http://maven.apache.org/plugins/maven-compiler-plugin/ -->
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>gov.nasa</groupId>
<artifactId>worldwind</artifactId>
<version>${wwj.release.version}</version>
</dependency>
<dependency>
<groupId>gov.nasa</groupId>
<artifactId>worldwindx</artifactId>
<version>${wwj.release.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>prepare-via-wwj-archive</id>
<activation>
<property>
<name>!disable-prepartion</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>extract-wwj</id>
<phase>initialize</phase>
<inherited>false</inherited>
<configuration>
<target>
<echo message="Extracting WWJ archive..." />
<unzip src="worldwind-${wwj.release.version}.zip" dest="${tmp.archive.dir}" />
<copy file="${tmp.archive.dir}/worldwind.jar"
tofile="${lib.repo.dir}/gov/nasa/worldwind/${wwj.release.version}/worldwind-${wwj.release.version}.jar" />
<copy file="${tmp.archive.dir}/worldwindx.jar"
tofile="${lib.repo.dir}/gov/nasa/worldwindx/${wwj.release.version}/worldwindx-${wwj.release.version}.jar" />
<copy file="${tmp.archive.dir}/gdal.jar"
tofile="${lib.repo.dir}/org/gdal/gdal/1.7.2/gdal-1.7.2.jar" />
<copy file="${tmp.archive.dir}/vpf-symbols.jar"
tofile="${lib.repo.dir}/wwj-ext/vpf-symbols/${wwj.release.version}/vpf-symbols-${wwj.release.version}.jar" />
<copy file="${tmp.archive.dir}/plugin.jar"
tofile="${lib.repo.dir}/wwj-ext/plugin/${wwj.release.version}/plugin-${wwj.release.version}.jar" />
<copy file="${tmp.archive.dir}/jogl.jar"
tofile="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1.jar" />
<copy file="${tmp.archive.dir}/gluegen-rt.jar"
tofile="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05.jar" />
<!-- Jogl Natives -->
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-windows-amd64.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-windows-amd64.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-linux-amd64.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-linux-amd64.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-windows-i586.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-windows-i586.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-linux-i586.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-linux-i586.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-macosx-ppc.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-macosx-ppc.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-macosx-universal.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-macosx-universal.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-solaris-i586.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-solaris-i586.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-solaris-amd64.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-solaris-amd64.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-solaris-sparc.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-solaris-sparc.jar" />
<get
src="http://jogamp.org/deployment/archive/master/jogl-old-1.1.1/jogl-natives-solaris-sparcv9.jar"
dest="${lib.repo.dir}/net/java/dev/jogl/jogl/1.1.1/jogl-1.1.1-natives-solaris-sparcv9.jar" />
<!-- Gluegen Natives -->
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-windows-amd64.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-windows-amd64.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-linux-amd64.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-linux-amd64.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-linux-i586.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-linux-i586.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-windows-i586.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-windows-i586.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-macosx-ppc.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-macosx-ppc.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-macosx-universal.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-macosx-universal.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-solaris-sparc.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-solaris-sparc.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-solaris-sparcv9.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-solaris-sparcv9.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-solaris-amd64.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-solaris-amd64.jar" />
<get
src="http://jogamp.org/deployment/archive/master/gluegen-old-1.0b6/gluegen-rt-natives-solaris-i586.jar"
dest="${lib.repo.dir}/net/java/dev/gluegen/gluegen-rt/1.0b05/gluegen-rt-1.0b05-natives-solaris-i586.jar" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>