Multi-module Maven project and jetty:run

Create a profile inside the war module (project-war). Within this profile, configure jetty to attach to a lifecycle phase and execute the run goal explicitly. Now when maven runs from the toplevel project with that profile enabled, it will invoke jetty:run and have sister module dependency resolution (as is normal when executing maven commands from … Read more

How to control VM arguments for maven-jetty-plugin?

The enviroment variable MAVEN_OPTS is the answer. The string content of MAVEN_OPTS is passed to JVM (java.exe). Linux: in shell type export MAVEN_OPTS=…. Windows: in shell (cmd.exe) type set MAVEN_OPTS=… For example: on Windows set MAVEN_OPTS=”-Xmx1024m” sets the heap size of the Maven process to 1024mb. Update (01.04.2013): Pass it directly to Jetty. Matthew Farwell … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)