JSP

 ROOT context 를 임의의 webapp 로 변경하기

 

 

pom.xml

<finalName>qna</finalName>

 


	<build>
		<finalName>qna</finalName>
		
		<sourceDirectory>src</sourceDirectory>
		<testSourceDirectory>test</testSourceDirectory>
		<outputDirectory>webapp/WEB-INF/classes</outputDirectory>
		<testOutputDirectory>target/test-classes</testOutputDirectory>


		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<encoding>utf-8</encoding>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-eclipse-plugin</artifactId>
				<version>2.9</version>
				<configuration>
					<downloadSources>true</downloadSources>
					<wtpversion>2.0</wtpversion>
					<wtpContextName>/</wtpContextName>
				</configuration>
			</plugin> 

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<warSourceDirectory>webapp</warSourceDirectory>
					<webXml>webapp/WEB-INF/web.xml</webXml>
				</configuration>
			</plugin>
			
		<plugin>
	        <groupId>org.apache.maven.plugins</groupId>
	        <artifactId>maven-dependency-plugin</artifactId>
	        <version>2.9</version>
	        <configuration>
		   		<outputDirectory>${project.basedir}/webapp/WEB-INF/lib</outputDirectory>
		   		<overWriteReleases>false</overWriteReleases>
		   		<overWriteSnapshots>false</overWriteSnapshots>
		   		<overWriteIfNewer>true</overWriteIfNewer>
			</configuration>
	      </plugin>
      
      
      
      
      
		</plugins>
		
		
	</build>


 

server.xml

 

 <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

		<Context docBase="qna" path="" reloadable="true"></Context>



   </Host>

 

 

 

 

 

 

 

 

 

 

jsp

 

about author

PHRASE

Level 60  머나먼나라

여자는 가슴 설레는 유혹을 받고 싶어하지만 타이밍과 리듬을 고려하지 않는 구애는 성공하기 어렵다. 이쪽의 감정을 되는대로 내뱉어서는 만사가 헛수고로 돌아간다. -프란체스코 알베로니

댓글 ( 4)

댓글 남기기

작성