Interview Questions and Answers for 'Maven' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Newest

   
 Q41. How to perform Maven Build and show Debug Information ?Maven
Ans. Use -X option

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


  Q42. What is Maven ?Maven
Ans. Maven is a build automation tool used primarily for Java projects.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     maven  build     Asked in 6 Companies      basic        frequent


 Q43. Difference between Maven and Ant ?Maven
Ans. Ant is procedural, we need to provide information about what to do and when to do through code.

Maven is declarative, everything is defined in the pom file.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     maven  maven vs ant     Asked in 1 Companies


 Q44. Write a Program to check if string is a Colidrome ?
(Colidrome is a word that has n alphabets followed by the reverse of the n alphabets, for ex - mallom)
Core Java
Ans.
public class Class {
   public static void main(String[] args) {
      String str = "mallam";
      String firstHalf = str.substring(0, str.length() / 2);
      String secondHalf = str.substring(str.length() / 2);

      if (firstHalf.equals(new StringBuilder(secondHalf).reverse().toString())) {
         System.out.println("It's a Colidrome");
      } else {
         System.out.println("It's not a Colidrome");
      }
   }
}

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Colidrome  String  Code  Coding     Asked in 1 Companies


 Q45. What is the parent child relationship in Maven ?Maven
Ans. Maven provides a facility to have a structure of inheritance relationship between modules / projects through parent tag in POM file. When we try building the parent project , all its child modules are built first in the order specified in the parent POM file.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     maven     Asked in 1 Companies


 Q46. What version of Maven are you working with ? Are you aware of changes in the most recent version of Maven ?Maven
Ans. 3.3.9

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q47. What is the difference between Maven and Jenkins ? Tools
Ans. Maven is a build tool whereas Jenkins is continuous integration system.

Maven deals with application compilation, build and packaging whereas Jenkins tracks SCM for triggering builds and packages, triggering parent project builds upon dependencies, initiating builds and performing alerts. So Jenkins is kind of a wrapper around SCM and Build Tool for continuous integration and deployment.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     maven  jenkins  build tools


 Q48. Have you ever had problems with SCM checkouts or tagging while doing release build in Maven ?Maven
Ans. Yes Sometimes due to caching , conflicting tags , or incorrect scm info within pom.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q49. What is the purpose of doing mvn eclipse:eclipse or man idea:ideaMaven
Ans. It is an instruction to maven to set up files ( class path , project ) within the IDE

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     IDE  eclipse  intelliJ  Maven


 Q50. How can we request maven to set up class path within the IDEMaven
Ans. We can do mvn eclipse:eclipse or mvn idea:idea depending on the type of IDE

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     IDE  Maven


 Q51. Which maven commands you usually work with ?Maven
 This question was recently asked at 'Akvelon'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     maven     Asked in 1 Companies


 Q52. What are the disadvantages of Maven ?Maven
Ans. Maven requires installation in the working system and the Maven plug-in for the IDE.
If the Maven code for an existing dependency is unavailable, you cannot add that dependency using Maven itself.
Some sources claim that Maven is slow.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q53. Which of the following is not the dependency scope in Maven ?Maven
a. Compile
b. Runtime
c. Debug
d. Test

Ans.c. Debug

 Q54. Which of following uniquely identify the artifact or dependency in Maven ?Maven
a. Artifact Id
b. Group Id
c. Version
d. All of the above

Ans.d. All of the above

 Q55. Which of following is not type of Maven Repository ?Maven
a. Local
b. Remote
c. Central
d. State

Ans.d. State

previous 30   

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: