Configuration and use of jetty under window

In the installed maven environment, the configuration

in pom.xml is as follows:

<build>

<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty-maven-plugin</artifactId>
				<configuration>
					<webAppConfig>
<!-- 						<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames> -->
					</webAppConfig>
					<scanIntervalSeconds>0</scanIntervalSeconds>
					<webApp>
<!-- Running project name--> <contextPath>/approval</contextPath>
<!-- jetty xml 文件-->					<defaultsDescriptor>src/main/resources/webdefault.xml</defaultsDescriptor>
						<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
					</webApp>
					<connectors>
						<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
							<port>8085</port>
							<maxIdleTime>60000</maxIdleTime>
						</connector>
					</connectors>
				</configuration>
			</plugin>
</build>


Eclipse configuration
debug configuration configuration: Create a module under
Main
Tag -->Maven Build
Goals: clean package jetty:run
Usersettings: Specify maven warehouse, ckd select debug output and skip tests

Source
to add the path to debug project

Environment
name:Maven_opts
value:- Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4001,server=y,suspend=y

Tag-->remote java application
procject : corresponding to the above build
host: localhost
port: 4001 //and above The address in the value is the same

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326847734&siteId=291194637