From 8c8717bf05aa3e109df7ecab5c304ba784eb8045 Mon Sep 17 00:00:00 2001 From: Mariana Azevedo Date: Sun, 10 May 2020 22:27:03 -0300 Subject: [PATCH] Adding information on README.md. Adding maven-assembly-plugin in the pom.xml. --- .classpath | 6 +++++- .settings/org.eclipse.core.resources.prefs | 1 + README.md | 20 +++++++++++++++++++- pom.xml | 19 +++++++++++++++++-- 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/.classpath b/.classpath index e824031..6ea41f9 100644 --- a/.classpath +++ b/.classpath @@ -13,7 +13,11 @@ - + + + + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index f9fe345..839d647 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -1,4 +1,5 @@ eclipse.preferences.version=1 encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 encoding//src/test/java=UTF-8 encoding/=UTF-8 diff --git a/README.md b/README.md index 8282810..9510d83 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A project of solved exercises from Hackerrank website in Java and SQL. -## Summary +### Summary #### Java Challenges @@ -14,3 +14,21 @@ A project of solved exercises from Hackerrank website in Java and SQL. #### SQL Challenges - [Practice SQL](https://github.com/mariazevedo88/hackerrank-challenges/blob/master/sql/SQL.md) + +#### Run the .jar file + +In order to run any Java Challenge in the project, on **Linux/Mac/Windows** terminal, run the jar simply as following: + +```bash +java -cp hackerrank-challenges-1.0.0-SNAPSHOT-jar-with-dependencies.jar {Class that you want execute} +``` + +For example, to run the `Matrix.java` in the `Graphs` section: + +```bash +java -cp hackerrank-challenges-1.0.0-SNAPSHOT-jar-with-dependencies.jar io.github.mariazevedo88.hc.prepkit.graphs.Matrix +``` + +#### Contributing + +[![](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/images/0)](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/links/0)[![](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/images/1)](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/links/1)[![](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/images/2)](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/links/2)[![](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/images/3)](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/links/3)[![](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/images/4)](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/links/4)[![](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/images/5)](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/links/5)[![](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/images/6)](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/links/6)[![](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/images/7)](https://sourcerer.io/fame/mariazevedo88/mariazevedo88/hackerrank-challenges/links/7) \ No newline at end of file diff --git a/pom.xml b/pom.xml index e4ab56a..d65c526 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.github.mariazevedo88 hackerrank-challenges - 0.0.1-SNAPSHOT + 1.0.0-SNAPSHOT jar hackerrank-challenges @@ -41,7 +41,6 @@ - hackerrank-challenges org.apache.maven.plugins @@ -52,6 +51,22 @@ ${java.version} + + maven-assembly-plugin + + + package + + single + + + + + + jar-with-dependencies + + +