Maven can now build both the PAR application and the collection of dependencies required for the application. In this step the PAR and dependencies are copied to the dm Server and the PAR is started.
Copy the JARs in the target/par-provided
directory into the
$DMS_HOME/repository/bundles/usr/
directory.
Copy the PAR (greenpages-1.0.0.SNAPSHOT.par
) in the target/
directory
into the $DMS_HOME/pickup
directory.
Start the dm Server. The server may issue warnings, for example:
<SPDE0010I> Deployment of 'greenpages' version '1.0.0.SNAPSHOT' completed.
Once deployment of the GreenPages application has completed, navigate to http://localhost:8080/greenpages/home.htm.
<SPDE0010I> Deployment of 'greenpages' version '1.0.0.SNAPSHOT' completed.
The GreenPages application has been built (and automatically tested) from the command line, with a complete dependency set generated for independent deployment.
The automated build procedure is to run mvn clean install
from the
base directory, generating the component bundles, and then to run mvn clean package
from
the greenpages
directory
to generate the par and produce all its dependencies.