What would you do if you have to add a jar to the project using maven?
Answer / Avanish Kumar
"To add a JAR to your Maven project, you can either download the JAR file manually and include it in the 'dependencies' section of the pom.xml file under 'system' scope or use a repository manager like Nexus or Artifactory to host the JAR and add its coordinates to the pom.xml file. The preferred method is to use a central Maven repository (like Maven Central) to download the required dependencies automatically."n
| Is This Answer Correct ? | 0 Yes | 0 No |
What is an archetype in maven?
How to specify the sequence in which sub modules needs to be built?
What do you mean by maven?
What is maven build life cycle?
How do you get source jars from maven repository?
What are the different types of profile in maven? Where will you define these profiles?
What is a mojo?
What are the tasks which are performed by maven?
What is a transitive dependency? Can we override transitive dependency version and if yes, how?
What is the pom packaging in maven?
Where are maven dependencies stored?
List the differences between ant and maven.