List all the dependency scope in Maven.

devquora
devquora

Posted On: Feb 22, 2018

 

The following are the various dependency scope used in Maven:
  • Compile: it is the default scope and it also tells whether the dependency is available or not.
  • Provided: it tell us that the dependency is provided dynamically i.e. at run time.
  • Run time: it gives us the information that the dependency is not needed for compilation but is needed at the time of execution.
  • Test: it says that dependency is available on for the test compilation and execution phases.
  • System: it tells us that the system path needs to be provided.
  • Import: it indicates that the dependency in the POM’s section should be placed in place of the identified POM.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Maven interview questions

    What do you understand by maven software?

    A powerful project management tool based on project object model is known as maven software. It helps in building proje..

    Maven interview questions

    What are some problems which we face while the development of a project when Maven is not used?

    Following is a list of some problems which we face while developing a project when Maven is not used: –Addition of ..

    Maven interview questions

    What are the tasks which are performed by Maven?

    All the problems which are mentioned above are simplified by Maven and it performs various tasks which are as follows: ..