Skip to content

jbodart-argenx/maven-example-project-for-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maven-example-project-for-java

Maven is a software project management and comprehension tool, so in other words it can be used to manage all software cycle. This software it helps me a lot in my works and personal projects and in this post I try to share some knownledge and information that I learned.

I create a simple project available that cover most of the maven lifecycle. I hope it will help you on your job or personal project(s).


How to build

In order to execute build my example you have two way:

  • Maven CLI (Command Line Interface). In this case you need to install maven see here for more details. Here the instruction:

    1. Clone git repository or download the maven project

    2. Open terminal or your prompt and navigate to maven example project (you must go inside the folder)

    3. Execute the following command: mvn clean install

    4. Go to "How To execute" in order to execute the program

  • Eclipse - The following instructions are tested for Eclipse Mars (version 4.5).

    1. Clone git repository or download the maven project

    2. Start eclipse

    3. Import maven project into eclipse by select "File" → "Import..."

    4. Write "maven" in "Select an import source" field, select "Existing Maven Projects" and then click on "Next >"

    5. Browse to the directory where you save the project and then click on "Finish"

    6. Click with the right mouse button on the root project and select "Run As" → "Maven build"

    7. Write "clean install" in "Goals" input field, then click on "Apply" and finally click on "Run"
      Note: If you want execute sonar, you will insert "sonar" in "Profiles" input field.

    8. Go to "How To execute" in order to execute the program


How to execute

  1. Open terminal or your prompt and navigate to maven example project (you must go inside the folder)
  2. Execute the following command (replace '/' with '' if you are on windows environment): java -jar ./target/maven-example-project-for-java.jar

Happy coding ;)

About

Maven example project for Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%