Category: maven
-
HowTo – Generate Maven Projects Using Archetypes
Maven archetypes are invaluable for quickly bootstrapping projects with consistent structure. Here’s a practical guide to using them effectively. What are Maven Archetypes? Think of archetypes as project templates. They provide a standardized way to create new projects with predefined structures and dependencies. This ensures consistency across your team and saves considerable setup time. Common…
-
Running a single test with Maven
We can test just one class with maven by providing the test class as follows $ mvn -Dtest=com.abc.package.xyz.TestClass test or just one test $ mvn -Dtest=com.abc.package.xyz.TestClass#TestMethod Saves a lot of time when you want to skip all the tests but one.
