Skip to content

Commit b79d291

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

File tree

4 files changed

+161
-0
lines changed

4 files changed

+161
-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: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
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.3.1</java3d.version>
22+
<j3dutils.version>1.5.2</j3dutils.version>
23+
</properties>
24+
<repositories>
25+
<repository>
26+
<id>talanlabs-releases-repository</id>
27+
<url>http://nexus.talanlabs.com/content/repositories/releases/</url>
28+
</repository>
29+
</repositories>
30+
31+
<dependencies>
32+
<dependency>
33+
<groupId>java3d</groupId>
34+
<artifactId>j3d-core</artifactId>
35+
<version>${java3d.version}</version>
36+
</dependency>
37+
<dependency>
38+
<groupId>java3d</groupId>
39+
<artifactId>vecmath</artifactId>
40+
<version>${java3d.version}</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>java3d</groupId>
44+
<artifactId>j3dutils</artifactId>
45+
<version>${j3dutils.version}</version>
46+
</dependency>
47+
</dependencies>
48+
49+
<build>
50+
<outputDirectory>${project.build.directory}/classes</outputDirectory>
51+
<finalName>${project.artifactId}_${project.version}</finalName>
52+
<sourceDirectory>${project.basedir}/</sourceDirectory>
53+
<resources>
54+
<resource>
55+
<directory>${project.basedir}/</directory>
56+
<includes>
57+
<include>tim/prune/gui/images/*</include>
58+
<include>tim/prune/lang/*</include>
59+
<include>tim/prune/function/srtm/srtmtiles.dat</include>
60+
<include>tim/prune/*.txt</include>
61+
</includes>
62+
</resource>
63+
</resources>
64+
65+
<pluginManagement><!-- lock down plugins versions to avoid using Maven
66+
defaults (may be moved to parent pom) -->
67+
<plugins>
68+
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
69+
<plugin>
70+
<artifactId>maven-clean-plugin</artifactId>
71+
<version>3.1.0</version>
72+
</plugin>
73+
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
74+
<plugin>
75+
<artifactId>maven-resources-plugin</artifactId>
76+
<version>3.0.2</version>
77+
</plugin>
78+
<plugin>
79+
<artifactId>maven-compiler-plugin</artifactId>
80+
<version>3.8.0</version>
81+
</plugin>
82+
<plugin>
83+
<artifactId>maven-jar-plugin</artifactId>
84+
<version>3.0.2</version>
85+
<configuration>
86+
<archive>
87+
<manifest>
88+
<mainClass>${app.mainClass}</mainClass>
89+
</manifest>
90+
</archive>
91+
</configuration>
92+
93+
</plugin>
94+
<plugin>
95+
<artifactId>maven-install-plugin</artifactId>
96+
<version>2.5.2</version>
97+
</plugin>
98+
<plugin>
99+
<artifactId>maven-deploy-plugin</artifactId>
100+
<version>2.8.2</version>
101+
</plugin>
102+
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
103+
<plugin>
104+
<artifactId>maven-site-plugin</artifactId>
105+
<version>3.7.1</version>
106+
</plugin>
107+
<plugin>
108+
<artifactId>maven-project-info-reports-plugin</artifactId>
109+
<version>3.0.0</version>
110+
</plugin>
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-eclipse-plugin</artifactId>
114+
<version>2.10</version>
115+
<configuration>
116+
<downloadSources>true</downloadSources>
117+
<downloadJavadocs>true</downloadJavadocs>
118+
</configuration>
119+
</plugin>
120+
121+
<plugin>
122+
<groupId>org.codehaus.mojo</groupId>
123+
<artifactId>exec-maven-plugin</artifactId>
124+
<version>1.6.0</version>
125+
<configuration>
126+
<mainClass>${app.mainClass}</mainClass>
127+
</configuration>
128+
</plugin>
129+
130+
</plugins>
131+
</pluginManagement>
132+
</build>
133+
134+
</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)