Maven Notes

Here are some Maven notes.

To use properties in your pom.xml file:

First, define the property:


Here is how to use it in a file:


To run a specific class:

mvn exec:java -Dexec.mainClass="info.shelfunit.akka.separate.PiRunner"

To run a specific test file:

mvn test -Dtest=info.shelfunit.webapp.UserManagerBeanTest

To run a specific test in that file:

mvn test -Dtest=info.shelfunit.webapp.UserManagerBeanTest#testDigestString

I will update these notes as I learn more.



There are 83 words in this article.