Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.0-beta-6
-
Fix Version/s: None
-
Component/s: site:deploy, site:stage(-deploy)
-
Labels:None
-
Number of attachments :
Description
It should be possible to override the attribute distributionManagement.site.url from the command line like this:
mvn site:site site:deploy -DdistributionManagement.site.url=file:///some/local/or/external/path/
This would not really be necessary if site:stage worked like it should but is needed since it does not.
Is there a way that I could set the site url to be dynamic? I would like to publish to a folder based on a buildNumber generated by the maven-buildnumber-plugin. Please let me know. Otherwise I am going to be forced to open up a new issue. Thanks.
<distributionManagement>
<site>
<id>buildsite</id>
<name>Build Site</name>
<url>
scp://mycompany.com/buildrepository/builds/${buildNumber}
</url>
</site>
</distributionManagement>