티스토리 뷰

.


- Outputline 

-- project info : 패키징타입, 버전, id설정 등

-- properties : 전역변수 비슷한 것

-- repositories : 정의하지 않을 경우 메이븐에서 제공해주는 repository 사용

-- dependencies : repository에 있는 라이브러리를 참조한다.

-- build : 메이븐 빌드 관련 설정


<build>

<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>

<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>

<resources>

<resource>

<directory>${project.basedir}/src/main/resources</directory>

<excludes>

<exclude>**/*.java</exclude>

</excludes>

</resource>

</resources>

<testResources>

<testResource>

<directory>${project.basedir}/src/test/resources</directory>

<excludes>

<exclude>**/*.java</exclude>

</excludes>

</testResource>

</testResources>

<plugins>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<configuration>

<source>1.6</source>

<target>1.6</target>

<encoding>UTF-8</encoding>

</configuration>

</plugin>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-resources-plugin</artifactId>

<configuration>

<encoding>UTF-8</encoding>

</configuration>

</plugin>

<plugin>

<artifactId>maven-eclipse-plugin</artifactId>

<version>2.4</version>

<configuration>

<additionalProjectnatures>

<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>

</additionalProjectnatures>

<additionalBuildcommands>

<buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>

</additionalBuildcommands>

<downloadSources>false</downloadSources>

<downloadJavadocs>false</downloadJavadocs>

<wtpversion>1.5</wtpversion>

</configuration>

</plugin>

<plugin>

<artifactId>maven-war-plugin</artifactId>

<configuration>

<warSourceDirectory>${project.basedir}/web</warSourceDirectory>

</configuration>

</plugin>

<plugin>

<artifactId>maven-clean-plugin</artifactId>

<version>2.4</version>

<configuration>

<filesets>

<fileset>

<directory>${project.basedir}/web/WEB-INF/lib</directory>

</fileset>

<fileset>

<directory>${project.basedir}/web/WEB-INF/classes</directory>

</fileset>

</filesets>

</configuration>

</plugin>

</plugins>

</build>

.

.

.

'공부 > maven :: build automation tool' 카테고리의 다른 글

리눅스에서 maven 빌드할 때 인코딩 fail 나는 경우  (0) 2015.04.14
pom.xml 2  (0) 2015.04.08
주로 사용하는 명령  (0) 2015.04.08
maven 프로젝트 생성시 아키타입 설정  (0) 2015.04.06
maven - filtering  (0) 2014.04.14
메이븐 설정(pom.xml)  (0) 2014.04.03
댓글
댓글쓰기 폼