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. |
|
| |||||||||||
Interview Questions and Answers - Order By Newest | |||||||||||
| |||||||||||
Ans. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  maven   artifact | |||||||||||
| |||||||||||
Ans. Yes , we have been using this plugin with our projects and its purpose is to warn and stop the Build if there are duplicates of the same package and class are being carried either directly or through transitive dependencies. the duplicate could be coming through different types of dependencies or through different versions of the same dependency. Its purpose is to make sure that there is only one copy thats being used at compile time and runtime and hence shouldnt later result in runtime problems. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  maven   ban duplicate classes enforcer plugin | |||||||||||
| |||||||||||
Ans. The simplest way is to ignore them if Maven enforcer plugin is complaining about it but it may lead to runtime problems later. We can do the dependency:tree to see from where these duplicate ones are coming and hence can exclude the duplicate one. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  maven   ban duplicate classes enforcer plugin | |||||||||||
| |||||||||||
Ans. Compile This is the default scope. Compile dependencies are available in all classpaths of a project. Moreover, these dependencies are propagated to dependent projects. Provided This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. Runtime This scope indicates that the dependency is not required for compilation, but is for execution. Test This scope indicates that the dependency is is only available for the test compilation and execution phases. This scope is not transitive. System This scope is similar to provided except that you have to provide the JAR which contains it explicitly. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  maven  maven dependency scopes | |||||||||||
| |||||||||||
Ans. Default , Clean and Site. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  maven | |||||||||||
| |||||||||||
Ans. This scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases. This scope is not transitive. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  maven Asked in 2 Companies | |||||||||||
| |||||||||||
Ans. That depends if the interface for the resource in Project B gets changed. If only the internal implementation is changed, No change is required in Project A. Project A is not even required to be rebuilt. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  project dependencies | |||||||||||
| |||||||||||
Ans. pom packaging is simply a specification that states the primary artifact is not a war or jar, but the pom.xml itself. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  pom  pom packaging  maven module | |||||||||||
| |||||||||||
Ans. Maven Module has a Parent whereas Project doesnt. when we add the parent section to the pom file, it adds the module section to the parent project pom file. When we execute mvn compile / install, it basically checks that module section of the parent to identify all the modules that needs to be compiled first. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  maven project vs module  maven project  maven module   frequent | |||||||||||
| |||||||||||
Ans. By specifying the modules in the same sequence in the parent pom. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  maven  pom file  maven modules | |||||||||||
| |||||||||||
Ans. Use -X option | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve   | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
Ans. 3.3.9 | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve   | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
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   | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
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 | |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||