//
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is available at
// https://www.eclipse.org/legal/epl-2.0
//
// This Source Code may also be made available under the following
// Secondary Licenses when the conditions for such availability set
// forth in the Eclipse Public License, v. 2.0 are satisfied:
// the Apache License v2.0 which is available at
// https://www.apache.org/licenses/LICENSE-2.0
//
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
// ========================================================================
//

[[jetty-maven-scanning]]
=== Files Scanned by the Jetty Maven Plugin

If you set a non zero `scanIntervalSeconds` link:#jetty-maven-plugin[configuration parameter], the `jetty-maven-plugin` will scan certain files for changes, and redeploy the webapp if necessary.
The files that are scanned depend on the goal being executed.

[[scanner-matrix]]
==== Scanner Matrix

[width="100%",cols="1,2a",options="header"]
|=======================================================================
|Goal                            |Files
|link:#jetty-run-goal[jetty:run] 
|
* pom.xml
* <dependencies>
* <classesDirectory>
* <testClassesDirectory>
* <webApp><descriptor/></webApp> or src/main/webapp/WEB-INF/web.xml
* <webApp><jettyEnvXml/></webApp> or src/main/webapp/WEB-INF/jetty-web.xml
* <webApp><baseResource>/WEB-INF/jetty-web.xml
* <scanTargets>
* <scanTargetPatterns>
* any link:{JDURL}/org/eclipse/jetty/webapp/WebAppContext.html#setDefaultsDescriptor%28java.lang.String%29[defaultsDescriptor] for the webapp
* any link:{JDURL}/org/eclipse/jetty/webapp/WebAppContext.html#setOverrideDescriptor%28java.lang.String%29[overrideDescriptor] for the webapp
* any dependencies that are wars or zips

|link:#running-assembled-webapp-as-war[jetty:run-war] 
|

* pom.xml
* <war>

|=======================================================================
