Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

사이트는 기본적으로 target/site/ 에 생성된다.

Code Block
mvn site

생성된 site 는 site:run goal 로 jetty WAS 를 띄워서 브라우저에서 http://localhost:8080 을 통해 볼 수 있다. (또는 target/site/index.html 을 브라우저에서 읽어도 된다._

Code Block
mvn site:run

 

Deploying Site

사전에 POM 에 distributionManagement 가 설정되어 있어야 한다.

...

  1. -o 옵션으로 offline 모드로 구동

    Code Block
    mvn -o site-deploy
  2. reporting 항목의 maven-project-info-reports-plugin 에서 dependencyLocationsEnabled  를 false 로 설정

    Code Block
    languagexml
    titlepom.xml
    <reporting>
        <plugins>
     
    	<plugin>
    		<groupId>org.apache.maven.plugins</groupId>
    		<artifactId>maven-project-info-reports-plugin</artifactId>
    		<version>2.7</version>
     
    		<configuration>
    		  <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
    		</configuration>
    	</plugin>
     
        </plugins>
      </reporting>

     

참고 자료

...