Po migracji do programu 3.03, ale nie jestem w stanie zbudować witryny maven. W rzeczywistości mój projekt korzysta z zewnętrznej animacji nadrzędnej, która nie zapewnia żadnego deskryptora witryny jako artefaktu.Problem deskryptora witryny Maven 3: wdrażanie artefaktu nie działa lub witryna nie jest budowana
1- Czy istnieje sposób na wygenerowanie witryny maven, nawet jeśli rodzic nie udostępnia pliku site.xml? Nie mogę sprawić, żeby to działało. Komenda "mvn site" nadal ulega awarii, próbując pobrać plik site.xml obiektu nadrzędnego z następującym eroorem (wyjątek ArtifactResolutionException: nie można zlokalizować deskryptora witryny ...)
2- Jak zainstalować lub wdrożyć plik site.xml w repozytorium maven. Próbuję dodać następujący xml do mojego nadrzędnego pom, ale to nie instaluje niczego w moim lokalnym repo z poleceniem instalacji mvn. Mam src/site/site.xml w moim projekcie, mój projekt jest projektem typu pom Maven-site-plugin dołączyć-deskryptor dołączyć-deskryptor
UPDATE
No to nie działa W moim pom mam
<url>${site_url_pattern}</url>
<distributionManagement>
<site>
<id>test</id>
<url>file://${baseDir}../maven-site</url>
</site>
</distributionManagement>
W zarządzaniu wtyczki kładę
<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>
W wtyczek kładę
<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>
Mam src/site/site.xml w tym samym projekcie
Kiedy zrobić strona mvn Wciąż mam
[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
Jeśli mogę umieścić ręcznie do evolan-Framework superpom-6.14.2-site_en.xml na moim lokalnym repo to działa, ale to nie jest prawdziwym rozwiązaniem
Uważam, że jest to związane z tym błędem, którego nigdy nie naprawiono: https://issues.apache.org/jira/browse/MSITE-639 – HDave