maven 3.0.3으로 마이그레이션했지만 메이븐 사이트를 빌드 할 수 없습니다. 사실 내 프로젝트는 사이트 설명자를 아티팩트로 제공하지 않는 외부 상위 pom을 사용합니다.Maven 3 사이트 설명자 문제 : 배포 아티팩트가 작동하지 않거나 사이트가 구축되지 않습니다.
1- 부모가 site.xml을 제공하지 않아도 메이븐 사이트를 생성 할 수 있습니까? 나는 그것을 작동하게 만들 수 없다. "mvn site"명령이 계속해서 다음과 같은 가짜 (ArtifactResolutionException : 사이트 설명자를 찾을 수 없음)의 site.xml을 다운로드하려고 할 때 충돌합니다.
2 - 어떻게 site.xml을 설치 또는 배포합니까? 메이븐 저장소. 부모 pom에 다음 xml을 추가하려고 시도하지만 mvn install 명령으로 내 로컬 저장소에 아무 것도 설치하지 않습니다. 내 프로젝트에 SRC/사이트/site.xml 파일을했습니다, 내 프로젝트는 치어 유형의 프로젝트 받는다는-사이트 플러그인 첨부-설명 첨부-설명
입니다 UPDATE
아니, 내가
을 내 치어에서 을 작동하지 않습니다 플러그인 관리에서 6,<url>${site_url_pattern}</url>
<distributionManagement>
<site>
<id>test</id>
<url>file://${baseDir}../maven-site</url>
</site>
</distributionManagement>
나는 내가 같은 프로젝트 내가 할
의 SRC/사이트/site.xml 파일을
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<configuration>
<locales>en</locales>
<reportPlugins>
<!-- Manage site info part creation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin
</artifactId>
<version>2.2</version>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
<offline>true</offline>
</configuration>
<reports>
<report>cim</report>
<!-- Dependencies report are consuming resources set MAVEN_OPTS=-Xmx1024m if java heap <report>dependencies</report> <report>dependencies-convergence</report> <report>dependencies-management</report> -->
<report>index</report>
<report>issue-tracking</report>
<!-- pb time generation on licence report <report>license</report> -->
<report>mailing-list</report>
<report>plugin-management</report>
<report>project-team</report>
<report>scm</report>
<report>summary</report>
</reports>
</plugin>
</reportPlugins>
</configuration>
<executions>
<execution>
<id>attach-descriptor</id>
<goals>
<goal>attach-descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
을 넣어 플러그인에서
<plugin>
<!-- Site plugin -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<configuration>
<chmod>true</chmod>
<inputEncoding>${encoding}</inputEncoding>
<outputEncoding>${encoding}</outputEncoding>
</configuration>
</plugin>
를 넣어 mvn 사이트가 아직 있습니다.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:si
te (default-site) on project ner-delivery: SiteToolException: The site descripto
r cannot be resolved from the repository: ArtifactResolutionException: Unable to
locate site descriptor: Could not transfer artifact com.sopragroup.evolan:evola
n-framework-superpom:xml:site_en:6.14.2 from/to Artifactory (http://pdtinteg.ptx
.fr.sopra/artifactory/repo): Access denied to: http://pdtinteg.ptx.fr.sopra/arti
factory/repo/com/sopragroup/evolan/evolan-framework-superpom/6.14.2/evolan-frame
work-superpom-6.14.2-site_en.xml
[ERROR] com.sopragroup.evolan:evolan-framework-superpom:xml:6.14.2
,210
가 나는 그것이 작동하고 내 지역의 repo에 수동으로 evolan 프레임 워크 - superpom-6.14.2-site_en.xml을 넣으면,하지만 진짜 해결책이 아니다
이 문제는 수정되지 않은 버그와 관련이 있다고 생각합니다. https://issues.apache.org/jira/browse/MSITE-639 – HDave