[ https://jira.codehaus.org/browse/MSITE-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292384#comment-292384 ]
Firass Shehadeh commented on MSITE-617: --------------------------------------- I ran into a similar situation. I have a multi-module project, and I usually set the <URL> element using a variable (so that I can deploy the site to different location based on what's configured in my profile in ~/.m2/settings.xml). This used to work perfectly with Maven 2, but when I upgraded to Maven 3, I noticed that some plugins are seeing something like "${variable}" as opposed to resolved variable value. In my case, it is the site plugin that is confused since it was creating the links to the children projects using URLs that had text like this "${variable}", which doesn't work. > Variable substitution in the site url doesn't work > -------------------------------------------------- > > Key: MSITE-617 > URL: https://jira.codehaus.org/browse/MSITE-617 > Project: Maven 2.x and 3.x Site Plugin > Issue Type: Bug > Components: site:deploy > Affects Versions: 2.3 > Environment: Windows 7 and RHEL6 > Reporter: Claus Nielsen > > site:deploy fails because variable substitution in the site url no longer > works (it did in version 2.2). > The distributionManagement section in out POM looks something like this: > <distributionManagement> > <site> > <id>sites</id> > <name>Project Website</name> > > <url>scp://server/sites/${project.artifactId}/${project.version}</url> > </site> > </distributionManagement> > Copying the site to the above mentioned url fails with this message: > [INFO] Error uploading site > Embedded error: Error performing commands for file transfer > Exit code: 1 - bash: > /sites/${project.artifactId}/${project.version}/../../id-of-the-artifact/0.2.8-SNAPSHOT: > bad substitution > Ie. the substitutiuon variables have not been substituted, instead the > property values have been appended to the url along with a few dots and > dashes. -- 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