use of org.apache.maven.plugins.war.packaging.DependenciesAnalysisPackagingTask in project maven-plugins by apache.
the class AbstractWarMojo method getPackagingTasks.
/**
* Returns a <tt>List</tt> of the {@link org.apache.maven.plugins.war.packaging.WarPackagingTask}
* instances to invoke to perform the packaging.
*
* @param overlayManager the overlay manager
* @return the list of packaging tasks
* @throws MojoExecutionException if the packaging tasks could not be built
*/
private List<WarPackagingTask> getPackagingTasks(OverlayManager overlayManager) throws MojoExecutionException {
final List<WarPackagingTask> packagingTasks = new ArrayList<WarPackagingTask>();
packagingTasks.add(new CopyUserManifestTask());
if (useCache) {
packagingTasks.add(new DependenciesAnalysisPackagingTask());
}
final List<Overlay> resolvedOverlays = overlayManager.getOverlays();
for (Overlay overlay : resolvedOverlays) {
if (overlay.isCurrentProject()) {
packagingTasks.add(new WarProjectPackagingTask(webResources, webXml, containerConfigXML, currentProjectOverlay));
} else {
packagingTasks.add(new OverlayPackagingTask(overlay, currentProjectOverlay));
}
}
return packagingTasks;
}
Aggregations