Run Specific Tests with Maven
· One min read
Maven Surefire accepts the -Dtest property for selecting unit tests.
Maven Surefire accepts the -Dtest property for selecting unit tests.
A plain Maven JAR normally contains only your project's compiled classes and resources. To run it with java -jar, the archive needs a Main-Class manifest entry, and every runtime dependency must either be available on the classpath or packaged into an executable "fat" JAR.
Maven resolves dependencies from repositories. A mirror in settings.xml can redirect requests to a faster or internally controlled repository manager.