You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2015/12/18 17:26:46 UTC
[jira] [Commented] (MSITE-751) Site generation fails with source
directory not found on multimodule project
[ https://issues.apache.org/jira/browse/MSITE-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064162#comment-15064162 ]
Hervé Boutemy commented on MSITE-751:
-------------------------------------
I cannot reproduce the issue: can you provide sample project and instructions to reproduce it?
and eventually mvn -X result, to have the complete stacktrace on error
> Site generation fails with source directory not found on multimodule project
> -----------------------------------------------------------------------------
>
> Key: MSITE-751
> URL: https://issues.apache.org/jira/browse/MSITE-751
> Project: Maven Site Plugin
> Issue Type: Bug
> Components: Maven 3, multi module
> Affects Versions: 3.4
> Environment: Windows 10, JDK8, Maven 3.3.3
> Reporter: Pedro Vieira Silva
> Priority: Blocker
> Fix For: 3.5
>
>
> When building site for a multimodule project maven site:site fails with the following error:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-cli) on project eclipse: Execution default-cli of goal org.apache.maven.plugins:maven-site-plugin:3.4:site failed: Source directory 'D:\test-project\target\classes' not exists -> [Help 1]
> {noformat}
> The parent project has packaging pom so it hasn't any target/classes directory inside it ...But test-project has several subprojects inside it that in turn have packaging type set to jar.
> My maven configuration is as follows:
> {code:xml}
> [...]
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <version>3.4</version>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven.doxia</groupId>
> <artifactId>doxia-module-markdown</artifactId>
> <version>1.6</version>
> </dependency>
> </dependencies>
> <configuration>
> <inputEncoding>UTF-8</inputEncoding>
> <outputEncoding>UTF-8</outputEncoding>
> </configuration>
> </plugin>
> [...]
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <version>2.10.3</version>
> <configuration>
> <failOnError>false</failOnError>
> </configuration>
> <executions>
> <execution>
> <id>aggregate</id>
> <goals>
> <goal>aggregate</goal>
> </goals>
> <phase>site</phase>
> </execution>
> </executions>
> </plugin>
> [..]
> <distributionManagement>
> <site>
> <id>test-project-site</id>
> <name>My Site</name>
> <url>file:///var/www/html/test-project</url>
> </site>
> </distributionManagement>
> [...]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)