You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Daniel Johnson (JIRA)" <ji...@apache.org> on 2015/07/15 00:30:05 UTC

[jira] [Comment Edited] (MSITE-671) Regression: site:stage no longer functions for MM projects.

    [ https://issues.apache.org/jira/browse/MSITE-671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14627171#comment-14627171 ] 

Daniel Johnson edited comment on MSITE-671 at 7/14/15 10:29 PM:
----------------------------------------------------------------

I am hitting the same error. We had a Maven Plugin that was using Maven 3.0.4 to build and maven-site-plugin 3.0-beta-3. After upgrading to maven 3.2.5 we hit an API compatibility issue with 3.0-beta-3 plugin. We upgraded to to maven-site-plugin 3.3, but now hit this issue.

{quote}Execution default-deploy of goal org.apache.maven.plugins:maven-site-plugin:3.3:deploy failed: Base URI is not absolute: $%7bdistribution.site.url%7d/my-comp{quote}

Configuration in POM:
{quote}
<artifactId>my-comp</artifactId>
<properties>
  <distribution.site.url>file:/auto/mvn-sites/</distribution.site.url>
</properties>
<distributionManagement>
  <site>
    <id>website</id>
    <name>website</name>
    <url>${distribution.site.url}/${project.artifactId}</url>
  </site>
</distributionManagement>
{quote}


was (Author: hankolerd):
I am hitting the same error. We had a Maven Plugin that was using Maven 3.0.4 to build and maven-site-plugin 3.0-beta-3. After upgrading to maven 3.2.5 we hit an API compatibility issue with 3.0-beta-3 plugin. We upgraded to to maven-site-plugin 3.3, but now hit this issue.

{quote}Execution default-deploy of goal org.apache.maven.plugins:maven-site-plugin:3.3:deploy failed: Base URI is not absolute: $%7bdistribution.site.url%7d/my-comp{/quote}

Configuration in POM:
{quote}
<artifactId>my-comp</artifactId>
<properties>
  <distribution.site.url>file:/auto/mvn-sites/</distribution.site.url>
</properties>
<distributionManagement>
  <site>
    <id>website</id>
    <name>website</name>
    <url>${distribution.site.url}/${project.artifactId}</url>
  </site>
</distributionManagement>
{/quote}

> Regression: site:stage no longer functions for MM projects.
> -----------------------------------------------------------
>
>                 Key: MSITE-671
>                 URL: https://issues.apache.org/jira/browse/MSITE-671
>             Project: Maven 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 was sent by Atlassian JIRA
(v6.3.4#6332)