Initial Commit

This commit is contained in:
Amit Kumar Nandi 2024-02-18 01:14:45 +05:30
parent 0fd5564f6c
commit 27289185ce
2 changed files with 18 additions and 2 deletions

View file

@ -39,10 +39,15 @@ This is a Java application for exporting data from a MySQL database to various f
```bash ```bash
mvn clean install mvn clean install
3. Run the application: 3. Run using jar:
```bash ```bash
java -jar out/DbExporter.jar java -jar out/DbExporter.jar
<p style="text-align: center;">OR</p>
4. Run using java mainClass:
```bash
mvn compile exec:java
## Usage ## Usage

13
pom.xml
View file

@ -54,7 +54,7 @@
<plugins> <plugins>
<!-- Set a compiler level --> <!-- Compiler Level Plugin -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
@ -91,6 +91,17 @@
</executions> </executions>
</plugin> </plugin>
<!-- Java Exec Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<mainClass>org.nmpl.App</mainClass>
</configuration>
</plugin>
</plugins> </plugins>