pom.xml下自己规定source folders(java代码)&resource folder(配置文件)&webapp目录路径(视图层)

在pom文件中里面写


<build>
	<plugins>	
		<plugin>
			<groupId>org.apache.maven.pluginsgroupId>
			<artifactId>maven-war-pluginartifactId>
			<configuration>
				<archive>
					<addMavenDescriptor>falseaddMavenDescriptor>
				archive>
				
				<warSourceDirectory>${basedir}/WebRootwarSourceDirectory>
				<webXml>${basedir}/WebRoot/WEB-INF/web.xmlwebXml>
			configuration>
	 	plugin>
  	plugins>

	<resources>
		<resource>
			
			<directory>${basedir}/src/main/javadirectory>
		resource>
		<resource>
			
			<directory>${basedir}/src/main/resourcesdirectory>
		resource>
	resources>
	<sourceDirectory>${basedir}/srcsourceDirectory>
build>

你可能感兴趣的:(java个人笔记,java,xml,web,app)