From 0fd5564f6c0a964934a896063329aeb2b084a1fa Mon Sep 17 00:00:00 2001
From: Amit Kumar Nandi <11887616+aamitn@users.noreply.github.com>
Date: Sun, 18 Feb 2024 00:56:17 +0530
Subject: [PATCH] Initial Commit
---
Readme.md | 17 ++++----
pom.xml | 56 ++++++++++++++++++++++++-
src/main/resources/META-INF/MANIFEST.MF | 3 ++
3 files changed, 67 insertions(+), 9 deletions(-)
create mode 100644 src/main/resources/META-INF/MANIFEST.MF
diff --git a/Readme.md b/Readme.md
index ad44358..8e37d0a 100644
--- a/Readme.md
+++ b/Readme.md
@@ -23,25 +23,26 @@ This is a Java application for exporting data from a MySQL database to various f
## Prerequisites
-* Java 11 or higher
+* Java 8 or higher
* MySQL database
## Getting Started
1. Clone the repository:
- git clone https://github.com/your-username/db-exporter.git
+ ```bash
+ git clone https://github.com/aamitn/DbExporter.git
+ cd DbExporter
-2. Compile the code:
+2. Compile the code:
- cd db-exporter
-
- javac -cp .:path/to/mysql-connector-java.jar org/nmpl/\*.java org/nmpl/exporters/\*.java org/nmpl/exceptions/\*.java
+ ```bash
+ mvn clean install
3. Run the application:
- java -cp .:path/to/mysql-connector-java.jar org.nmpl.App
-
+ ```bash
+ java -jar out/DbExporter.jar
## Usage
diff --git a/pom.xml b/pom.xml
index 21936e3..9a19fb3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,9 +4,10 @@
org.nmpl
DbExporter
- 1.0-SNAPSHOT
+ 1.2-SNAPSHOT
jar
+
DbExporter
http://maven.apache.org
@@ -36,10 +37,63 @@
3.8.1
test
+
org.reflections
reflections
0.10.2
+
+
+
+
+
+ DbExporter
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 2.3.2
+
+
+ 21
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+ 2.3
+
+
+
+ package
+
+ shade
+
+
+ false
+ false
+
+
+
+ org.nmpl.App
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..508d04f
--- /dev/null
+++ b/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: org.nmpl.App
+