You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marcin Kuthan (JIRA)" <ji...@codehaus.org> on 2011/08/05 11:15:42 UTC

[jira] Created: (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Properties from settings.xml are not recognized in site distribution management 
--------------------------------------------------------------------------------

                 Key: MSITE-604
                 URL: https://jira.codehaus.org/browse/MSITE-604
             Project: Maven 2.x and 3.x Site Plugin
          Issue Type: Bug
          Components: site:deploy
    Affects Versions: 3.0
         Environment: Apache Maven 2.2.1 and 3.0.3
            Reporter: Marcin Kuthan


My distribution management section looks like:

{code}
<distributionManagement>
   <site>
       <id>${acme-corporate-pom.siteRepositoryId}</id>
       <url>${acme-corporate-pom.siteRepositoryUrl}</url>
   </site>
</distributionManagement>
{code}

Where the default property values are defined in the pom:

{code}
<properties>
    <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
    <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
</properties>
{code}

I'm able redefine properties from command line, the provided repository is used instead default one:

{code}
mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
{code}

But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 

It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 

--
Marcin Kuthan
Maven For Enterprise - http://code.google.com/p/m4enterprise/




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296956#comment-296956 ] 

Vincent Latombe edited comment on MSITE-604 at 4/22/12 7:09 AM:
----------------------------------------------------------------

It seems like in Doxia's DefaultSiteTool#getParentProject the returned project isn't interpolated. In Maven 3, MNG-1943 is actually fixed so this method could return directly the result from MavenProject#getParent and it would solve this issue, at least in Maven 3 context.
                
      was (Author: vlatombe):
    It seems like in Doxia's DefaultSite#getParentProject the returned project isn't interpolated. In Maven 3, MNG-1943 is actually fixed so this method could return directly the result from MavenProject#getParent and it would solve this issue, at least in Maven 3 context.
                  
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312602#comment-312602 ] 

Vincent Latombe commented on MSITE-604:
---------------------------------------

I think according to what Hervé said (I didn't know about the Model Interpolation link that you provided, thank you!), the property should be removed from pom.xml to get the property defined in settings.xml picked up instead. By the way, it is actually what I did in the IT I provided.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

       

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=297096#comment-297096 ] 

Lukas Theussl commented on MSITE-604:
-------------------------------------

I have [added an IT|http://svn.apache.org/viewvc?view=revision&revision=1329606], following the original description of the problem. It passes without your patch applied. What am I missing?
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312289#comment-312289 ] 

Vincent Latombe commented on MSITE-604:
---------------------------------------

I've managed to find some time to reproduce the issue, and I have updated the IT accordingly.

This IT fails if MSITE-604-maven3-2.patch isn't applied.

Basically, the build will fail if the site url starts with an expression, which is only defined in settings.xml (not at pom.xml level). Also, it happens if the site definition is actually done in a parent pom, not in the pom itself.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Schaible updated MSITE-604:
---------------------------------

    Attachment: MSITE-604.tgz

We face the same problems. In our case we deploy the site documentation to our intranet and depending on the environment the base URL is a file protocol with different paths or scpexe. Therefore we have to use a property from settings.xml.

The attached test project demonstrates the effect. Since our property contains the protocol, we get this "{{Wagon protocol '' doesn't support directory copying}}" error.

However, it seems that the usage of a parent located in the repository is part of the problem.

You may test the project with the call
 mvn -s settings.xml clean package site site:deploy
Have a look at the README.txt for simple preparation and alternate calls to select the site-plugin version from command-line.

M3 fails with site-plugin 3.0, but succeeds with 3.0-beta-3 and will generate no HTMLs for site-plugin version 2.x. M221 fails with site-plugin versions 3.0 and 2.3.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Jörg Schaible (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312600#comment-312600 ] 

Jörg Schaible edited comment on MSITE-604 at 10/30/12 5:55 AM:
---------------------------------------------------------------

Actually I simply want a *solution*. Depending on the development machine, the distribution area is reachable with different URLs ranging from different mount points even to different protocols and the distribution URL *is* dependent on the local environment, therefore the only reasonable location for this value *is* settings.xml. Once deployed the distribution URL is no longer of any use anyway. Herve, you're right in general, but in the context of the site plugin the case is different at deployment time.
                
      was (Author: joehni):
    Actually I simply want a *solution*. Depending on the development machine, the distribution area is reachable with different URLs ranging from different mount mounts even to different protocols and the distribution URL *is* dependent on the local environment, therefore the only reasonable location for this value *is* settings.xml. Once deployed the distribution URL is no longer of any use anyway. Herve, you're right in general, but in the context of the site plugin the case is different at deployment time.
                  
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

       

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MSITE-604:
----------------------------------

    Fix Version/s:     (was: 3.1)
                   backlog
    
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296956#comment-296956 ] 

Vincent Latombe commented on MSITE-604:
---------------------------------------

It seems like in Doxia's DefaultSite#getParentProject the returned project isn't interpolated. In Maven 3, MNG-1943 is actually fixed so this method could return directly the result from MavenProject#getParent and it would solve this issue, at least in Maven 3 context.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] Updated: (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl updated MSITE-604:
--------------------------------

    Fix Version/s: 3.1

> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Jörg Schaible (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312600#comment-312600 ] 

Jörg Schaible commented on MSITE-604:
-------------------------------------

Actually I simply want a *solution*. Depending on the development machine, the distribution area is reachable with different URLs ranging from different mount mounts even to different protocols and the distribution URL *is* dependent on the local environment, therefore the only reasonable location for this value *is* settings.xml. Once deployed the distribution URL is no longer of any use anyway. Herve, you're right in general, but in the context of the site plugin the case is different at deployment time.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

       

Re: [jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by ws...@cox.net.
PLEASE REMOVE ME FROM THIS MAILING LIST!!!

---- "Herve Boutemy (JIRA)" <ji...@codehaus.org> wrote: 

=============

    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312635#comment-312635 ] 

Herve Boutemy commented on MSITE-604:
-------------------------------------

yes, you should force users to define the value in their settings.xml, and cannot provide a default value in pom for those that didn't do their config

(for the doc, I'm writing things I'm learning year after year on Maven internals, then doc is improving version after version: see http://maven.apache.org/ref/3.1-SNAPSHOT/ for latest improvements)
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

--
Wayne E Seth PMP CEA
Enterprise Architect
(c) 520-456-6169

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312635#comment-312635 ] 

Herve Boutemy commented on MSITE-604:
-------------------------------------

yes, you should force users to define the value in their settings.xml, and cannot provide a default value in pom for those that didn't do their config

(for the doc, I'm writing things I'm learning year after year on Maven internals, then doc is improving version after version: see http://maven.apache.org/ref/3.1-SNAPSHOT/ for latest improvements)
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290463#comment-290463 ] 

Joerg Schaible edited comment on MSITE-604 at 2/1/12 5:23 AM:
--------------------------------------------------------------

We face the same problems. In our case we deploy the site documentation to our intranet and depending on the environment the base URL is a file protocol with different paths or scpexe. Therefore we have to use a property from settings.xml.

The attached test project MSITE-604.tgz demonstrates the effect. Since our property contains the protocol, we get this "{{Wagon protocol '' doesn't support directory copying}}" error.

However, it seems that the usage of a parent located in the repository is part of the problem.

You may test the project with the call
{noformat}
mvn -s settings.xml clean package site site:deploy
{noformat}
Have a look at the README.txt for simple preparation and alternate calls to select the site-plugin version from command-line.

M3 fails with site-plugin 3.0, but succeeds with 3.0-beta-3 and will generate no HTMLs for site-plugin version 2.x. M221 fails with site-plugin versions 3.0 and 2.3.

I've also linked this issue to MNG-617, MNG-585 and MNG-501 that seem to be related.
                
      was (Author: joehni):
    We face the same problems. In our case we deploy the site documentation to our intranet and depending on the environment the base URL is a file protocol with different paths or scpexe. Therefore we have to use a property from settings.xml.

The attached test project demonstrates the effect. Since our property contains the protocol, we get this "{{Wagon protocol '' doesn't support directory copying}}" error.

However, it seems that the usage of a parent located in the repository is part of the problem.

You may test the project with the call
 mvn -s settings.xml clean package site site:deploy
Have a look at the README.txt for simple preparation and alternate calls to select the site-plugin version from command-line.

M3 fails with site-plugin 3.0, but succeeds with 3.0-beta-3 and will generate no HTMLs for site-plugin version 2.x. M221 fails with site-plugin versions 3.0 and 2.3.
                  
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312291#comment-312291 ] 

Vincent Latombe commented on MSITE-604:
---------------------------------------

I managed to do some additional tests, and it seems that my patch also fixes MSITE-632. I'm able to redefine distributionManagement in my child module and it overrides correctly the entry declared in the parent POM.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312598#comment-312598 ] 

Herve Boutemy edited comment on MSITE-604 at 10/30/12 5:39 AM:
---------------------------------------------------------------

I think we're going forward and backward from deciding if poms should be interpolated by Maven core (= what has been done with MSITE-585) or not interpolated and tweaked like it seems expected here

because Maven core interpolation rules are clear (see variable order in [Model Interpolation|http://maven.apache.org/ref/3.0.4/maven-model-builder/]): pom properties are used before settings properties, and CLI properties are used before pom properties
just use mvn help:effective-pom and see

IMHO, setting a property in pom and hoping to override its value with settings is a nonsense: if it worked once upon a time, this was pure hazard (and probably broke a lot of things because using non-interpolated pom: we did the ITs since then just to avoid re-doing the same mistakes again)
                
      was (Author: hboutemy):
    I think we're going forward and backward from deciding if projects should be interpolated by Maven (= what has been done with MSITE-585) core or not interpolated and tweaked like it seems expected here

because Maven core interpolation rules are clear (see variable order in [Model Interpolation|http://maven.apache.org/ref/3.0.4/maven-model-builder/]): pom properties are used before settings properties, and CLI properties are used before pom properties
just use mvn help:effective-pom and see

IMHO, setting a property in pom and hoping to override its value with settings is a nonsense: if it worked once upon a time, this was pure hazard (and probably broke a lot of things because using non-interpolated pom: we did the ITs since then just to avoid re-doing the same mistakes over and over)
                  
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Mykel Alvis (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291371#comment-291371 ] 

Mykel Alvis commented on MSITE-604:
-----------------------------------

Add'l test on (closed) duplicate issue MSITE-630
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296746#comment-296746 ] 

Dennis Lundberg commented on MSITE-604:
---------------------------------------

If I apply the proposed patch in MSITE-632 this issue goes away, but unfortunately the patch has other problems.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] Commented: (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Lorand Somogyi (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279628#comment-279628 ] 

Lorand Somogyi commented on MSITE-604:
--------------------------------------

This bug is introduced in 3.0. Work as expected with 3.0-beta-3.

> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Marcin Kuthan (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277286#comment-277286 ] 

Marcin Kuthan commented on MSITE-604:
-------------------------------------

Hi Dennis

I'm sorry for the long delay (vacations). Fragment of my {{settings.xml}}:

{code}
<profile>
	<id>m4e</id>

	<properties>
		<acme-corporate-pom.releaseRepositoryId>artifactory</acme-corporate-pom.releaseRepositoryId>
		<acme-corporate-pom.releaseRepositoryUrl>dav:http://repository.intranet.acme.com/artifactory/ext-releases-new</acme-corporate-pom.releaseRepositoryUrl>

		<acme-corporate-pom.snapshotRepositoryId>artifactory</acme-corporate-pom.snapshotRepositoryId>
		<acme-corporate-pom.snapshotRepositoryUrl>dav:http://repository.intranet.acme.com/artifactory/ext-snapshots-new</acme-corporate-pom.snapshotRepositoryUrl>

		<acme-corporate-pom.siteRepositoryId>rmavm233.mad.acme.com</acme-corporate-pom.siteRepositoryId>
		<acme-corporate-pom.siteRepositoryUrl>scp://rmavm233.mad.acme.com/var/www/sites</acme-corporate-pom.siteRepositoryUrl>

		<acme-corporate-pom.organizationUrl>http://www.acme.com</acme-corporate-pom.organizationUrl>
		<acme-corporate-pom.siteUrl>http://rmavm233.mad.acme.com/sites</acme-corporate-pom.siteUrl>
	</properties>
</profile>

...

<activeProfiles>
	<activeProfile>sonar</activeProfile>
	<activeProfile>clover</activeProfile>
		
	<activeProfile>m4e</activeProfile>
</activeProfiles>
{code}

When I call {{mvn help:effective-pom}} on the project, the properties from {{settings.xml}} are also recognized:

{code}
<distributionManagement>
    <repository>
      <id>artifactory</id>
      <url>dav:http://repository.intranet.acme.com/artifactory/ext-releases-new</url>
    </repository>
    <snapshotRepository>
      <id>artifactory</id>
      <url>dav:http://repository.intranet.acme.com/artifactory/ext-snapshots-new</url>
    </snapshotRepository>
    <site>
      <id>rmavm233.mad.acme.com</id>
      <url>scp://rmavm233.mad.acme.com/var/www/sites/simple-war-webapp</url>
    </site>
</distributionManagement>
{code}

--
Marcin Kuthan
Maven For Enterprise - http://code.google.com/p/m4enterprise/

> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Derek Lewis (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277567#comment-277567 ] 

Derek Lewis commented on MSITE-604:
-----------------------------------

This looks like it may be a duplicate of MSITE-501.  Either way, it strikes me as a significant problem.

> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=275674#comment-275674 ] 

Dennis Lundberg commented on MSITE-604:
---------------------------------------

Can you please attach an example of your settings.xml

> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312289#comment-312289 ] 

Vincent Latombe edited comment on MSITE-604 at 10/25/12 8:46 AM:
-----------------------------------------------------------------

I've managed to find some time to reproduce the issue, and I have updated the IT accordingly (see MSITE-604-it.patch).

This IT fails if MSITE-604-maven3-2.patch isn't applied.

Basically, the build will fail if the site url starts with an expression, which is only defined in settings.xml (not at pom.xml level). Also, it happens if the site definition is actually done in a parent pom, not in the pom itself.
                
      was (Author: vlatombe):
    I've managed to find some time to reproduce the issue, and I have updated the IT accordingly.

This IT fails if MSITE-604-maven3-2.patch isn't applied.

Basically, the build will fail if the site url starts with an expression, which is only defined in settings.xml (not at pom.xml level). Also, it happens if the site definition is actually done in a parent pom, not in the pom itself.
                  
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311763#comment-311763 ] 

Joerg Schaible commented on MSITE-604:
--------------------------------------

bq. What am I missing?

Don't know. I even tried to modify the IT with:
{noformat}
Index: src/it/MSITE-604/invoker.properties
===================================================================
--- src/it/MSITE-604/invoker.properties (revision 1399549)
+++ src/it/MSITE-604/invoker.properties (working copy)
@@ -1 +1 @@
-invoker.profiles = msite604
+#invoker.profiles = msite604
Index: src/it/MSITE-604/pom.xml
===================================================================
--- src/it/MSITE-604/pom.xml    (revision 1399549)
+++ src/it/MSITE-604/pom.xml    (working copy)
@@ -33,14 +33,15 @@
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <msite604.siteProtocol>scpexe://</msite604.siteProtocol>
     <msite604.siteRepositoryId>defaultId</msite604.siteRepositoryId>
     <msite604.siteRepositoryUrl>defaultRepositoryUrl</msite604.siteRepositoryUrl>
   </properties>
 
   <distributionManagement>
     <site>
       <id>${msite604.siteRepositoryId}</id>
-      <url>file://@project.build.directory@/it/MSITE-604/target/${msite604.siteRepositoryUrl}</url>
+      <url>${msite604.siteProtocol}@project.build.directory@/it/MSITE-604/target/${msite604.siteRepositoryUrl}</url>
     </site>
   </distributionManagement>
 
Index: src/it/settings.xml
===================================================================
--- src/it/settings.xml (revision 1399549)
+++ src/it/settings.xml (working copy)
@@ -63,9 +63,13 @@
     <profile>
       <id>msite604</id>
       <properties>
+        <msite604.siteProtocol>file://</msite604.siteProtocol>
         <msite604.siteRepositoryId>settingsId</msite604.siteRepositoryId>
         <msite604.siteRepositoryUrl>settingsRepositoryUrl</msite604.siteRepositoryUrl>
       </properties>
     </profile>
   </profiles>
+  <activeProfiles>
+    <activeProfile>msite604</activeProfile>
+  </activeProfiles>
 </settings>
{noformat}

but it runs still...

However, even with version 3.2 we get in our real projects:

{noformat}
$ mvn clean site site:deploy
...
[INFO] --- maven-site-plugin:3.2:deploy (default-cli) @ acmepro-report-parent ---
[INFO] Parent project loaded from repository: buildsystem.maven:master:pom:x-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] acmepro Report Parent Project ..................... FAILURE [13.295s]
[INFO] acmepro Report Providers .......................... SKIPPED
[INFO] acmepro Report EAR ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.701s
[INFO] Finished at: Thu Oct 18 09:01:49 CEST 2012
[INFO] Final Memory: 26M/265M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.2:deploy (default-cli) on project acmepro-report-parent: Execution default-cli of goal org.apache.maven.plugins:maven-site-plugin:3.2:deploy failed: Base URI is not absolute: $%7bacmepro.site.url.base%7d -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
{noformat}

Since it retrieves the parent from the repository (which contains also an URL for the site with that property), it does probably complain about that one?
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Latombe updated MSITE-604:
----------------------------------

    Attachment: MSITE-604-maven3-2.patch

Second patch only on site-plugin, still limited to Maven 3
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Latombe updated MSITE-604:
----------------------------------

    Attachment: MSITE-604-maven3.patch

Attempt of fix for Maven 3.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290463#comment-290463 ] 

Joerg Schaible edited comment on MSITE-604 at 2/1/12 5:23 AM:
--------------------------------------------------------------

We face the same problems. In our case we deploy the site documentation to our intranet and depending on the environment the base URL is a file protocol with different paths or scpexe. Therefore we have to use a property from settings.xml.

The attached test project MSITE-604.tgz demonstrates the effect. Since our property contains the protocol, we get this "{{Wagon protocol '' doesn't support directory copying}}" error.

However, it seems that the usage of a parent located in the repository is part of the problem.

You may test the project with the call
{noformat}
mvn -s settings.xml clean package site site:deploy
{noformat}
Have a look at the README.txt for simple preparation and alternate calls to select the site-plugin version from command-line.

M3 fails with site-plugin 3.0, but succeeds with 3.0-beta-3 and will generate no HTMLs for site-plugin version 2.x. M221 fails with site-plugin versions 3.0 and 2.3.

I've also linked this issue to MSITE-617, MSITE-585 and MSITE-501 that seem to be related.
                
      was (Author: joehni):
    We face the same problems. In our case we deploy the site documentation to our intranet and depending on the environment the base URL is a file protocol with different paths or scpexe. Therefore we have to use a property from settings.xml.

The attached test project MSITE-604.tgz demonstrates the effect. Since our property contains the protocol, we get this "{{Wagon protocol '' doesn't support directory copying}}" error.

However, it seems that the usage of a parent located in the repository is part of the problem.

You may test the project with the call
{noformat}
mvn -s settings.xml clean package site site:deploy
{noformat}
Have a look at the README.txt for simple preparation and alternate calls to select the site-plugin version from command-line.

M3 fails with site-plugin 3.0, but succeeds with 3.0-beta-3 and will generate no HTMLs for site-plugin version 2.x. M221 fails with site-plugin versions 3.0 and 2.3.

I've also linked this issue to MNG-617, MNG-585 and MNG-501 that seem to be related.
                  
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: 3.1
>
>         Attachments: MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Vincent Latombe (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Latombe updated MSITE-604:
----------------------------------

    Attachment: MSITE-604-it.patch
    
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

        

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Jörg Schaible (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312657#comment-312657 ] 

Jörg Schaible commented on MSITE-604:
-------------------------------------

bq. yes, you should force users to define the value in their settings.xml, and cannot provide a default value in pom for those that didn't do their config

This is exactly what we do, but it does no longer work with anything newer than 3.0-beta-3.
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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

       

[jira] (MSITE-604) Properties from settings.xml are not recognized in site distribution management

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312598#comment-312598 ] 

Herve Boutemy commented on MSITE-604:
-------------------------------------

I think we're going forward and backward from deciding if projects should be interpolated by Maven (= what has been done with MSITE-585) core or not interpolated and tweaked like it seems expected here

because Maven core interpolation rules are clear (see variable order in [Model Interpolation|http://maven.apache.org/ref/3.0.4/maven-model-builder/]): pom properties are used before settings properties, and CLI properties are used before pom properties
just use mvn help:effective-pom and see

IMHO, setting a property in pom and hoping to override its value with settings is a nonsense: if it worked once upon a time, this was pure hazard (and probably broke a lot of things because using non-interpolated pom: we did the ITs since then just to avoid re-doing the same mistakes over and over)
                
> Properties from settings.xml are not recognized in site distribution management 
> --------------------------------------------------------------------------------
>
>                 Key: MSITE-604
>                 URL: https://jira.codehaus.org/browse/MSITE-604
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Apache Maven 2.2.1 and 3.0.3
>            Reporter: Marcin Kuthan
>             Fix For: backlog
>
>         Attachments: MSITE-604-it.patch, MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
>    <site>
>        <id>${acme-corporate-pom.siteRepositoryId}</id>
>        <url>${acme-corporate-pom.siteRepositoryUrl}</url>
>    </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>     <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>     <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is used instead default one:
> {code}
> mvn site:site site:deploy -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are ignored. The profile is activated in {{<activeProfiles}} element. 
> It looks, than only m-site-p ignores properties defined in the {{settings.xml}} file. m-deploy-p recognizes properties as I expected (distribution management section for articats deployment is configured in similar way to site deployment). 
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/

--
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