Fred Cooke created MSITE-671:
--------------------------------

             Summary: Regression: site:stage no longer functions for MM 
projects.
                 Key: MSITE-671
                 URL: https://jira.codehaus.org/browse/MSITE-671
             Project: Maven 2.x and 3.x Site Plugin
          Issue Type: Bug
          Components: site:stage(-deploy)
    Affects Versions: 3.2
         Environment: Debian Linux OpenJDK 7 mvn 3.0.4


            Reporter: Fred Cooke


With site 3.0 I could run mvn site:site site:stage from the top of my 
multi-module project, and it would accumulate a working site in my chosen 
directory exactly as per the instructions here:

https://maven.apache.org/plugins/maven-site-plugin/stage-mojo.html

"Deploys the generated site to a local staging or mock directory based on the 
site URL specified in the {{<distributionManagement>}} section of the POM.  It 
can be used to test that links between module sites in a multi-module build 
works."

I didn't try 3.1, but with 3.2 the links from the parent site to the children 
did not function. I didn't investigate further, though I could if required.

More info, this is what I have in my parent/aggregator:

{code:xml}
                <site>
                        <!-- Use mvn site:stage to get a working local copy of 
site AFTER building it normally -->
                        <id>local-viewing</id>
                        <url>${project.baseDir}/target/staging/</url>
                </site>
{code}

It was suggested (by Robert) that it may work with this variable used instead: 
${project.executionProject.basedir} however the staging directory is only 
relevant at the top level anyway, so I don't see why that should be necessary. 
Again, I didn't try it, but can if this is considered intentional behaviour 
change, as opposed to a regression.

These issues may (or may not) be related:

http://jira.codehaus.org/browse/MSITE-600
http://jira.codehaus.org/browse/MSITE-602
http://jira.codehaus.org/browse/MSITE-649

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to