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?

<configuration>
    <archive>
        <manifest>
            <addClasspath>true</addClasspath>
            <mainClass>com.palmer.bethan.App</mainClass>
        </manifest>
    </archive>
</configuration>
  •  Maven will generate javadocs for the App class.
  •  Maven will generate an executable JAR, which can be used to run the App class.
  •  Maven will include only the App class when it compiles the source code.
  •  Maven will add an empty main method to the App class.

Leave a Reply

Your email address will not be published. Required fields are marked *