How to run a java class using maven

If you want to run a java class using maven, you can do it in this way:

time mvn -Dexec.classpathScope=runtime "-Dexec.args=-classpath %classpath
ro.www.operations.StaticAds" -Dexec.executable=java process-classes
org.codehaus.mojo:exec-maven-plugin:1.2:exec

Leave a Reply

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