[jira] Commented: (MSITE-617) Variable substitution in the site url doesn't work
[ https://jira.codehaus.org/browse/MSITE-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=285168#comment-285168 ] Ian Robertson commented on MSITE-617: - I've verified that this same behavior happens with 3.1-SNAPSHOT (built from a checkout I just did). It attempts to relativize the URL to the one specified in the parent pom. This happens whether I declare the URL directly in the pom, or use the indirection of a property. 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 idsites/id nameProject Website/name urlscp://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. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSITE-617) Variable substitution in the site url doesn't work
[ https://jira.codehaus.org/browse/MSITE-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=282581#comment-282581 ] Lukas Theussl commented on MSITE-617: - Did you check version 2.4-SNAPSHOT or 3.1-SNAPSHOT of the site-plugin? 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 idsites/id nameProject Website/name urlscp://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. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSITE-617) Variable substitution in the site url doesn't work
[ https://jira.codehaus.org/browse/MSITE-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=282499#comment-282499 ] Claus Nielsen commented on MSITE-617: - Tried this: properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding siteDeployUrlscp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/siteDeployUrl /properties distributionManagement site idsites/id nameProject Website/name url${siteDeployUrl}/url /site /distributionManagement With this result: [INFO] [site:deploy {execution: default-cli}] scp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/ - Session: Opened [INFO] Pushing E:\tafe\workspace2\tafe\target\site [INFO] to scp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/../../tafe/1.2.0-SNAPSHOT Executing command: mkdir -p /data/Maven/sites/${project.artifactId}/${project.version}/../../tafe/1.2.0-SNAPSHOT scp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/ - Session: Disconnecting scp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/ - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - bash: /data/Maven/sites/${project.artifactId}/${project.version}/../../tafe/1.2.0-SNAPSHOT: bad substitution And this (different host name in the site URL): properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding siteDeployUrlscp://mXn/data/Maven/sites/${project.artifactId}/${project.version}/siteDeployUrl /properties distributionManagement site idsites/id nameProject Website/name url${siteDeployUrl}/url /site /distributionManagement With this result: [INFO] [site:deploy {execution: default-cli}] scp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/ - Session: Opened [INFO] Pushing E:\tafe\workspace2\tafe\target\site [INFO] to scp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/../../../../../../mXn/data/Maven/sites/tafe/1.2.0-SNAPSHOT Executing command: mkdir -p /data/Maven/sites/${project.artifactId}/${project.version}/../../../../../../mXn/data/Maven/sites/tafe/1.2.0-SNAPSHOT scp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/ - Session: Disconnecting scp://mvn/data/Maven/sites/${project.artifactId}/${project.version}/ - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - bash: /data/Maven/sites/${project.artifactId}/${project.version}/../../../../../../mXn/data/Maven/sites/tafe/1.2.0-SNAPSHOT: bad substitution 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 idsites/id nameProject Website/name urlscp://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. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MSITE-617) Variable substitution in the site url doesn't work
[ https://jira.codehaus.org/browse/MSITE-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=282301#comment-282301 ] Olivier Lamy commented on MSITE-617: can you try with something different: {code} properties siteDeployUrlscp://server/sites/${project.artifactId}/${project.version}/siteDeployUrl /properties distributionManagement site idsites/id nameProject Website/name url${siteDeployUrl}/url /site /distributionManagement {code} 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 idsites/id nameProject Website/name urlscp://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. For more information on JIRA, see: http://www.atlassian.com/software/jira