...
Profile | Description |
---|---|
default | Builds site, api, and core |
apps | Builds the example applications |
plugins | Builds all plugins |
extras | Includes the extras module that cannot be part of the default build due to licensing incompatibilties |
xwork | Includes the xwork build |
...
Code Block | ||
---|---|---|
| ||
> mvn -Pextras,plugins,xwork
|
Using both profiles is especially important when using Maven to build your IDE project files (recommended).
...
Code Block | ||
---|---|---|
| ||
> mvn idea:idea -Doverwrite=true -Papps,extras,thirdparty,plugins,xwork
If you only need to rebuild some of the modules, adjust the list of "profiles".
|
...
Code Block | ||
---|---|---|
| ||
> mvn -Pthirdparty,plugins,xwork eclipse:eclipse
|
Info | ||
---|---|---|
| ||
Many Struts 2 developers use IDEA, and the Eclipse project files are not as well-tested or featureful as the IDEA versions. But as far as we know, they work! |
...
Code Block | ||
---|---|---|
| ||
mvn -o -Pextras,plugins,xwork
|
Skipping test execution
...
Code Block | ||
---|---|---|
| ||
mvn -Dmaven.test.skip=true -Pextras,plugins,xwork
|
Of course, if you find tests are failing, please submit a patch to fix them!
...
Code Block | ||
---|---|---|
| ||
mvn -Pextras,apps,plugins install
|
Next, you need to run the assembly build to create the release files. From the struts2/assembly
directory, run:
...