From f486675fadf05d23d1144d097490f44d50ebade0 Mon Sep 17 00:00:00 2001
From: Douglas Gillespie <50671166+douggillespie@users.noreply.github.com>
Date: Fri, 4 Feb 2022 16:45:17 +0000
Subject: [PATCH] Adding a Maven build configuration to the repo to make life
easier for people wanting to build an executable jar file
---
buildconfigurations/Build PAMGuard.launch | 21 +++++++++++++++++++++
buildconfigurations/readme.txt | 16 ++++++++++++++++
dependency-reduced-pom.xml | 9 ++-------
3 files changed, 39 insertions(+), 7 deletions(-)
create mode 100644 buildconfigurations/Build PAMGuard.launch
create mode 100644 buildconfigurations/readme.txt
diff --git a/buildconfigurations/Build PAMGuard.launch b/buildconfigurations/Build PAMGuard.launch
new file mode 100644
index 00000000..a004d384
--- /dev/null
+++ b/buildconfigurations/Build PAMGuard.launch
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/buildconfigurations/readme.txt b/buildconfigurations/readme.txt
new file mode 100644
index 00000000..b3dd6329
--- /dev/null
+++ b/buildconfigurations/readme.txt
@@ -0,0 +1,16 @@
+To build an executable jar file from the PAMGuard source using Eclipse, you need to use this build configuration
+'Build PAMGuard.launch'
+You cannot simply export the project as a runnable jar file, or you will not get the required Maven dependencies.
+To use this with Eclipse, from your workspace, select File, then import, then in the list of things to be imported select
+Run/Debug Launch Configurations, hit Next
+Then in the Import Launch Configurations panel, browse to this folder. Select the folder (not a specific file)
+then in the left panel, select the folder, then in the right panel the configuration you wish to import
+(i.e. Build PAMGuard.launch) and hit Finish
+Then go to 'Run Configurations' and find the launch in the 'Maven Builds' section. You'll probably have to change the
+Base directory at the top of the panel to select the right project within your workspace.
+Once that's done, you can Run the configuration. It will take a while to get all the Maven dependencies and will output
+a runnable jar file into the 'targets' folder in your workspace.
+The name and version number of the created files are taken from the POM.xml file, so edit that if you want a different name.
+For unknown reasons, it makes three files. They are all the same, you can delete the ones starting with 'original-' and
+ending with '-shared'
+
diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml
index 7c63d262..f14e35da 100644
--- a/dependency-reduced-pom.xml
+++ b/dependency-reduced-pom.xml
@@ -2,9 +2,9 @@
4.0.0
org.pamguard
- PamguardBeta
+ Pamguard
Pamguard Java12+
- 2.02.02
+ 2.02.03a
Pamguard for Java 12+, using Maven to control dependcies
www.pamguard.org
@@ -191,11 +191,6 @@
central
https://repo1.maven.org/maven2
-
-
- github
- https://maven.pkg.github.com/macster110/jpam
-