Question: Bellow is a definition of the Maven JAR Plugin, where the main class is set to com.palmer.bethan.App. What is the effect of this?

  1. Maven will generate javadocs for the App class.
  2. Maven will generate an executable JAR, which can be used to run the App class.
  3. Maven will include only the App class when it compiles the source code.
  4. Maven will add an empty main method to the App class.

Answer: The correct answer of the above question is Option B:Maven will generate an executable JAR, which can be used to run the App class.