Hi I have added the "exec:java" goal to pom.xml But it doesn't find the classpath during runtime.
this is the POM http://emarket.svn.sourceforge.net/viewvc/emarket/trunk/platform/pom.xml?revision=1211&view=markup What is wrong with the goal? matrix:/home/snambi/emarket/platform> $mvn exec:java [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'exec'. [INFO] ------------------------------------------------------------------------- --- [INFO] Building eMarket Platform [INFO] task-segment: [exec:java] [INFO] ------------------------------------------------------------------------- --- [INFO] Preparing exec:java [INFO] No goals needed for project - skipping Downloading: http://gnuranch.com/maven/repository//javax/management/jmx/1.2.1/jm x-1.2.1.pom Downloading: http://repo1.maven.org/maven2/javax/management/jmx/1.2.1/jmx-1.2.1. pom Downloading: http://gnuranch.com/maven/repository//com/sleepycat/je/berkeleydb/1.7.1/berkeleydb-1.7.1.pom Downloading: http://repo1.maven.org/maven2/com/sleepycat/je/berkeleydb/1.7.1/berkeleydb-1.7.1.pom Downloading: http://gnuranch.com/maven/repository//javax/mail/mail/1.3/mail-1.3.pom Downloading: http://repo1.maven.org/maven2/javax/mail/mail/1.3/mail-1.3.pom [INFO] [exec:java] starting broker broker.Operations initializing Oct 29, 2007 10:39:04 AM util.Log init INFO: logger config file not found. using default configuration. Oct 29, 2007 10:39:04 AM util.Log configureDefault INFO: number of existing log handlers 1 Oct 29, 2007 10:39:04.244 FINE [ broker.Operations.main()] util.Log.configureDefault() - default configuration complete Oct 29, 2007 10:39:04.248 FINE [broker.Operations.main()] broker.Operations.init() - connection Mgr creation successful Oct 29, 2007 10:39:04.332 INFO [broker.Operations.main()] common.database.DBConnectionPool.connect() - new connection jdbc:postgresql://localhost/brokerdb:otp/otp123, broker.Operations.main() java.sql.SQLException: No suitable driver java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection (DriverManager.java:545) at java.sql.DriverManager.getConnection (DriverManager.java:171) at common.database.DBConnectionPool.connect (DBConnectionPool.java:114) at common.database.DBConnectionPool.init (DBConnectionPool.java:97) at common.database.DBConnectionPool.<init>( DBConnectionPool.java:70) at common.database.DBConnectionManager.createConnectionPool (DBConnectionManager.java:66) at broker.Operations.init(Operations.java :112) at broker.Operations.main(Operations.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271) at java.lang.Thread.run(Thread.java:595) Oct 29, 2007 10:39:04.340 SEVERE [broker.Operations.main()] common.database.DBConnectionPool.connect() - Error connection to database jdbc:postgresql://localhost/brokerdb java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:171) at common.database.DBConnectionPool.connect(DBConnectionPool.java:114) at common.database.DBConnectionPool.init(DBConnectionPool.java:97) at common.database.DBConnectionPool.<init>(DBConnectionPool.java:70) at common.database.DBConnectionManager.createConnectionPool(DBConnectionManager.java:66) at broker.Operations.init(Operations.java:112) at broker.Operations.main (Operations.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:585) at org.codehaus.mojo.exec.ExecJavaMojo$1.run( ExecJavaMojo.java:271) at java.lang.Thread.run(Thread.java:595) Oct 29, 2007 10:39:04.342 SEVERE [broker.Operations.main()] broker.Operations.main () - Operation failed java.sql.SQLException: No suitable driver [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 seconds [INFO] Finished at: Mon Oct 29 10:39:04 PST 2007 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ matrix:/home/snambi/emarket/platform> $