Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Difference between maven scope compile and provided for jar packaging?



Difference between maven scope compile and provided for jar packaging?..

Answer / Jai Prakash Bhardwaj

In Maven, the `compile` scope includes dependencies that are required to build the project but not necessary at runtime. On the other hand, the `provided` scope includes libraries that will be provided by the deployment environment (such as a web server or application server). The main difference is that `compile` dependencies should be included in the compiled application, while `provided` dependencies are excluded from the final artifact.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Maven Interview Questions

How to force the intellij idea to reread/update all dependencies specified in the pom file?

1 Answers  


What is maven lifecycle?

1 Answers  


What are the build phases in maven?

1 Answers  


Mention the phases of cleaning lifecycle.

1 Answers  


How can we see dependencies for the project and where exactly they are defined?

1 Answers  


How do you specify the java compiler version in a pom.xml file?

1 Answers  


What is an uber jar?

1 Answers  


What is maven repository central?

1 Answers  


Why do we say “maven uses convention over configuration”?

1 Answers  


What do you mean by maven and why it is used?

1 Answers  


What are the default values for the packaging element?

1 Answers  


For POM what are the minimum required elements?

1 Answers  


Categories