Skip to content

Commit a1ceff2

Browse files
committed
Added maven nature to the project
1 parent 2d8cb72 commit a1ceff2

File tree

4 files changed

+160
-0
lines changed

4 files changed

+160
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/target/
2+
/.classpath
3+
/.project
4+
/.settings/

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ It's a cross-platform java application, and its home page is at https://gpsprune
55

66
Here on github you'll find all the sources from version 1 to the current version 19.2, and in the wiki at https://github.com/activityworkshop/GpsPrune/wiki there's the beginning of a translation effort for anyone to contribute.
77
Currently just the Spanish translations are online, to see whether it's a workable idea or not. Please help with this if you can.
8+
9+
# Development
10+
Check `Eclipse` and `Maven` section in <https://github.com/activityworkshop/GpsPrune/blob/master/tim/prune/readme.txt>.

pom.xml

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project xmlns="http://maven.apache.org/POM/4.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
6+
<modelVersion>4.0.0</modelVersion>
7+
8+
<groupId>tim.prune</groupId>
9+
<artifactId>gpsprune</artifactId>
10+
<version>19.3-SNAPSHOT</version>
11+
<packaging>jar</packaging>
12+
13+
<name>tim.prune.gpsprune</name>
14+
<url>https://github.com/activityworkshop/GpsPrune</url>
15+
16+
<properties>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
<maven.compiler.source>1.8</maven.compiler.source>
19+
<maven.compiler.target>1.8</maven.compiler.target>
20+
<app.mainClass>tim.prune.GpsPrune</app.mainClass>
21+
<java3d.version>1.5.1</java3d.version>
22+
</properties>
23+
<repositories>
24+
<repository>
25+
<id>TUDelft</id>
26+
<url>http://simulation.tudelft.nl/maven/</url>
27+
</repository>
28+
</repositories>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>java3d</groupId>
33+
<artifactId>j3d-core</artifactId>
34+
<version>${java3d.version}</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>java3d</groupId>
38+
<artifactId>vecmath</artifactId>
39+
<version>${java3d.version}</version>
40+
</dependency>
41+
<dependency>
42+
<groupId>java3d</groupId>
43+
<artifactId>j3d-core-utils</artifactId>
44+
<version>${java3d.version}</version>
45+
</dependency>
46+
</dependencies>
47+
48+
<build>
49+
<outputDirectory>${project.build.directory}/classes</outputDirectory>
50+
<finalName>${project.artifactId}_${project.version}</finalName>
51+
<sourceDirectory>${project.basedir}/</sourceDirectory>
52+
<resources>
53+
<resource>
54+
<directory>${project.basedir}/</directory>
55+
<includes>
56+
<include>tim/prune/gui/images/*</include>
57+
<include>tim/prune/lang/*</include>
58+
<include>tim/prune/function/srtm/srtmtiles.dat</include>
59+
<include>tim/prune/*.txt</include>
60+
</includes>
61+
</resource>
62+
</resources>
63+
64+
<pluginManagement><!-- lock down plugins versions to avoid using Maven
65+
defaults (may be moved to parent pom) -->
66+
<plugins>
67+
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
68+
<plugin>
69+
<artifactId>maven-clean-plugin</artifactId>
70+
<version>3.1.0</version>
71+
</plugin>
72+
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
73+
<plugin>
74+
<artifactId>maven-resources-plugin</artifactId>
75+
<version>3.0.2</version>
76+
</plugin>
77+
<plugin>
78+
<artifactId>maven-compiler-plugin</artifactId>
79+
<version>3.8.0</version>
80+
</plugin>
81+
<plugin>
82+
<artifactId>maven-jar-plugin</artifactId>
83+
<version>3.0.2</version>
84+
<configuration>
85+
<archive>
86+
<manifest>
87+
<mainClass>${app.mainClass}</mainClass>
88+
</manifest>
89+
</archive>
90+
</configuration>
91+
92+
</plugin>
93+
<plugin>
94+
<artifactId>maven-install-plugin</artifactId>
95+
<version>2.5.2</version>
96+
</plugin>
97+
<plugin>
98+
<artifactId>maven-deploy-plugin</artifactId>
99+
<version>2.8.2</version>
100+
</plugin>
101+
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
102+
<plugin>
103+
<artifactId>maven-site-plugin</artifactId>
104+
<version>3.7.1</version>
105+
</plugin>
106+
<plugin>
107+
<artifactId>maven-project-info-reports-plugin</artifactId>
108+
<version>3.0.0</version>
109+
</plugin>
110+
<plugin>
111+
<groupId>org.apache.maven.plugins</groupId>
112+
<artifactId>maven-eclipse-plugin</artifactId>
113+
<version>2.10</version>
114+
<configuration>
115+
<downloadSources>true</downloadSources>
116+
<downloadJavadocs>true</downloadJavadocs>
117+
</configuration>
118+
</plugin>
119+
120+
<plugin>
121+
<groupId>org.codehaus.mojo</groupId>
122+
<artifactId>exec-maven-plugin</artifactId>
123+
<version>1.6.0</version>
124+
<configuration>
125+
<mainClass>${app.mainClass}</mainClass>
126+
</configuration>
127+
</plugin>
128+
129+
</plugins>
130+
</pluginManagement>
131+
</build>
132+
133+
</project>

tim/prune/readme.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,26 @@ or other link can of course be made should you wish.
2727
To specify a language other than the default, use an additional parameter, eg:
2828
java -jar gpsprune_19.2.jar --lang=DE
2929

30+
Maven
31+
=====
32+
33+
To build GpsPrune, simply execute:
34+
mvn clean install
35+
36+
The resulting jar will be placed in target/ folder
37+
38+
To run GpsPrune, simply execute:
39+
mvn clean install exec:java
40+
41+
The resources in pom.xml are changed (so they are not the maven common ones) because of the backward compatibility with the project.
42+
43+
Eclipse
44+
=======
45+
46+
You can import the project in Eclipse either by calling:
47+
mvn eclipse:eclipse
48+
49+
and then File > Import > Existing Projects into Workspace or using File > Import > Existing Maven Projects.
3050

3151
New with version 19.2
3252
=====================

0 commit comments

Comments
 (0)