I upgraded to maven 3.0.3, but I cannot build a maven site. In fact, my project uses an external parent pom, which does not provide the site handle as an artifact.
1 Is there a way to generate a maven site, even if the parent does not provide site.xml? I can not make it work. The "mvn site" command is still crashing while trying to load the site.xml of the parent with the following eroor (ArtifactResolutionException: cannot find site descriptor ...)
2 How we install or deploy site.xml in the maven repository. I am trying to add the following xml to the parent pom, but it does not install anything in my local repo with the mvn install command. I have src / site / site.xml in my project, my project is a project like pom Maven-site-plugin attach-descriptor attach-descriptor
UPDATE
No, it doesnβt work. In my room I have
<url>${site_url_pattern}</url> <distributionManagement> <site> <id>test</id> <url>file://${baseDir}../maven-site</url> </site> </distributionManagement>
In plugin management I put
<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>
In the plugins I put
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0</version> <configuration> <locales>en</locales> <reportPlugins> <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> <report>index</report> <report>issue-tracking</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>
I have src / site / site.xml in the same project
When I make the mvn site, I still have
[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
If I manually placed evolan-framework-superpom-6.14.2-site_en.xml on my local repo, it works, but this is not a real solution