...
Currently the sample applications can be deployed using QuickStart. With the switch to Maven, the expected location for the JARs is no longer valid. Fortunately, QuickStart has a feature where it can read in one or more IDEA iml (module) file and use the JARs specified there. So far the Showcase application is configured to do this (see its quickstart.xml
file).(i)Even if you're using Eclipse, it is recommended that you generate the IDEA project files so that you can run the Showcase webapp via QuickStart. Maven 2 Jetty plugin. For example, you can run the showcase example application from the command line:
Code Block | ||
---|---|---|
| ||
cd Main class: org.apache.struts2.Main VM params: none Program params: quickstart Working directory: apps/showcase Classpath: must include at least the core module (Which contains the Main class) mvn jetty:run |
You could also use one of the Maven IDE plugins to run the plugin or simply execute the mvn
or mvn.bat
file as an external application within your IDEThese settings are already baked into the IDEA workspace file.
Maven Tips
A few helpful tips for using Maven are provided:
...