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