[
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