Git Product home page Git Product logo

new_java_maven's Introduction

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 ;)

new_java_maven's People

Contributors

hansnoel11 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.